public void RemoveStockItem_InValidRequest_InvalidStockId() { StockProcessRepository repo = new StockProcessRepository(dbctxt); int id = 20; string result = repo.RemoveStockItem(id).Result; Assert.Equal("Not a valid StockId", result); }
public void RemoveStockItem_ValidRequest() { StockProcessRepository repo = new StockProcessRepository(dbctxt); int id = 21; string result = repo.RemoveStockItem(id).Result; Assert.Equal(result, GlobalConstants.Success); }