public void WhenGettingAllBooksShoudReturnAll() { // Arrange InMemoryBookShoppingRepository inMemoryBookShoppingRepository = new InMemoryBookShoppingRepository(); // Act var books = inMemoryBookShoppingRepository.GetAllBooks(); // Assert Assert.Equal(inMemoryBookShoppingRepository.Books.Count(), books.Count()); }
public List <Book> GetAllBooks() { return(_inMemoryBookShoppingRepository.GetAllBooks()); }