示例#1
0
        public void WhenGettingAllBooksShoudReturnAll()
        {
            // Arrange
            InMemoryBookShoppingRepository inMemoryBookShoppingRepository = new InMemoryBookShoppingRepository();
            // Act
            var books = inMemoryBookShoppingRepository.GetAllBooks();

            // Assert
            Assert.Equal(inMemoryBookShoppingRepository.Books.Count(), books.Count());
        }
示例#2
0
 public List <Book> GetAllBooks()
 {
     return(_inMemoryBookShoppingRepository.GetAllBooks());
 }