Beispiel #1
0
 public HomeController(ILogger <HomeController> logger,
                       ServiceFacade.Controller context,
                       ActivityService activityService,
                       AvatarService avatarService,
                       DailyLiteracyTipService dailyLiteracyTipService,
                       DashboardContentService dashboardContentService,
                       EmailReminderService emailReminderService,
                       PageService pageService,
                       SiteService siteService,
                       UserService userService)
     : base(context)
 {
     _logger                  = Require.IsNotNull(logger, nameof(logger));
     _activityService         = Require.IsNotNull(activityService, nameof(activityService));
     _avatarService           = Require.IsNotNull(avatarService, nameof(avatarService));
     _dailyLiteracyTipService = Require.IsNotNull(dailyLiteracyTipService,
                                                  nameof(dailyLiteracyTipService));
     _dashboardContentService = Require.IsNotNull(dashboardContentService,
                                                  nameof(dashboardContentService));
     _emailReminderService = Require.IsNotNull(emailReminderService,
                                               nameof(emailReminderService));
     _pageService = Require.IsNotNull(pageService, nameof(pageService));
     _siteService = Require.IsNotNull(siteService, nameof(siteService));
     _userService = Require.IsNotNull(userService, nameof(userService));
 }
 public HomeController(ILogger <HomeController> logger,
                       ServiceFacade.Controller context,
                       ActivityService activityService,
                       AvatarService avatarService,
                       CarouselService carouselService,
                       DailyLiteracyTipService dailyLiteracyTipService,
                       DashboardContentService dashboardContentService,
                       EmailManagementService emailManagementService,
                       EmailReminderService emailReminderService,
                       EventService eventService,
                       LanguageService languageService,
                       PerformerSchedulingService performerSchedulingService,
                       SiteService siteService,
                       SocialService socialService,
                       UserService userService,
                       VendorCodeService vendorCodeService)
     : base(context)
 {
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _activityService = activityService
                        ?? throw new ArgumentNullException(nameof(activityService));
     _avatarService = avatarService
                      ?? throw new ArgumentNullException(nameof(avatarService));
     _carouselService = carouselService
                        ?? throw new ArgumentNullException(nameof(carouselService));
     _dailyLiteracyTipService = dailyLiteracyTipService
                                ?? throw new ArgumentNullException(nameof(dailyLiteracyTipService));
     _dashboardContentService = dashboardContentService
                                ?? throw new ArgumentNullException(nameof(dashboardContentService));
     _emailManagementService = emailManagementService
                               ?? throw new ArgumentNullException(nameof(emailManagementService));
     _emailReminderService = emailReminderService
                             ?? throw new ArgumentNullException(nameof(emailReminderService));
     _eventService = eventService
                     ?? throw new ArgumentNullException(nameof(eventService));
     _languageService = languageService
                        ?? throw new ArgumentNullException(nameof(languageService));
     _performerSchedulingService = performerSchedulingService
                                   ?? throw new ArgumentNullException(nameof(performerSchedulingService));
     _siteService   = siteService ?? throw new ArgumentNullException(nameof(siteService));
     _socialService = socialService
                      ?? throw new ArgumentNullException(nameof(socialService));
     _userService       = userService ?? throw new ArgumentNullException(nameof(userService));
     _vendorCodeService = vendorCodeService
                          ?? throw new ArgumentNullException(nameof(vendorCodeService));
 }
Beispiel #3
0
 public HomeController(ILogger <HomeController> logger,
                       ServiceFacade.Controller context,
                       ActivityService activityService,
                       EmailReminderService emailReminderService,
                       SiteService siteService,
                       StaticAvatarService staticAvatarService,
                       UserService userService)
     : base(context)
 {
     _logger               = Require.IsNotNull(logger, nameof(logger));
     _activityService      = Require.IsNotNull(activityService, nameof(activityService));
     _emailReminderService = Require.IsNotNull(emailReminderService,
                                               nameof(emailReminderService));
     _staticAvatarService = Require.IsNotNull(staticAvatarService,
                                              nameof(staticAvatarService));
     _siteService = Require.IsNotNull(siteService, nameof(siteService));
     _userService = Require.IsNotNull(userService, nameof(userService));
 }
Beispiel #4
0
        public void SetUp()
        {
            _mockRepoWrapper         = new Mock <IRepositoryWrapper>();
            _mockAuthEmailServices   = new Mock <IAuthEmailService>();
            _mockEmailContentService = new Mock <IEmailContentService>();
            _mockEmailSendingService = new Mock <IEmailSendingService>();
            _mockMapper = new Mock <IMapper>();
            var store = new Mock <IUserStore <User> >();

            _mockUserManager = new Mock <UserManager <User> >(store.Object, null, null, null, null, null, null, null, null);

            _emailReminderService = new EmailReminderService(_mockRepoWrapper.Object,
                                                             _mockAuthEmailServices.Object,
                                                             _mockEmailContentService.Object,
                                                             _mockEmailSendingService.Object,
                                                             _mockMapper.Object,
                                                             _mockUserManager.Object);
        }
 public EmailManagementController(ServiceFacade.Controller context,
                                  ILogger <EmailManagementController> logger,
                                  EmailManagementService emailManagementService,
                                  EmailService emailService,
                                  EmailReminderService emailReminderService,
                                  JobService jobService,
                                  UserService userService)
     : base(context)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _emailManagementService = emailManagementService
                               ?? throw new ArgumentNullException(nameof(emailManagementService));
     _emailService         = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _emailReminderService = emailReminderService
                             ?? throw new ArgumentNullException(nameof(emailReminderService));
     _jobService  = jobService ?? throw new ArgumentNullException(nameof(jobService));
     _userService = userService ?? throw new ArgumentNullException(nameof(userService));
     PageTitle    = "Email Management";
 }