tests erweitert
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user