public void DetailsAjaxRequestShouldReturnPartial()
 {
     var controller = new NamesController(Repository);
     controller.ControllerContext = new ControllerContext(AjaxContext, new RouteData(), controller );
     var result = controller.Details(1);
     Assert.IsInstanceOfType(result, typeof(PartialViewResult));
 }
 public void DetailsShouldReturnView()
 {
     var controller = new NamesController(Repository);
     controller.ControllerContext = new ControllerContext(StandardContext, new RouteData(), controller);
     var result = controller.Details(1);
     Assert.IsInstanceOfType(result, typeof(ViewResult));
 }