示例#1
0
        public void UpdateStock_GivenAnUpdatedItem_UpdateTheDatabaseRecord()
        {
            // arrange

            /*
             * The record being manipulated is:
             *  PRODUCT ID: 12
             *  WAREHOUSE ID: 4
             *  INVENTORY ITEM RECORD ID: 81
             */

            // act
            inventoryClient.UpdateStock(81, 55);

            // assert
            var actual = inventoryClient.GetStockByWarehouse("BloomSales W#4", 12);

            Assert.AreEqual(55, actual.UnitsInStock);
        }