public static ResidentialListing ResidentialListing(bool isClearAllIsModified = true) { var listing = new ResidentialListing { AuctionOn = new DateTime(2015, 5, 23), Agents = new List <ListingAgent> { new ListingAgent { Name = "Princess Leia", Order = 1, Communications = new List <Communication> { new Communication { CommunicationType = CommunicationType.Email, Details = "[email protected]" } } } }, BuildingDetails = new BuildingDetails { Area = new UnitOfMeasure { Type = "Some type", Value = 1.2345m }, EnergyRating = 111.222m, }, CouncilRates = "some council rates", PropertyType = PropertyType.Townhouse, Pricing = new SalePricing { IsUnderOffer = true, SalePrice = 12345.66m, SalePriceText = "house for sale", SoldOn = new DateTime(2015, 6, 1), SoldPrice = 45432.99m, SoldPriceText = "just sold woot!" } }; if (isClearAllIsModified) { listing.ClearAllIsModified(); } return(listing); }
public static ResidentialListing ResidentialListing(bool isClearAllIsModified = true) { var listing = new ResidentialListing { AuctionOn = new DateTime(2015, 5, 23), Agents = new List<ListingAgent> { new ListingAgent { Name = "Princess Leia", Order = 1, Communications = new List<Communication> { new Communication { CommunicationType = CommunicationType.Email, Details = "[email protected]" } } } }, BuildingDetails = new BuildingDetails { Area = new UnitOfMeasure { Type = "Some type", Value = 1.2345m }, EnergyRating = 111.222m, }, CouncilRates = "some council rates", PropertyType = PropertyType.Townhouse, Pricing = new SalePricing { IsUnderOffer = true, SalePrice = 12345.66m, SalePriceText = "house for sale", SoldOn = new DateTime(2015, 6, 1), SoldPrice = 45432.99m, SoldPriceText = "just sold woot!" } }; if (isClearAllIsModified) { listing.ClearAllIsModified(); } return listing; }