private IEnumerable <Offer> CleanOffers(ShopData shopData) { var cleaner = new OfferConverter(shopData, _dbHelper, _context); var cleanOffers = cleaner.GetCleanOffers(); SetProgress(40); AddMessage("Clearing offers complete"); return(cleanOffers); }
public void Convert(int listings, int unitPrice, int quantity) { var converter = new OfferConverter(); var value = new ListingOfferDataContract { Listings = listings, UnitPrice = unitPrice, Quantity = quantity }; var result = converter.Convert(value, null); Assert.NotNull(result); Assert.Equal(listings, result.Listings); Assert.Equal(unitPrice, result.UnitPrice); Assert.Equal(quantity, result.Quantity); }