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); }
public void Dispose() { modifyStockCommand = null; }