예제 #1
0
 public VolunteerApplicationService(IFormSubmissionRepository formSubmissionService,
                                    IConfigurationWrapper configurationWrapper, IServeService serveService)
 {
     _formSubmissionService = formSubmissionService;
     _configurationWrapper  = configurationWrapper;
     _serveService          = serveService;
 }
예제 #2
0
 public GroupLeaderService(IPersonService personService, IUserRepository userRepository, IFormSubmissionRepository formSubmissionRepository, IParticipantRepository participantRepository, IConfigurationWrapper configWrapper, ICommunicationRepository communicationRepository, IContactRepository contactRepository)
 {
     _personService            = personService;
     _userRepository           = userRepository;
     _formSubmissionRepository = formSubmissionRepository;
     _participantRepository    = participantRepository;
     _configWrapper            = configWrapper;
     _communicationRepository  = communicationRepository;
     _contactRepository        = contactRepository;
 }
예제 #3
0
        public void Setup()
        {
            _ministryPlatformService        = new Mock <IMinistryPlatformService>();
            _ministryPlatformRestRepository = new Mock <IMinistryPlatformRestRepository>();
            _dpConnection             = new Mock <IDbConnection>();
            _authenticationRepository = new Mock <IAuthenticationRepository>();
            _configurationWrapper     = new Mock <IConfigurationWrapper>();

            _fixture = new FormSubmissionRepository(_ministryPlatformService.Object, _dpConnection.Object, _authenticationRepository.Object, _configurationWrapper.Object, _ministryPlatformRestRepository.Object);

            _configurationWrapper.Setup(m => m.GetConfigIntValue("FormResponsePageId")).Returns(formResponsePageId);
            _configurationWrapper.Setup(m => m.GetConfigIntValue("FormAnswerPageId")).Returns(formAnswerPageId);
            _configurationWrapper.Setup(m => m.GetConfigIntValue("AllFormFieldsView")).Returns(allFormFieldsView);
            _configurationWrapper.Setup(m => m.GetConfigIntValue("GoTripFamilySignup")).Returns(goTripFamilySignup);
            _configurationWrapper.Setup(m => m.GetEnvironmentVarAsString("API_USER")).Returns("apiuser");
            _configurationWrapper.Setup(m => m.GetEnvironmentVarAsString("API_PASSWORD")).Returns("password");
            _authenticationRepository.Setup(m => m.Authenticate("apiuser", "password")).Returns(new AuthToken {
                AccessToken = apiToken
            });
        }
예제 #4
0
 public CampService(
     ICampRepository campService,
     IFormSubmissionRepository formSubmissionRepository,
     IConfigurationWrapper configurationWrapper,
     IParticipantRepository partcipantRepository,
     IEventRepository eventRepository,
     IApiUserRepository apiUserRepository,
     IContactRepository contactRepository,
     ICongregationRepository congregationRepository,
     IGroupRepository groupRepository,
     IEventParticipantRepository eventParticipantRepository,
     IMedicalInformationRepository medicalInformationRepository,
     IProductRepository productRepository,
     IInvoiceRepository invoiceRepository,
     ICommunicationRepository communicationRepository,
     IPaymentRepository paymentRepository,
     IObjectAttributeService objectAttributeService,
     ICampRules campRules,
     IPaymentService paymentService)
 {
     _campService = campService;
     _formSubmissionRepository     = formSubmissionRepository;
     _configurationWrapper         = configurationWrapper;
     _participantRepository        = partcipantRepository;
     _eventRepository              = eventRepository;
     _apiUserRepository            = apiUserRepository;
     _contactRepository            = contactRepository;
     _congregationRepository       = congregationRepository;
     _groupRepository              = groupRepository;
     _eventParticipantRepository   = eventParticipantRepository;
     _medicalInformationRepository = medicalInformationRepository;
     _productRepository            = productRepository;
     _invoiceRepository            = invoiceRepository;
     _paymentRepository            = paymentRepository;
     _communicationRepository      = communicationRepository;
     _objectAttributeService       = objectAttributeService;
     _campRules      = campRules;
     _paymentService = paymentService;
 }
예제 #5
0
 public TripService(IEventParticipantRepository eventParticipant,
                    IDonationRepository donationService,
                    IGroupRepository groupService,
                    IFormSubmissionRepository formSubmissionService,
                    IEventRepository eventService,
                    IPledgeRepository pledgeService,
                    ICampaignRepository campaignService,
                    IPrivateInviteRepository privateInviteService,
                    ICommunicationRepository communicationService,
                    IContactRepository contactService,
                    IContactRelationshipRepository contactRelationshipService,
                    IConfigurationWrapper configurationWrapper,
                    IPersonService personService,
                    IServeService serveService,
                    IProgramRepository programRepository,
                    IApiUserRepository apiUserRepository,
                    ITripRepository tripRepository,
                    IDonorRepository mpDonorService)
 {
     _eventParticipantService    = eventParticipant;
     _donationService            = donationService;
     _groupService               = groupService;
     _formSubmissionService      = formSubmissionService;
     _mpEventService             = eventService;
     _mpPledgeService            = pledgeService;
     _campaignService            = campaignService;
     _privateInviteService       = privateInviteService;
     _communicationService       = communicationService;
     _contactService             = contactService;
     _contactRelationshipService = contactRelationshipService;
     _configurationWrapper       = configurationWrapper;
     _personService              = personService;
     _serveService               = serveService;
     _programRepository          = programRepository;
     _apiUserRepository          = apiUserRepository;
     _tripRepository             = tripRepository;
     _mpDonorService             = mpDonorService;
 }