public void EducationInitialize() { _educationShoppingRepository = new EducationShoppingRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _productShopping = new ProductShoppingRepository(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>()); _productShoppingTemp = new ProductShoppingTempRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _order = new OrderRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _educationShoppingTemp = new EducationShoppingTempRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _myEducationRepository = new MyEducationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _myEducationModuleRepository = new MyEducationModuleRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _productQuantityRepository = new ProductQuantityRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _educationShoppingBL = new EducationShoppingImpl(_educationShoppingRepository, _order, _educationShoppingTemp, _myEducationRepository, _myEducationModuleRepository, _educationModuleFileRepository, _productShoppingTemp, _productShopping, _productQuantityRepository, _productRepository); _educationModuleFileRepository = new EducationModuleFileRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory<HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); }
public ShoppingEducationService(IEducationShoppingTemp educationShoppingTemp, IEducationShopping educationShopping) { _educationShoppingTemp = educationShoppingTemp; _educationShopping = educationShopping; }