Ejemplo n.º 1
0
        public ChildcareService(IEventParticipantRepository eventParticipantService,
                                ICommunicationRepository communicationService,
                                IConfigurationWrapper configurationWrapper,
                                IContactRepository contactService,
                                IEventRepository eventService,
                                IParticipantRepository participantService,
                                IServeService serveService,
                                IDateTime dateTimeWrapper,
                                IApiUserRepository apiUserService,
                                IEventService crdsEventService,
                                IChildcareRequestRepository childcareRequestService,
                                IGroupService groupService,
                                IChildcareRepository childcareRepository)
        {
            _childcareRequestService = childcareRequestService;
            _eventParticipantService = eventParticipantService;
            _communicationService    = communicationService;
            _configurationWrapper    = configurationWrapper;
            _contactService          = contactService;
            _crdsEventService        = crdsEventService;
            _eventService            = eventService;
            _participantService      = participantService;
            _serveService            = serveService;
            _dateTimeWrapper         = dateTimeWrapper;
            _apiUserService          = apiUserService;
            _groupService            = groupService;
            _childcareRepository     = childcareRepository;

            _childcareGroupType = _configurationWrapper.GetConfigIntValue("ChildcareGroupType");
        }
Ejemplo n.º 2
0
 public void Setup()
 {
     _ministryPlatformRest = new Mock <IMinistryPlatformRestRepository>();
     _configurationWrapper = new Mock <IConfigurationWrapper>();
     _apiUserRepository    = new Mock <IApiUserRepository>();
     _fixture = new ChildcareRepository(_configurationWrapper.Object, _ministryPlatformRest.Object, _apiUserRepository.Object);
 }