public ProductManagerController(IRepository <Product> productContext, IRepository <ProductCategory> productCategoryContext, IOffers <ProductOffer> productOfferContext, IOffers <OffersModel> productOffersContext) { context = productContext; productCategories = productCategoryContext; productOffers = productOfferContext; offersModel = productOffersContext; }
public CheckoutTest() { _checkout = Substitute.For <ICheckout>(); _offers = Substitute.For <IOffers>(); _offers.AddProduct(_sku, _price); _offers.AddDeal(_sku, 3, 2.4f); _offers.AddDeal(_sku, 5, 3.7f); _offers.AddDeal(_sku, 7, 4.9f); }
public OffersTest() { _offers = Substitute.For <IOffers>(); }
public void Configure(IOffers offers) { _offers = offers; }
public ProductOfferController(IOffers <ProductOffer> context) { this.context = context; }
public Pricing(IOffers offers) { _offers = offers; }
public OffersController(IOffers Offers) { _offers = Offers; }
public OffersController(IOffers<OffersModel> context) { this.context = context; }
public double Apply(Checkout.ItemCodeCounts item, IOffers offer) { return(Apply(item, (Offers)offer)); }