예제 #1
0
        public void ExternalWebOpportunityIndex()
        {
            // Arrange
            OpportunityController controller = new OpportunityController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result.ViewData.Count);
        }
예제 #2
0
        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);
        }