public void ReturnBookCountForAuthor(int authorId, int bookCount) { var specification = new AuthorDetailWithBooks(authorId); Author author = repo.SingleOrDefault(specification); Assert.NotNull(author); Assert.Equal(bookCount, author.Books.Count()); }