Пример #1
0
        public NotificationManagementService(
            IEventInfoRetrievalService eventInfoRetrievalService,
            IEventInfoAccessControlService eventInfoAccessControlService,
            ICurrentOrganizationAccessorService currentOrganizationAccessorService,
            IRegistrationRetrievalService registrationRetrievalService,
            IHttpContextAccessor httpContextAccessor,
            ApplicationDbContext context)
        {
            _eventInfoRetrievalService = eventInfoRetrievalService ?? throw
                                             new ArgumentNullException(nameof(eventInfoRetrievalService));

            _eventInfoAccessControlService = eventInfoAccessControlService ?? throw
                                                 new ArgumentNullException(nameof(eventInfoAccessControlService));

            _currentOrganizationAccessorService = currentOrganizationAccessorService ?? throw
                                                      new ArgumentNullException(nameof(currentOrganizationAccessorService));

            _registrationRetrievalService = registrationRetrievalService ?? throw
                                                new ArgumentNullException(nameof(registrationRetrievalService));

            _httpContextAccessor = httpContextAccessor ?? throw
                                       new ArgumentNullException(nameof(httpContextAccessor));

            _context = context ?? throw
                           new ArgumentNullException(nameof(context));
        }
        public EventCertificatesController(
            IEventInfoRetrievalService eventInfoRetrievalService,
            ICertificateRenderer certificateRenderer,
            ICertificateIssuingService certificateIssuingService,
            ICertificateDeliveryService certificateDeliveryService,
            IEventInfoAccessControlService eventInfoAccessControlService,
            ICertificateRetrievalService certificateRetrievalService)
        {
            _eventInfoRetrievalService = eventInfoRetrievalService ?? throw
                                             new ArgumentNullException(nameof(eventInfoRetrievalService));

            _certificateRenderer = certificateRenderer ?? throw
                                       new ArgumentNullException(nameof(certificateRenderer));

            _certificateIssuingService = certificateIssuingService ?? throw
                                             new ArgumentNullException(nameof(certificateIssuingService));

            _certificateDeliveryService = certificateDeliveryService ?? throw
                                              new ArgumentNullException(nameof(certificateDeliveryService));

            _eventInfoAccessControlService = eventInfoAccessControlService ?? throw
                                                 new ArgumentNullException(nameof(eventInfoAccessControlService));

            _certificateRetrievalService = certificateRetrievalService ?? throw
                                               new ArgumentNullException(nameof(certificateRetrievalService));
        }
Пример #3
0
        public EventProductsManagementService(
            ApplicationDbContext context,
            IEventInfoRetrievalService eventInfoRetrievalService,
            IEventInfoAccessControlService accessControlService)
        {
            _context = context ?? throw
                           new ArgumentNullException(nameof(context));

            _eventInfoRetrievalService = eventInfoRetrievalService ?? throw
                                             new ArgumentNullException(nameof(eventInfoRetrievalService));

            _accessControlService = accessControlService ?? throw
                                        new ArgumentNullException(nameof(accessControlService));
        }
Пример #4
0
        public CertificateIssuingService(
            IEventInfoAccessControlService eventInfoAccessControlService,
            IRegistrationRetrievalService registrationRetrievalService,
            ApplicationDbContext context,
            ILogger <CertificateIssuingService> logger)
        {
            _eventInfoAccessControlService = eventInfoAccessControlService ?? throw
                                                 new ArgumentNullException(nameof(eventInfoAccessControlService));

            _registrationRetrievalService = registrationRetrievalService ?? throw
                                                new ArgumentNullException(nameof(registrationRetrievalService));

            _context = context ?? throw new ArgumentNullException(nameof(context));
            _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
        }
Пример #5
0
        public EventProductsController(
            IProductRetrievalService productRetrievalService,
            IEventInfoRetrievalService eventInfoRetrievalService,
            IEventProductsManagementService eventProductsManagementService,
            IEventInfoAccessControlService eventInfoAccessControlService)
        {
            _productRetrievalService = productRetrievalService ?? throw
                                           new ArgumentNullException(nameof(productRetrievalService));

            _eventInfoRetrievalService = eventInfoRetrievalService ?? throw
                                             new ArgumentNullException(nameof(eventInfoRetrievalService));

            _eventProductsManagementService = eventProductsManagementService ?? throw
                                                  new ArgumentNullException(nameof(eventProductsManagementService));

            _eventInfoAccessControlService = eventInfoAccessControlService ?? throw
                                                 new ArgumentNullException(nameof(eventInfoAccessControlService));
        }