示例#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);
 }