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();
        }
        private NonTechVolunteer CreateVolunteer(NonTechVolunteerViewModel model, IEnumerable <int> selectedExpertiseLevels)
        {
            var volunteer = model.MapToNonTechVolunteerModel();

            volunteer.IsOnWaitList = _waitListHelper.SetWaitListStatus();
            foreach (var expertiseId in selectedExpertiseLevels)
            {
                volunteer.AreasOfExpertise.Add(_expertiseRepository.Get(expertiseId));
            }

            return(volunteer);
        }
        private Volunteer CreateVolunteer(SignUpViewModel model, IEnumerable <int> selectedJobRoleIds, IEnumerable <int> selectedTechnologyIds)
        {
            var volunteer = model.MapToVolunteerModel();

            volunteer.ExperienceLevel = _xpLevelRepository.Get(model.ExperienceLevel);
            volunteer.IsOnWaitList    = _waitListHelper.SetWaitListStatus();
            foreach (var jobRoleId in selectedJobRoleIds)
            {
                volunteer.JobRoles.Add(_jobRoleRepository.Get(jobRoleId));
            }

            foreach (var selectedTechnologyId in selectedTechnologyIds)
            {
                volunteer.Technologies.Add(_technologyRepository.Get(selectedTechnologyId));
            }
            return(volunteer);
        }
 public ActionResult EventFullBanner()
 {
     ViewBag.IsEventFull = _waitListHelper.SetWaitListStatus();
     return(PartialView());
 }