public void PerformSimpleSearch(string title) { actionResult = appHost.SimulateBrowsingSession(browsingSession => { RequestResult result = browsingSession.ProcessRequest("Catalog/Search?searchTerm=" + title); var currentActionResult = result.ActionExecutedContext.Result; return(new HostedViewResult <List <Book> >(result.ResponseText, currentActionResult.Model <List <Book> >())); }); }
public void PerformSimpleSearch(string title) { actionResult = appHost.SimulateBrowsingSession(browsingSession => { RequestResult result = browsingSession.ProcessRequest("Catalog/Search?searchTerm=" + title); var currentActionResult = result.ActionExecutedContext.Result; return new HostedViewResult<List<Book>>(result.ResponseText, currentActionResult.Model<List<Book>>()); }); }