public void Initialize() { _mockRepository = new Mock <IBatchRepository>(); _service = new BatchBll(_mockRepository.Object); batchModels = new List <BatchModel>() { new BatchModel() { BatchId = 1, Name = "US", Quantity = 10, Variety = "Rasberry" }, new BatchModel() { BatchId = 2, Name = "US", Quantity = 10, Variety = "Rasberry2" }, new BatchModel() { BatchId = 3, Name = "US", Quantity = 10, Variety = "Rasberry3" } }; }
public BatchController(IBatchBll stockBll, ILog logger) { _batchBll = stockBll; _logger = logger; }