public void WhenIOpenTheDetailsOfBook(string bookId) { var book = _catalogContext.ReferenceBooks.GetById(bookId); var controller = new CatalogController(); actionResult = controller.Details(book.Id); }
public void WhenIPerformASimpleSearchOn(string searchTerm) { var controller = new CatalogController(); actionResult = controller.Search(searchTerm); }
public void WhenISearchForBooksByThePhrase(string searchTerm) { var controller = new CatalogController(); actionResult = controller.Search(searchTerm); }