public void GivenTheFileREALandCurrent_Parse_ReturnsALandAvailableListing(string fileName) { // Arrange. var expectedListing = FakeListings.CreateAFakeLandListing(); expectedListing.Address.StreetNumber = "LOT 12/39"; expectedListing.Address.DisplayAddress = expectedListing.Address.ToFormattedAddress(true, StateReplacementType.ReplaceToLongText, false, true); var reaXml = File.ReadAllText(FakeDataFolder + fileName); var reaXmlTransmorgrifier = new ReaXmlTransmorgrifier(); // Act. var result = reaXmlTransmorgrifier.Parse(reaXml); // Assert. AssertLandListing(result, expectedListing); }
public void GivenTheFileREALandCurrentMissingLandCategory_Parse_ReturnsALandAvailableListing() { // Arrange. var expectedListing = FakeListings.CreateAFakeLandListing(); expectedListing.Address.StreetNumber = "LOT 12/39"; expectedListing.Address.DisplayAddress = expectedListing.Address.ToFormattedAddress(true, StateReplacementType.ReplaceToLongText, false, true); expectedListing.CategoryType = LandRuralCategoryType.Unknown; var reaXml = File.ReadAllText(FakeDataFolder + "REA-Land-Current-MissingLandCategory.xml"); var reaXmlTransmorgrifier = new ReaXmlTransmorgrifier(); // Act. var result = reaXmlTransmorgrifier.Parse(reaXml); // Assert. AssertLandListing(result, expectedListing); }
public void GivenTheFileREALandCurrentIncompleteLandDetails_Parse_ReturnsALandAvailableListing() { // Arrange. var expectedListing = FakeListings.CreateAFakeLandListing(); expectedListing.Address.StreetNumber = "LOT 12/39"; expectedListing.Address.DisplayAddress = expectedListing.Address.ToFormattedAddress(true, StateReplacementType.ReplaceToLongText, false, true); expectedListing.LandDetails.CrossOver = null; expectedListing.LandDetails.Depths = new List <Depth>(); var reaXml = File.ReadAllText(FakeDataFolder + "REA-Land-Current-IncompleteLandDetails.xml"); var reaXmlTransmorgrifier = new ReaXmlTransmorgrifier(); // Act. var result = reaXmlTransmorgrifier.Parse(reaXml); // Assert. AssertLandListing(result, expectedListing); }