diff --git a/KlassenBIB/InlinerSanierung.cs b/KlassenBIB/InlinerSanierung.cs new file mode 100644 index 0000000..fb66cdc --- /dev/null +++ b/KlassenBIB/InlinerSanierung.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace KlassenBIB +{ + public sealed class InlinerSanierung : Sanierung + { + decimal kalibrierUnterdruck = -0.5m; + decimal kalibierWalzenAbstand = 0.9m; + decimal harzKalibrierTemperatur; + DateTime datumKalibrierung; + string harzChargenummer; + string linerChargenummer; + decimal harzbedarf = 1.8m; + uint rueckholgeschwindigkeit = 24; + + /// + /// Gibt den kompletten Harzbedarf auf die Haltungslänge bezogen zurück + /// + public decimal GesamtHarzBedarf + { + get + { + return InspektionsObjekt.Haltungslaenge * harzbedarf; + } + } + + } +} diff --git a/KlassenBIB/Inspektionsobjekt.cs b/KlassenBIB/Inspektionsobjekt.cs index 3f9ede8..b7152ab 100644 --- a/KlassenBIB/Inspektionsobjekt.cs +++ b/KlassenBIB/Inspektionsobjekt.cs @@ -11,8 +11,15 @@ namespace KlassenBIB public class Inspektionsobjekt { public string Objektbezeichnung { get; set; } + public string VonPunkt { get; set; } + public string BisPunkt { get; set; } + public string RohrMaterial { get; set; } + public uint Kanalrohrweite { get; set; } + public decimal Haltungslaenge { get; set; } public InspektionskuerzelnCollection Schadenskuerzeln { get; private set; } + public Sanierung Sanierung { get;set; } + public Inspektionsobjekt() { Schadenskuerzeln = new InspektionskuerzelnCollection(); diff --git a/KlassenBIB/KlassenBIB.csproj b/KlassenBIB/KlassenBIB.csproj index 805a334..9a31b87 100644 --- a/KlassenBIB/KlassenBIB.csproj +++ b/KlassenBIB/KlassenBIB.csproj @@ -43,11 +43,13 @@ + + diff --git a/KlassenBIB/Sanierung.cs b/KlassenBIB/Sanierung.cs new file mode 100644 index 0000000..339eb9b --- /dev/null +++ b/KlassenBIB/Sanierung.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace KlassenBIB +{ + public abstract class Sanierung + { + Guid guid; + decimal tempAusen; + decimal tempKanal; + string wetter; + bool genehmigungVorhanden; + bool wasserhaltungEingerichtet; + bool sTVOAbsicherung; + bool hDReinigung; + DateTime hDReinigungDatum; + DateTime sanierungsDatum; + Inspektionsobjekt inspektionsObjekt; + + public Guid Guid { get => guid; set => guid = value; } + public decimal TempAusen { get => tempAusen; set => tempAusen = value; } + public decimal TempKanal { get => tempKanal; set => tempKanal = value; } + public string Wetter { get => wetter; set => wetter = value; } + public bool GenehmigungVorhanden { get => genehmigungVorhanden; set => genehmigungVorhanden = value; } + public bool WasserhaltungEingerichtet { get => wasserhaltungEingerichtet; set => wasserhaltungEingerichtet = value; } + public bool STVOAbsicherung { get => sTVOAbsicherung; set => sTVOAbsicherung = value; } + public bool HDReinigung { get => hDReinigung; set => hDReinigung = value; } + public DateTime HDReinigungDatum { get => hDReinigungDatum; set => hDReinigungDatum = value; } + public DateTime SanierungsDatum { get => sanierungsDatum; set => sanierungsDatum = value; } + public Inspektionsobjekt InspektionsObjekt { get => inspektionsObjekt; set => inspektionsObjekt = value; } + } +} diff --git a/KlassenBIBTests/InspektionsobjektTests.cs b/KlassenBIBTests/InspektionsobjektTests.cs index 33adcbf..57fbb3f 100644 --- a/KlassenBIBTests/InspektionsobjektTests.cs +++ b/KlassenBIBTests/InspektionsobjektTests.cs @@ -45,6 +45,13 @@ namespace KlassenBIB.Tests Quantifizierung2 = 150, }); + InlinerSanierung inliner = new InlinerSanierung(); + inliner.Guid = Guid.NewGuid(); + inliner.TempAusen = 1; + inliner.STVOAbsicherung = true; + inspektionsobjekt.Sanierung = inliner; + inliner.InspektionsObjekt = inspektionsobjekt; + abwasserTechnischeAnlageCollection.Add(inspektionsobjekt);