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

            // act
            var actual = inventoryClient.GetStocksByCity("Halifax", 28);

            // assert
            var stocks = new List <InventoryItem>(actual);

            Assert.AreEqual(1, stocks.Count);
            Assert.IsTrue(stocks[0].UnitsInStock != 0);
        }