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));
        }
Example #2
0
        public CertificatesController(
            ICertificateRetrievalService certificateRetrievalService,
            ICertificateRenderer certificateRenderer)
        {
            _certificateRetrievalService = certificateRetrievalService ?? throw
                                               new ArgumentNullException(nameof(certificateRetrievalService));

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