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));
        }
        public CertificateDeliveryService(
            ICertificateRenderer certificateRenderer,
            IApplicationEmailSender emailSender)
        {
            _certificateRenderer = certificateRenderer ?? throw
                                       new ArgumentNullException(nameof(certificateRenderer));

            _emailSender = emailSender ?? throw
                               new ArgumentNullException(nameof(emailSender));
        }
Exemple #3
0
        public CertificatesController(
            ICertificateRetrievalService certificateRetrievalService,
            ICertificateRenderer certificateRenderer)
        {
            _certificateRetrievalService = certificateRetrievalService ?? throw
                                               new ArgumentNullException(nameof(certificateRetrievalService));

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