Exemplo n.º 1
0
 public ProductAdminController()
 {
     this.publishingService      = new PublishingService <auRant.Core.Entities.Product, DraftProduct, ProductRepository>(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.productCategoryService = new ProductCategoryService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.productStatusService   = new ProductStatusService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.supplierService        = new SupplierService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.helperService          = new HelperService();
 }
Exemplo n.º 2
0
 public ProductAdminController()
 {
     this.publishingService = new PublishingService<auRant.Core.Entities.Product, DraftProduct, ProductRepository>(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.productCategoryService = new ProductCategoryService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.productStatusService = new ProductStatusService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.supplierService = new SupplierService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.helperService = new HelperService();
 }
Exemplo n.º 3
0
 public ProductsController(
     ProductStatusService productStatusService)
 {
     _productStatusService = productStatusService;
 }
Exemplo n.º 4
0
 public void SetUp()
 {
     // Given ProductStatusRepository and ProductStatusService
     mockedProductStatusRepo = new Mock <IProductStatusRepository>();
     productStatusService    = new ProductStatusService(mockedProductStatusRepo.Object);
 }
Exemplo n.º 5
0
 public TableController()
 {
     this.publishingService    = new PublishingService <Table, DraftTable, TableRepository>(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.productStatusService = new ProductStatusService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.helperService        = new HelperService();
 }
Exemplo n.º 6
0
 public TableController()
 {
     this.publishingService = new PublishingService<Table, DraftTable, TableRepository>(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.productStatusService = new ProductStatusService(ContextFactory.GetContext(System.Web.HttpContext.Current));
     this.helperService = new HelperService();
 }