Exemplo n.º 1
0
 public StockItemsDataTest()
 {
     Database.SetInitializer(new NullDatabaseInitializer <StockContext>());
     _context   = new StockContext();
     _stockData = new StockItemsData(_context);
     SetupLogging();
 }
Exemplo n.º 2
0
 public StockItemsController(GenericRepository <StockItem> repository, StockItemsData stockRepo)
 {
     _repository = repository;
     _stockRepo  = stockRepo;
 }