Example #1
0
        public void GetCitiesTest()
        {
            IEnumerable <Warehouse> result = _warehouseRepository.GetCitiesAsync(1).ToList();

            Assert.NotNull(result);
            Assert.Equal(2, result.Count());
            Assert.Contains(result, warehouse => warehouse.City.Equals("A"));
            Assert.Contains(result, warehouse => warehouse.City.Equals("B"));
        }