public void ExternalWebOpportunityEdit() { // Arrange OpportunityController controller = new OpportunityController(); // Act var opportunityId = 1; ViewResult result = controller.Edit(opportunityId) as ViewResult; var model = (Opportunity)result.ViewData.Model; // Assert Assert.IsNotNull(result); Assert.AreEqual("BREADALBANE CANOE CLUB EVENT", model.OpportunityTitle); }