/// <summary></summary>
 public StockItemsController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IStockItemService service)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _service         = service;
 }
Exemple #2
0
 public StockControlController(IStockItemService stockItemService, Now now, CurrentUser currentUser)
 {
     this.stockItemService = stockItemService;
     this.now         = now;
     this.currentUser = currentUser;
 }
 public StockItemController(IStockItemService stockItemService)
 {
     _stockItemService = stockItemService ?? throw new ArgumentNullException(nameof(stockItemService));
 }
Exemple #4
0
 public StockController(IStockItemService stockItemService)
 {
     _stockItemService = stockItemService;
 }
 public void SetUp()
 {
     stockItemRepository = new DummyRepository <StockItem>();
     historyRepository   = new DummyRepository <StockItemHistoryBase>();
     stockItemService    = new StockItemService(stockItemRepository, historyRepository);
 }
 public StockItemsController(IMapper _mapper, IOptions <AppSettings> _appSettings, IStockItemService _stockItemService)
 {
     mapper           = _mapper;
     appSettings      = _appSettings.Value;
     stockItemService = _stockItemService;
 }
 public void SetUp()
 {
     stockItemRepository = new DummyRepository<StockItem>();
     historyRepository = new DummyRepository<StockItemHistoryBase>();
     stockItemService = new StockItemService(stockItemRepository, historyRepository);
 }
 public StockControlController(IStockItemService stockItemService, Now now, CurrentUser currentUser)
 {
     this.stockItemService = stockItemService;
     this.now = now;
     this.currentUser = currentUser;
 }
 public StockItemRepository(IMapper mapper, IStockItemService stockItem)
 {
     _mapper    = mapper;
     _stockItem = stockItem;
 }