예제 #1
0
        public void WhenIOpenTheDetailsOfBook(string bookId)
        {
            var book = _catalogContext.ReferenceBooks.GetById(bookId);

            var controller = new CatalogController();
            actionResult = controller.Details(book.Id);
        }
예제 #2
0
 public void WhenIPerformASimpleSearchOn(string searchTerm)
 {
     var controller = new CatalogController();
     actionResult = controller.Search(searchTerm);
 }
예제 #3
0
 public void WhenISearchForBooksByThePhrase(string searchTerm)
 {
     var controller = new CatalogController();
     actionResult = controller.Search(searchTerm);
 }