示例#1
0
        public async Task GetFilmsAsyncTest()
        {
            var repo   = new FilmsRepo();
            var result = await repo.GetFilmsAsync();

            Assert.NotEmpty(result);
        }
示例#2
0
        public async Task <List <Film> > GetFilms()
        {
            var filmRepo = new FilmsRepo();

            return((await filmRepo.GetFilmsAsync()).ToList());
        }