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;
 }
Beispiel #5
0
 public ProductOfferController(IOffers <ProductOffer> context)
 {
     this.context = context;
 }
Beispiel #6
0
 public Pricing(IOffers offers)
 {
     _offers = offers;
 }
 public OffersController(IOffers Offers)
 {
     _offers = Offers;
 }
Beispiel #8
0
        public OffersController(IOffers<OffersModel> context)
        {

            this.context = context;

        }
Beispiel #9
0
 public double Apply(Checkout.ItemCodeCounts item, IOffers offer)
 {
     return(Apply(item, (Offers)offer));
 }