public void GetAll_GetAllObjects_Objects() { // Arrange var repository = new EFCoreRepository <UserEntity>(_appDbContext); // Act var result = repository.GetAll(); // Assert Assert.NotNull(result); Assert.Equal(_users, result); Assert.Equal(2, result.Count()); Assert.Equal("Name2", result .ToList() .ElementAt(1).Name); }
public void GetBooksFromEFCore() => efCoreRepository.GetAll();
public async Task <IActionResult> Get() { var listHeroi = await _repository.GetAll(); return(Ok(listHeroi)); }