public void GetAuthorsList_ReturnsListOfDistinctAuthors() { var expectedResult = TestData.Books.Select(book => book.Author).Distinct().ToList(); var actualResult = _repository.GetAuthorsList(); Assert.Equal(expectedResult, actualResult); }