예제 #1
0
        public async Task Get_All_Continents()
        {
            //Arrange
            cityQueries = new CityQueries(context.Object);

            //Act
            var cqCities = await cityQueries.GetAllCitiesAsync();

            //Assert
            Assert.AreEqual(cities.Count, cqCities.Count);
        }
예제 #2
0
 public async Task <ICollection <City> > GetCitiesAsync()
 {
     return(await cq.GetAllCitiesAsync());
 }