예제 #1
0
    public void ShouldReturnTrueIfBooksReadContainsBookAndAnotherBook()
    {
        UserBooksUpdateModel updateModel = GetUserBooksUpdateModelWithBookInBooksRead();

        updateModel.BooksRead.Add(BookHelpers.GetDefaultTestBookWithSpecifiedTitle("C# for dummies"));

        bool hasReadBook = updateModel.HasReadBook(Book);

        Assert.True(hasReadBook);
    }