public void ShouldGetProcessState() { //given Book book1 = new Book(1, "Title", "Test", "genre"); Book book2 = new Book(2, "Eltit", "Tset", "genre"); Book book3 = new Book(3, "Title", "Le", "genre"); dao.AddBook(book1); dao.AddBook(book2); dao.AddBook(book3); //when List <Book> result = processState.GetCurrentLibraryState(); //then Assert.IsTrue(result.Count == 3); Assert.IsTrue(result.Contains(book1)); Assert.IsTrue(result.Contains(book2)); Assert.IsTrue(result.Contains(book3)); }
public List <Book> GetCurrentLibraryState() { return(processState.GetCurrentLibraryState()); }