public void ShouldGetProcessState() { //given Book book1 = new Book("Title", "Test", 1); Book book2 = new Book("Eltit", "Tset", 2); Book book3 = new Book("Title", "Le", 3); 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()); }