tests erweitert

This commit is contained in:
2018-06-07 21:30:30 +02:00
parent 258a3f7f11
commit a7cd53819b

View File

@@ -70,7 +70,31 @@ namespace KlassenBIB.Tests
[TestMethod()] [TestMethod()]
public void InspektionsobjektTest() public void InspektionsobjektTest()
{ {
Projekt projekt = new Projekt();
projekt.Ort = "Oldenburg";
Strasse strasse = new Strasse()
{
Strassename = "Schlachthofstrase",
Ort = "Oldenburg"
};
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
inspektionsobjekt.Objektbezeichnung = "SW01";
inspektionsobjekt.VonPunkt = "SW01";
inspektionsobjekt.BisPunkt = "SW02";
inspektionsobjekt.Haltungslaenge = 10m;
inspektionsobjekt.RohrMaterial = "Steinzeug";
inspektionsobjekt.Kanalrohrweite = 150;
InlinerSanierung sanierung = new InlinerSanierung();
sanierung.InspektionsObjekt = inspektionsobjekt;
sanierung.Guid = Guid.NewGuid();
sanierung.WasserhaltungEingerichtet = true;
Assert.AreEqual(sanierung.GesamtHarzBedarf, 18m);
} }
} }
} }