コード例 #1
0
        public async Task GetAllAsync()
        {
            var item1 = await DeveloperEntityFramework.AddAsync(builder.CreateDeveloper());

            var item2 = await DeveloperEntityFramework.AddAsync(builder.CreateDeveloper());

            var result = await DeveloperEntityFramework.GetAllAsync();

            Assert.AreEqual(result.OrderBy(u => u.Id).Where(u => u.Id == item1.Id).FirstOrDefault().Id, item1.Id);
            Assert.AreEqual(result.OrderBy(u => u.Id).Where(u => u.Id == item2.Id).FirstOrDefault().Id, item2.Id);
        }
コード例 #2
0
 public Task <IEnumerable <Developer> > GetAll()
 {
     return(_developerRepository.GetAllAsync());
 }
コード例 #3
0
 public async Task <IEnumerable <Developer> > GetAllAsync()
 {
     return(await repo.GetAllAsync());
 }