public void ExternalWebOpportunityIndex() { // Arrange OpportunityController controller = new OpportunityController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result.ViewData.Count); }
public void InternalWebOpportunityIndex() { // Arrange OpportunityController controller = new OpportunityController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.AreEqual("Internal Website Application.", result.ViewBag.Message); Assert.AreEqual("Index", result.ViewName); Assert.IsNotNull(result.ViewData.Count); }