private static CarAds CreateDealerAds(string make, string model, int year, CarPriceType priceType, decimal price, string comments, string email, string abn) { var ads = CreateAds(make,model,year,priceType,price,comments); ads.ContactDetail = new DealerSellerDetail { EmailAddress = email, DealerABN = abn }; return ads; }
private static CarAds CreatePrivateAds(string make, string model, int year, CarPriceType priceType, decimal price, string comments, string email, string contactName, string phone) { var ads = CreateAds(make,model,year,priceType,price,comments); ads.ContactDetail = new PrivateSellerDetail { EmailAddress = email, ContactName = contactName, Phone = phone }; return ads; }
private static CarAds CreateAds(string make, string model, int year, CarPriceType priceType, decimal price, string comments) { return new CarAds() { Id = Guid.NewGuid(), CarListed = new Car() { Id = Guid.NewGuid(), Make = make, Model = model, Year = year, PriceType = priceType, Price = price, }, ListedDate = DateTime.Now, Comments = comments }; }