public async Task GetAllAsync_WithPredicate_ReturnsMatchingValues(int id1, int id2, int id3) { // Arrange sut = new KeylessRepository(_db); // Act var result = await sut.GetAllAsync(x => new[] { id1, id2, id3 }.Contains(x.Id)); // Assert Assert.NotEmpty(result); Assert.Equal(3, result.Count()); }
public async Task GetAllAsync_ReturnsAllExistingValues() { // Arrange sut = new KeylessRepository(_db); // Act var result = await sut.GetAllAsync(); // Assert Assert.NotEmpty(result); Assert.Equal(5, result.Count()); }