public CouponBusinessTests() { _campaignBusiness = new CampaignBusiness(new CampaignData()); _couponBusiness = new CouponBusiness(new CouponData()); _productBusiness = new ProductBusiness(new ProductData()); _cartBusiness = new CartBusiness(new CampaignBusiness(new CampaignData()), new CouponBusiness(new CouponData())); }
public HomeController(ICartBusiness cartBusiness, ICategoryBusiness categoryBusiness, IProductBusiness productBusiness, ICampaignBusiness campaignBusiness, ICouponBusiness couponBusiness, IDeliveryBusiness deliveryBusiness) { _cartBusiness = cartBusiness; _categoryBusiness = categoryBusiness; _productBusiness = productBusiness; _campaignBusiness = campaignBusiness; _couponBusiness = couponBusiness; _deliveryBusines = deliveryBusiness; }
public CartBusiness(ICampaignBusiness campaignBusiness, ICouponBusiness couponBusiness) { _campaignBusiness = campaignBusiness; _couponBusiness = couponBusiness; }