private static void testReadAndWriteValid(string aRes) { Genericode04CodeListSerializer serializer = new Genericode04CodeListSerializer(); // Read code list CodeListDocument aCLDoc = serializer.Deserialize(aRes); Assert.IsNotNull(aCLDoc); // Write again string aDoc2 = serializer.Serialize(aCLDoc); Assert.IsNotNull(aDoc2); // Read code list again CodeListDocument aCLDoc2 = serializer.Deserialize(aDoc2); }
public GeneratedClasses.Genericode.v04.CodeListDocument ReadGC04CodeList(string xml) { validator.ValidateGC04CodeList(xml); return(genericode04CodeListSerializer.Deserialize(xml)); }