Serializer weiter ausgebaut
This commit is contained in:
@@ -23,20 +23,20 @@ namespace KlassenBIB.Tests
|
||||
public void XAMLSerializeTest()
|
||||
{
|
||||
Projekt projekt = new Projekt();
|
||||
projekt.Projektnummer = "16/219";
|
||||
projekt.ProjektOrt = "Oldenburg";
|
||||
projekt.Nummer = "16/219";
|
||||
projekt.Ort = "Oldenburg";
|
||||
|
||||
AbwasserTechnischeAnlageCollection abwasserTechnischeAnlageCollection = new AbwasserTechnischeAnlageCollection();
|
||||
|
||||
|
||||
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
||||
inspektionsobjekt.Objektbezeichnung = "122345";
|
||||
inspektionsobjekt.schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
inspektionsobjekt.Schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
{
|
||||
Hauptkode = "BCD",
|
||||
Charakterisierung1 = "XP"
|
||||
});
|
||||
inspektionsobjekt.schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
inspektionsobjekt.Schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
{
|
||||
Hauptkode = "BCA",
|
||||
Charakterisierung1 = "A",
|
||||
@@ -52,9 +52,9 @@ namespace KlassenBIB.Tests
|
||||
{
|
||||
Ort = "Oldenburg",
|
||||
Strassename = "Dieselstraße",
|
||||
objekte = abwasserTechnischeAnlageCollection
|
||||
Objekte = abwasserTechnischeAnlageCollection
|
||||
};
|
||||
projekt.adressen.Add(strasse);
|
||||
projekt.Adressen.Add(strasse);
|
||||
|
||||
|
||||
|
||||
@@ -63,18 +63,7 @@ namespace KlassenBIB.Tests
|
||||
[TestMethod()]
|
||||
public void InspektionsobjektTest()
|
||||
{
|
||||
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
||||
inspektionsobjekt.Objektbezeichnung = "1232";
|
||||
inspektionsobjekt.schadenskuerzeln.Add(new Inspektionskuerzeln()
|
||||
{
|
||||
Hauptkode = "BCA",
|
||||
Charakterisierung1 = "A",
|
||||
Charakterisierung2 = "A",
|
||||
Quantifizierung1 = 150,
|
||||
Quantifizierung2 = 150
|
||||
});
|
||||
|
||||
XamlServices.Save("file.xaml", inspektionsobjekt);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user