public EventsController(IEventsService eventsService,
                                IRenderAssetsService assetsService)
        {
            Throw.IfNull(eventsService, nameof(eventsService));
            Throw.IfNull(assetsService, nameof(assetsService));

            _eventsService = eventsService;
            _assetsService = assetsService;
        }
Example #2
0
        public RegistrationController(
            ILog logger,
            IRegistrationService registrationService,
            IMvcContext mvcContext,
            ISitecoreService sitecoreService,
            IEmailService emailService,
            IRenderAssetsService renderAssetsService)
        {
            Throw.IfNull(logger, nameof(logger));
            Throw.IfNull(registrationService, nameof(registrationService));
            Throw.IfNull(mvcContext, nameof(mvcContext));
            Throw.IfNull(sitecoreService, nameof(sitecoreService));
            Throw.IfNull(emailService, nameof(emailService));
            Throw.IfNull(renderAssetsService, nameof(renderAssetsService));

            _logger = logger;
            _registrationService = registrationService;
            _mvcContext          = mvcContext;
            _sitecoreService     = sitecoreService;
            _emailService        = emailService;
            _assetsService       = renderAssetsService;
        }