示例#1
0
 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"
         }
     };
 }
示例#2
0
 public BatchController(IBatchBll stockBll, ILog logger)
 {
     _batchBll = stockBll;
     _logger   = logger;
 }