public void TestInitializer()
        {
            _eventParticipationService = Substitute.For <IEventParticipationService>();
            _eventUtilitiesService     = Substitute.For <IEventUtilitiesService>();
            _excelBuilder = new ExcelBuilder();

            _eventExportService = new EventExportService(_eventParticipationService, _eventUtilitiesService, _excelBuilder);
        }
 public EventExportService(
     IEventParticipationService eventParticipationService,
     IEventUtilitiesService eventUtilitiesService,
     IExcelBuilder excelBuilder)
 {
     _eventParticipationService = eventParticipationService;
     _eventUtilitiesService     = eventUtilitiesService;
     _excelBuilder = excelBuilder;
 }
示例#3
0
 public HomeViewModel(
     IActivityParticipationService activityParticipationService,
     IActivityManagementService activityManagementService,
     IEventParticipationService eventParticipationService,
     IEventManagementService eventManagementService)
 {
     _activityParticipationService = activityParticipationService;
     _activityManagementService    = activityManagementService;
     _eventParticipationService    = eventParticipationService;
     _eventManagementService       = eventManagementService;;
     NewEventParticipation         = new EventParticipation();
     NewActivityParticipation      = new ActivityParticipation();
 }
示例#4
0
        public EventService(IUnitOfWork2 uow,
                            IPermissionService permissionService,
                            IEventUtilitiesService eventUtilitiesService,
                            IEventValidationService eventValidationService,
                            IEventParticipationService eventParticipationService,
                            IWallService wallService,
                            IMarkdownConverter markdownConverter)
        {
            _uow               = uow;
            _eventsDbSet       = uow.GetDbSet <Event>();
            _eventTypesDbSet   = uow.GetDbSet <EventType>();
            _usersDbSet        = uow.GetDbSet <ApplicationUser>();
            _eventOptionsDbSet = uow.GetDbSet <EventOption>();
            _officeDbSet       = uow.GetDbSet <Office>();

            _permissionService         = permissionService;
            _eventUtilitiesService     = eventUtilitiesService;
            _eventValidationService    = eventValidationService;
            _eventParticipationService = eventParticipationService;
            _wallService       = wallService;
            _markdownConverter = markdownConverter;
        }
示例#5
0
 public EventController(
     IMapper mapper,
     IEventService eventService,
     IEventListingService eventListingService,
     IEventUtilitiesService eventUtilitiesService,
     IEventParticipationService eventParticipationService,
     IEventCalendarService calendarService,
     IEventExportService eventExportService,
     IPostService postService,
     IOfficeMapService officeMapService,
     IAsyncRunner asyncRunner)
 {
     _mapper                    = mapper;
     _eventService              = eventService;
     _eventListingService       = eventListingService;
     _eventUtilitiesService     = eventUtilitiesService;
     _eventParticipationService = eventParticipationService;
     _calendarService           = calendarService;
     _eventExportService        = eventExportService;
     _postService               = postService;
     _officeMapService          = officeMapService;
     _asyncRunner               = asyncRunner;
 }
示例#6
0
 public EventParticipationMock(IConfigurationProvider configurationProvider)
 {
     _configurationProvider = configurationProvider;
     _mapper = _configurationProvider.CreateMapper();
     _proxy  = CreateEventParticipation();
 }