public void Details_LinksToCorrect_View() { //Arrange SpecialtyController controller = new SpecialtyController(); //Act ActionResult detailsView = controller.Details(0); //Assert Assert.IsInstanceOfType(detailsView, typeof(ViewResult)); }
public void Details_ReturnsCorrectView_True() { //Arrange SpecialtyController controller = new SpecialtyController(); Client testClient = new Client("connor"); //Act ActionResult indexView = controller.Details(testClient.GetId()); //Assert Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }
public void Details_ReturnsCorrectView_True() { //Arrange SpecialtyController controller = new SpecialtyController(); Specialty testSpecialty = new Specialty("John", 0); testSpecialty.Save(); //Act ActionResult detailsView = controller.Details(testSpecialty.id); //Assert Assert.IsInstanceOfType(detailsView, typeof(ViewResult)); }