public void DeleteStylistConfirmation_HasCorrectModelType_Stylist() { StylistsController controller = new StylistsController(); ActionResult actionResult = controller.DeleteStylistConfirmation(0); ViewResult deleteStylistConfirmationView = controller.DeleteStylistConfirmation(0) as ViewResult; var result = deleteStylistConfirmationView.ViewData.Model; Assert.IsInstanceOfType(result, typeof(Stylist)); }
public void DeleteStylistConfirmation_ReturnsCorrectView_True() { StylistsController controller = new StylistsController(); ActionResult DeleteStylistConfirmation = controller.DeleteStylistConfirmation(0); Assert.IsInstanceOfType(DeleteStylistConfirmation, typeof(ViewResult)); }