public void Setup()
 {
     _waitListHelper = Substitute.For<IWaitListHelper>();
     _volunteerRepository = Substitute.For<IVolunteerRepository>();
     _jobRoleRepository = Substitute.For<IJobRoleRepository>();
     _notificationService = Substitute.For<INotificationService>();
     _technologyRepository = Substitute.For<ITechnologyRepository>();
     _experienceLevelRepository = Substitute.For<IExperienceLevelRepository>();
 }
示例#2
0
 public EmailFunctions(IMandrillEmailSender mandrillEmailSender, IVolunteerRepository volunteerRepository, IOrganisationRepository organisationRepository, ICommunicationTemplateRepository communicationTemplateRepository, IEmailSentRepository emailSentRepository, IDocumentDownload documentDownload, IBlobStorage blobStorage)
 {
     _mandrillEmailSender             = mandrillEmailSender;
     _volunteerRepository             = volunteerRepository;
     _organisationRepository          = organisationRepository;
     _communicationTemplateRepository = communicationTemplateRepository;
     _emailSentRepository             = emailSentRepository;
     _documentDownload = documentDownload;
     _blobStorage      = blobStorage;
 }
示例#3
0
 public SchoolController(
     IVolunteerRepository volunteerRepository,
     ISchoolRepository schoolRepository,
     IMapper mapper
     )
 {
     _volunteerRepo = volunteerRepository;
     _schoolRepo    = schoolRepository;
     _mapper        = mapper;
 }
示例#4
0
 public EMIController(IEventRepository eventRepo, ITestimonyRepository testimonyRepo, IGalleryRepository galleryRepo, IMapper mapper,
                      IEmailService emailService, IVolunteerRepository volRepo, ISubscriptionRepository subRepo)
 {
     this.eventRepo     = eventRepo;
     this.testimonyRepo = testimonyRepo;
     this.galleryRepo   = galleryRepo;
     this.mapper        = mapper;
     this.emailService  = emailService;
     this.volRepo       = volRepo;
     _subRepo           = subRepo;
 }
示例#5
0
 public TeamController(
     IVolunteerRepository volunteerRepository,
     ITeamRepository teamRepository,
     ISchoolRepository schoolRepository,
     IMapper mapper
     )
 {
     _volunteerRepo = volunteerRepository;
     _teamRepo      = teamRepository;
     _schoolRepo    = schoolRepository;
     _mapper        = mapper;
 }
示例#6
0
 public ActivityController(
     IVolunteerRepository volunteerRepository,
     UserManager <ApplicationUser> userManager,
     IMapper mapper,
     AuthenticationContext authContext
     )
 {
     _repo        = volunteerRepository;
     _userManager = userManager;
     _mapper      = mapper;
     _authContext = authContext;
 }
示例#7
0
 public InviteAVolunteerHandler(
     IInvitationCodesGenerator generator,
     IMediator mediator,
     ISystemClock clock,
     IInvitationRepository invitationRepository,
     IVolunteerRepository volunteerRepository)
 {
     _volunteerRepository = volunteerRepository;
     _generator           = generator;
     _mediator            = mediator;
     _clock = clock;
     _invitationRepository = invitationRepository;
 }
示例#8
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
#pragma warning disable S1066 // Collapsible "if" statements should be merged
                if (_volunteerRepository != null)
#pragma warning restore S1066 // Collapsible "if" statements should be merged
                {
                    _volunteerRepository = null;
                }
            }
            base.Dispose(disposing);
        }
 public VolunteerController(IWaitListHelper waitListHelper,
                            IVolunteerRepository volunteerRepository,
                            IJobRoleRepository jobRoleRepository,
                            INotificationService notificationService,
                            ITechnologyRepository technologyRepository,
                            IExperienceLevelRepository xpLevelRepository)
 {
     _waitListHelper       = waitListHelper;
     _xpLevelRepository    = xpLevelRepository;
     _technologyRepository = technologyRepository;
     _jobRoleRepository    = jobRoleRepository;
     _volunteerRepository  = volunteerRepository;
     _notificationService  = notificationService;
 }
 public VolunteerController(IWaitListHelper waitListHelper, 
     IVolunteerRepository volunteerRepository,
     IJobRoleRepository jobRoleRepository,
     INotificationService notificationService,
     ITechnologyRepository technologyRepository,
     IExperienceLevelRepository xpLevelRepository)
 {
     _waitListHelper = waitListHelper;
     _xpLevelRepository = xpLevelRepository;
     _technologyRepository = technologyRepository;
     _jobRoleRepository = jobRoleRepository;
     _volunteerRepository = volunteerRepository;
     _notificationService = notificationService;
 }
 public EMIMgtController(IEventRepository eventRepo, ITestimonyRepository testimonyRepo, IGalleryRepository galleryRepo,
                         IMapper mapper, IHostingEnvironment environment, IVolunteerRepository volRepo,
                         IBackgroundTaskQueue queue, ISubscriptionRepository subscriptionRepo, IEmailService emailService)
 {
     _eventRepo         = eventRepo;
     _testimonyRepo     = testimonyRepo;
     _galleryRepo       = galleryRepo;
     _mapper            = mapper;
     hostingEnvironment = environment;
     this.volRepo       = volRepo;
     _emailService      = emailService;
     _queue             = queue;
     _subRepo           = subscriptionRepo;
 }
示例#12
0
 public VolunteerController()
 {
     _volunteerRepository = new VolunteerRepository();
 }
 public OrganisationSpecifications(IOrganisationRepository organisationRepository, IOrganisationSettingsRepository organisationSettingsRepository, IOrganisationFinancialPlanRepository organisationFinancialPlanRepository, IFinancialPlanRepository financialPlanRepository, IVolunteerRepository volunteerRepository)
 {
     _organisationRepository              = organisationRepository;
     _organisationSettingsRepository      = organisationSettingsRepository;
     _organisationFinancialPlanRepository = organisationFinancialPlanRepository;
     _financialPlanRepository             = financialPlanRepository;
     _volunteerRepository = volunteerRepository;
 }
示例#14
0
 public VolunteerUnitOfWork(VolunteersDbCotext dbContext)
     : base(dbContext)
 {
     _volunteerRepository = new VolunteersRepository(dbContext);
 }
 public void SetUp()
 {
     _volunteerRepository = Substitute.For<IVolunteerRepository>();
     _nonTechieVolunteerRepository = Substitute.For<INonTechVolunteerRepository>();
 }
示例#16
0
 public VolunteerService(IVolunteerRepository volunteerRepository, IMapper mapper,
                         IValidator <VolunteerCreateDTO> createValidator,
                         IValidator <VolunteerUpdateDTO> updateValidator) : base(volunteerRepository, mapper, updateValidator, createValidator)
 {
 }
示例#17
0
 public VolunteerSpecifications(IOrganisationRepository organisationRepository, IVolunteerRepository volunteerRepository, IUpdatedEntityLogRepository updatedEntityLogRepository, IRefereeRepository refereeRepository)
 {
     _organisationRepository     = organisationRepository;
     _volunteerRepository        = volunteerRepository;
     _updatedEntityLogRepository = updatedEntityLogRepository;
     _refereeRepository          = refereeRepository;
 }
 public VolunteersController(IGroupRepository groupRepository, IVolunteerRepository volunteerRepository)
 {
     this.groupRepository = groupRepository;
     this.volunteerRepository = volunteerRepository;
 }
示例#19
0
 public TokenController(IConfiguration config, IVolunteerRepository volunteerRepository, IMemoryCache cache) : base(cache)
 {
     _config = config;
     _volunteerRepository = volunteerRepository;
 }
 public MailingsAdminController(IVolunteerRepository volunteerRepository, INonTechVolunteerRepository nonTechVolunteerRepository)
 {
     _nonTechieVolunteerRepository = nonTechVolunteerRepository;
     _volunteerRepository = volunteerRepository;
 }
示例#21
0
 public VolunteerPhoneIsUniqueSpecifications(IVolunteerRepository volunteerRepository)
 {
     this._volunteerRepository = volunteerRepository;
 }
示例#22
0
 public HomeController(ILogger <HomeController> logger, IVolunteerRepository volunteerRepository, IOpportunityRepository opportunityRepository)
 {
     _logger = logger;
     _volunteerRepository   = volunteerRepository;
     _opportunityRepository = opportunityRepository;
 }
 public MailingsAdminController(IVolunteerRepository volunteerRepository, INonTechVolunteerRepository nonTechVolunteerRepository)
 {
     _nonTechieVolunteerRepository = nonTechVolunteerRepository;
     _volunteerRepository          = volunteerRepository;
 }
示例#24
0
 public VolunteerController(IVolunteerRepository volunteers, IMapper mapper)
 {
     _volunteers = volunteers;
     _mapper     = mapper;
 }
示例#25
0
 public VolunteerController()
 {
     _volunteerRepository = new VolunteerRepository();
 }
 public VolunteeringController(IVolunteerRepository volunteerRepository)
 {
     this.volunteerRepository = volunteerRepository;
 }
示例#27
0
 public HomeController(IVolunteerRepository userRepository)
 {
     _userRepository = userRepository;
 }
示例#28
0
 public VolunteerController(IVolunteerRepository repo)
 {
     repository = repo;
 }
 public SystemController(IVolunteerRepository volunteerRepository)
 {
     _volunteerRepository = volunteerRepository;
 }
示例#30
0
 public TestNotifierController()
 {
     _volunteerRepository = new VolunteerRepository();
 }
示例#31
0
 public TestNotifierController()
 {
     _volunteerRepository = new VolunteerRepository();
 }
 public void SetUp()
 {
     _volunteerRepository          = Substitute.For <IVolunteerRepository>();
     _nonTechieVolunteerRepository = Substitute.For <INonTechVolunteerRepository>();
 }
 public VolunteerAdminController(IExperienceLevelRepository xpLevelRepository, IVolunteerRepository volunteerRepository)
 {
     _xpLevelRepository = xpLevelRepository;
     _volunteerRepository = volunteerRepository;
 }
 public VolunteerController(AppDbContext context, IVolunteerRepository repo)
 {
     this.context = context;
     repository   = repo;
 }
 public VolunteerService(IVolunteerRepository volunteerRepository)
 {
     this.volunteerRepository = volunteerRepository;
 }
示例#36
0
 public VolunteerController(IVolunteerRepository volunteerRepository)
 {
     _volunteerRepository = volunteerRepository;
 }
示例#37
0
 public VolunteerService(IVolunteerRepository volunteerRepository, IVolunteerMatchingService volunteerMatchingService, IEmailSender emailSender)
 {
     _volunteerRepository      = volunteerRepository;
     _volunteerMatchingService = volunteerMatchingService;
     _emailSender = emailSender;
 }
 public VolunteerAdminController(IExperienceLevelRepository xpLevelRepository, IVolunteerRepository volunteerRepository)
 {
     _xpLevelRepository   = xpLevelRepository;
     _volunteerRepository = volunteerRepository;
 }