コード例 #1
0
        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);
        }
コード例 #2
0
        public void RotatorContent_Action_Returns_View()
        {
            //Arrange
            _sponsorRepository.FindAll().ReceivedWithAnyArgs().Returns(new List<Sponsor>());

            //Act
            var controller = new ContentController(_sponsorRepository, _waitListHelper);
            var result = controller.RotatorContent();

            //Assert
            result.AssertPartialViewRendered();
        }
コード例 #3
0
        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();
        }