Ejemplo n.º 1
0
        public EventService(TranslationEventService eventService,
                            IGroupRepository groupService,
                            ICommunicationRepository communicationService,
                            IContactRepository contactService,
                            IContentBlockService contentBlockService,
                            IConfigurationWrapper configurationWrapper,
                            IApiUserRepository apiUserService,
                            IContactRelationshipRepository contactRelationshipService,
                            IGroupParticipantRepository groupParticipantService,
                            IParticipantRepository participantService,
                            IRoomRepository roomService,
                            IEquipmentRepository equipmentService,
                            IEventParticipantRepository eventParticipantService)
        {
            _eventService               = eventService;
            _groupService               = groupService;
            _communicationService       = communicationService;
            _contactService             = contactService;
            _contentBlockService        = contentBlockService;
            _configurationWrapper       = configurationWrapper;
            _apiUserService             = apiUserService;
            _contactRelationshipService = contactRelationshipService;
            _groupParticipantService    = groupParticipantService;
            _participantService         = participantService;
            _roomService             = roomService;
            _equipmentService        = equipmentService;
            _eventParticipantService = eventParticipantService;

            childcareEventTypeID = configurationWrapper.GetConfigIntValue("ChildcareEventType");
            childcareGroupTypeID = configurationWrapper.GetConfigIntValue("ChildcareGroupType");
        }
Ejemplo n.º 2
0
        public ServeService(IContactRepository contactService,
                            IContactRelationshipRepository contactRelationshipService,
                            IOpportunityRepository opportunityService,
                            MinistryPlatform.Translation.Repositories.Interfaces.IEventRepository eventService,
                            IParticipantRepository participantService,
                            IGroupParticipantRepository groupParticipantService,
                            IGroupRepository groupService,
                            ICommunicationRepository communicationService,
                            IAuthenticationRepository authenticationService,
                            IConfigurationWrapper configurationWrapper,
                            IApiUserRepository apiUserService,
                            IResponseRepository responseService)
        {
            _contactService             = contactService;
            _contactRelationshipService = contactRelationshipService;
            _opportunityService         = opportunityService;
            _eventService            = eventService;
            _participantService      = participantService;
            _groupParticipantService = groupParticipantService;
            _groupService            = groupService;
            _communicationService    = communicationService;
            _authenticationService   = authenticationService;
            _configurationWrapper    = configurationWrapper;
            _apiUserService          = apiUserService;
            _responseService         = responseService;
            _serveGroupType          = _configurationWrapper.GetConfigIntValue("ServeGroupType");

            _rsvpYes = _configurationWrapper.GetConfigIntValue("RSVPYesId");
        }
Ejemplo n.º 3
0
 public ProfileController(IPersonService personService, IServeService serveService, IUserImpersonationService impersonationService, IDonorService donorService, IAuthenticationRepository authenticationService, IUserRepository userService, IContactRelationshipRepository contactRelationshipService, IConfigurationWrapper config, IUserImpersonationService userImpersonationService) : base(userImpersonationService, authenticationService)
 {
     _personService               = personService;
     _serveService                = serveService;
     _impersonationService        = impersonationService;
     _donorService                = donorService;
     _authenticationService       = authenticationService;
     _userService                 = userService;
     _contactRelationshipService  = contactRelationshipService;
     _allowedAdminGetProfileRoles = config.GetConfigValue("AdminGetProfileRoles").Split(',').Select(int.Parse).ToList();
 }
Ejemplo n.º 4
0
        public GroupService(IGroupRepository mpGroupRepository,
                            IConfigurationWrapper configurationWrapper,
                            IEventRepository eventService,
                            IContactRelationshipRepository contactRelationshipService,
                            IServeService serveService,
                            IParticipantRepository participantService,
                            ICommunicationRepository communicationService,
                            IContactRepository contactService,
                            IObjectAttributeService objectAttributeService,
                            IApiUserRepository apiUserService,
                            IAttributeRepository attributeRepository,
                            IEmailCommunication emailCommunicationService,
                            IUserRepository userRepository,
                            IInvitationRepository invitationRepository,
                            IAttributeService attributeService,
                            IDateTime dateTimeWrapper)

        {
            _mpGroupRepository          = mpGroupRepository;
            _configurationWrapper       = configurationWrapper;
            _eventService               = eventService;
            _contactRelationshipService = contactRelationshipService;
            _serveService               = serveService;
            _participantService         = participantService;
            _communicationService       = communicationService;
            _contactService             = contactService;
            _objectAttributeService     = objectAttributeService;
            _apiUserService             = apiUserService;
            _attributeRepository        = attributeRepository;
            _emailCommunicationService  = emailCommunicationService;
            _userRepository             = userRepository;
            _invitationRepository       = invitationRepository;
            _attributeService           = attributeService;
            _domainId = configurationWrapper.GetConfigIntValue("DomainId");

            _groupRoleDefaultId           = _configurationWrapper.GetConfigIntValue("Group_Role_Default_ID");
            _defaultAuthorUserId          = configurationWrapper.GetConfigIntValue("DefaultAuthorUser");
            _defaultContactEmailId        = _configurationWrapper.GetConfigIntValue("DefaultContactEmailId");
            _journeyGroupTypeId           = configurationWrapper.GetConfigIntValue("JourneyGroupTypeId");
            _groupCategoryAttributeTypeId = configurationWrapper.GetConfigIntValue("GroupCategoryAttributeTypeId");
            _groupTypeAttributeTypeId     = configurationWrapper.GetConfigIntValue("GroupTypeAttributeTypeId");
            _groupAgeRangeAttributeTypeId = configurationWrapper.GetConfigIntValue("GroupAgeRangeAttributeTypeId");
            _groupRoleLeader               = configurationWrapper.GetConfigIntValue("GroupRoleLeader");
            _onsiteGroupTypeId             = _configurationWrapper.GetConfigIntValue("OnsiteGroupTypeId");
            _childcareEventTypeId          = _configurationWrapper.GetConfigIntValue("ChildcareEventType");
            _removeSelfFromGroupTemplateId = _configurationWrapper.GetConfigIntValue("RemoveSelfFromGroupTemplateId");
            _dateTimeWrapper               = dateTimeWrapper;
        }
 public ContactRelationshipService(IContactRelationshipRepository contactRelationshipRepository, ICachingService cachingService,
                                   IUnitOfWork unitOfWork, IAccountService accountService)
 {
     if (contactRelationshipRepository == null)
     {
         throw new ArgumentNullException("contactRelationshipRepository");
     }
     if (unitOfWork == null)
     {
         throw new ArgumentNullException("unitOfWork");
     }
     this.contactRelationshipRepository = contactRelationshipRepository;
     this.cachingService = cachingService;
     this.unitOfWork     = unitOfWork;
     this.accountService = accountService;
 }
Ejemplo n.º 6
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;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactRelationshipController" /> class.
 /// </summary>
 /// <param name="contactRelationshipRepository">The contact Relationship repository.</param>
 public ContactRelationshipController(IContactRelationshipRepository contactRelationshipRepository)
 {
     this._contactRelationshipRepository = contactRelationshipRepository;
 }