public void EventFullBanner_Action_Sets_WaitList_Property_In_ViewBag() { //Arrange _waitListHelper.SetWaitListStatus().Returns(true); //Act var controller = new ContentController(_sponsorRepository, _waitListHelper); var result = controller.EventFullBanner(); //Assert Assert.IsNotNull(result.AssertPartialViewRendered().ViewBag.IsEventFull); }
public void EventFullBanner_Action_Returns_View() { //Arrange _waitListHelper.SetWaitListStatus().Returns(true); //Act var controller = new ContentController(_sponsorRepository, _waitListHelper); var result = controller.EventFullBanner(); //Assert result.AssertPartialViewRendered(); }