public void UpdateForm_HasCorrectModelType_Stylist()
        {
            StylistsController controller     = new StylistsController();
            ActionResult       actionResult   = controller.UpdateForm(0);
            ViewResult         updateFormView = controller.UpdateForm(0) as ViewResult;
            var result = updateFormView.ViewData.Model;

            Assert.IsInstanceOfType(result, typeof(Stylist));
        }
Пример #2
0
        public void UpdateForm_ReturnsCorrectView_True()
        {
            StylistsController controller = new StylistsController();
            ActionResult       updateView = controller.UpdateForm(0);

            Assert.IsInstanceOfType(updateView, typeof(ViewResult));
        }
        public void UpdateForm_ReturnsCorrectView_True()
        {
            //Arrange
            StylistsController controller = new StylistsController();

            //Act
            ActionResult indexView = controller.UpdateForm(1);

            //Assert
            Assert.IsInstanceOfType(indexView, typeof(ViewResult));
        }