public void Update_ReturnsCorrectView_True() { StylistsController controller = new StylistsController(); ActionResult showView = controller.Update(1, "bla", "foo", "340-203-6833", "blaATgmailDOTcom"); Assert.IsInstanceOfType(showView, typeof(ViewResult)); }
public void Update_ReturnsCorrectView_True() { StylistsController controller = new StylistsController(); ActionResult Update = controller.Update(1, "John Doe"); Assert.IsInstanceOfType(Update, typeof(RedirectToActionResult)); }
public void Update_HasCorrectModelType_Dictionary() { StylistsController controller = new StylistsController(); ViewResult newView = controller.Update(1, "bla", "foo", "340-203-6833", "blaATgmailDOTcom") as ViewResult; var result = newView.ViewData.Model; Assert.IsInstanceOfType(result, typeof(Dictionary <string, object>)); }