public void Index_ReturnsView()
        {
            var          controller = new VolunteerController();
            ActionResult result     = controller.Index();

            Assert.IsInstanceOf(typeof(ViewResult), result);
        }
        public void TestInit()
        {
            _disasterSvc = new Mock <IDisaster>();
            _clusterSvc  = new Mock <ICluster>();
            _adminSvc    = new Mock <IAdmin>();
            _messageSvc  = new Mock <IMessageService>();

            _controllerUnderTest = new VolunteerController(_disasterSvc.Object, _clusterSvc.Object, _adminSvc.Object, _messageSvc.Object);
        }
        public void ThankYou_Action_Returns_View()
        {
            //Act
            var controller = new VolunteerController(_waitListHelper, _volunteerRepository, _jobRoleRepository, _notificationService, _technologyRepository, _experienceLevelRepository);
            var result     = controller.ThankYou();

            //Assert
            result.AssertViewRendered();
        }
        public void VolunteerController_Index_Test()
        {
            //Arrange
            VolunteerController controller = new VolunteerController();

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

            //Assert
            Assert.IsNotNull(result);
        }
        public void SignUp_Action_Returns_View()
        {
            //Arrange
            _jobRoleRepository.FindAll().ReceivedWithAnyArgs().Returns(new List <JobRole>());
            _technologyRepository.FindAll().ReceivedWithAnyArgs().Returns(new List <Technology>());
            _experienceLevelRepository.FindAll().ReceivedWithAnyArgs().Returns(new List <ExperienceLevel>());

            //Act
            var controller = new VolunteerController(_waitListHelper, _volunteerRepository, _jobRoleRepository, _notificationService, _technologyRepository, _experienceLevelRepository);
            var result     = controller.SignUp();

            //assert
            result.AssertViewRendered();
        }