public void Detail_HasCorrectModelType_StylistObject() { StylistsController controller = new StylistsController(); IActionResult actionResult = controller.Detail(1); ViewResult detailView = controller.Detail(1) as ViewResult; var result = detailView.ViewData.Model; Assert.IsInstanceOfType(result, typeof(Stylist)); }
public void Detail_ReturnsCorrectView_True() { StylistsController controller = new StylistsController(); ActionResult addView = controller.Detail(1); Assert.IsInstanceOfType(addView, typeof(ViewResult)); }
public void Detail_ReturnView_True() { StylistsController controller = new StylistsController(); IActionResult stylistDetailView = controller.Detail(1); ViewResult result = stylistDetailView as ViewResult; Assert.IsInstanceOfType(result, typeof(ViewResult)); }
public void Detail_ReturnsCorrectView_True() { //Arrange StylistsController controller = new StylistsController(); //Act ActionResult indexView = controller.Detail(1); //Assert Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }