public void ProductInitialize()
 {
     _productShippingDetailRepository = new ProductShippingDetailRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _productShoppingRepository       = new ProductShoppingRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _shippingPaymentRepository       = new ShippingPaymentRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _shippingAddressRepository       = new ShippingAddressRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _productRepository        = new ProductRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
     _IProductShippingDetailBL = new ProductShippingDetailImpl(_productShippingDetailRepository, _productShoppingRepository, _shippingPaymentRepository, _shippingAddressRepository, _productRepository);
 }
Example #2
0
 public ProductService(IProduct product, IProductShippingDetail productShippingDetail)
 {
     _product = product;
     _productShippingDetail = productShippingDetail;
 }