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); }
public Task <IEnumerable <Developer> > GetAll() { return(_developerRepository.GetAllAsync()); }
public async Task <IEnumerable <Developer> > GetAllAsync() { return(await repo.GetAllAsync()); }