Beispiel #1
0
        public ModifyBatchStockTest()
        {
            mockUOW  = new Mock <IUnitOfWork>();
            mockRepo = new Mock <IBatchRepository>();

            Batch batch = new Batch();

            mockUOW.Setup(x => x.Batches.GetAsync(1)).ReturnsAsync(batch);
            mockUOW.Setup(x => x.Batches.GetAsync(2)).ReturnsAsync((Batch)null);

            modifyStockCommand = new ModifyBatchStock(mockUOW.Object);
        }
Beispiel #2
0
 public void Dispose()
 {
     modifyStockCommand = null;
 }