예제 #1
0
 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()));
 }
예제 #2
0
 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;
 }
예제 #3
0
 public CartBusiness(ICampaignBusiness campaignBusiness, ICouponBusiness couponBusiness)
 {
     _campaignBusiness = campaignBusiness;
     _couponBusiness   = couponBusiness;
 }