예제 #1
0
        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);
        }
예제 #2
0
        public void RemoveStockItem_ValidRequest()
        {
            StockProcessRepository repo = new StockProcessRepository(dbctxt);

            int    id     = 21;
            string result = repo.RemoveStockItem(id).Result;

            Assert.Equal(result, GlobalConstants.Success);
        }