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; }
public void TestInitializer() { var uow = Substitute.For <IUnitOfWork2>(); _eventOptionsDbSet = uow.MockDbSetForAsync <EventOption>(); _eventTypesDbSet = uow.MockDbSetForAsync <EventType>(); _eventDbSet = uow.MockDbSetForAsync <Event>(); _eventUtilitiesService = new EventUtilitiesService(uow); }
public void SetUp() { _notificationService = Substitute.For <INotificationService>(); _eventUtilitiesService = Substitute.For <IEventUtilitiesService>(); _userEventsService = Substitute.For <IUserEventsService>(); _eventNotificationService = Substitute.For <IEventNotificationService>(); _organizationService = Substitute.For <IOrganizationService>(); _sut = new EventJoinRemindService(_notificationService, _eventUtilitiesService, _userEventsService, _eventNotificationService, _organizationService); }
public EventJoinRemindService(INotificationService notificationService, IEventUtilitiesService eventUtilitiesService, IUserEventsService userEventsService, IEventNotificationService eventNotificationService, IOrganizationService organizationService) { _notificationService = notificationService; _eventUtilitiesService = eventUtilitiesService; _userEventsService = userEventsService; _eventNotificationService = eventNotificationService; _organizationService = organizationService; }
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; }
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; }
public EventTypeController(IMapper mapper, IEventUtilitiesService eventUtilitiesService) { _mapper = mapper; _eventUtilitiesService = eventUtilitiesService; }