Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductStoreRequestService"/> class with specified <see cref="IProductCatalogueContext"/>.
 /// </summary>
 /// <param name="context">A <see cref="IProductStoreContext"/>.</param>
 /// <param name="hiveSectionService">A <see cref="IHiveSectionService"/>.</param>
 /// <param name="productService">A <see cref="IProductCatalogueService"/>.</param>
 /// <param name="productStoreService">A <see cref="IProductStoreService"/>.</param>
 /// <param name="userContext">A <see cref="IUserContext"/>.</param>
 public ProductStoreRequestService(IProductStoreContext context, IHiveSectionService hiveSectionService, IProductCatalogueService productService, IProductStoreService productStoreService, IUserContext userContext)
 {
     _context             = context ?? throw new ArgumentNullException(nameof(context));
     _hiveSectionService  = hiveSectionService ?? throw new ArgumentNullException(nameof(hiveSectionService));
     _productService      = productService ?? throw new ArgumentNullException(nameof(productService));
     _productStoreService = productStoreService ?? throw new ArgumentNullException(nameof(productStoreService));
     _userContext         = userContext ?? throw new ArgumentNullException(nameof(userContext));
 }
Example #2
0
        public ProductStoreForm()
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _productStoreService          = kernel.GetService(typeof(ProductStoreService)) as ProductStoreService;
            _purchaseReceiveService       = kernel.GetService(typeof(PurchaseReceiveService)) as PurchaseReceiveService;
            _purchaseReceiveDetailService = kernel.GetService(typeof(PurchaseReceiveDetailService)) as PurchaseReceiveDetailService;
            _productUnitService           = kernel.GetService(typeof(ProductUnitService)) as ProductUnitService;
            _productSectionService        = kernel.GetService(typeof(ProductSectionService)) as ProductSectionService;

            _productStore = new ProductStoreModel();
        }
Example #3
0
 public CategoryController(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     IProductStoreService productStoreService,
     ILoggerFactory loggerFactory)
 {
     _userManager         = userManager;
     _emailSender         = emailSender;
     _smsSender           = smsSender;
     _productStoreService = productStoreService;
     _logger = loggerFactory.CreateLogger <CategoryController>();
 }
Example #4
0
 public ProductStoreController(IProductStoreService productStoreService)
 {
     _productStoreService = productStoreService ?? throw new ArgumentNullException(nameof(productStoreService));
 }
 public ProductController(
     IProductStoreService productStoreService)
 {
     _productStoreService = productStoreService;
 }