public BlobStorageController(
            ICourseService courseService,
            IApprenticeshipService apprenticeshipService,
            IBlobStorageService blobService,
            ICourseProvisionHelper courseProvisionHelper,
            IApprenticeshipProvisionHelper apprenticeshipProvisionHelper)
        {
            if (courseService == null)
            {
                throw new ArgumentNullException(nameof(courseService));
            }

            if (apprenticeshipService == null)
            {
                throw new ArgumentNullException(nameof(apprenticeshipService));
            }

            if (blobService == null)
            {
                throw new ArgumentNullException(nameof(blobService));
            }

            if (apprenticeshipProvisionHelper == null)
            {
                throw new ArgumentNullException(nameof(apprenticeshipProvisionHelper));
            }

            _courseService                 = courseService;
            _blobService                   = blobService;
            _courseProvisionHelper         = courseProvisionHelper;
            _apprenticeshipService         = apprenticeshipService;
            _apprenticeshipProvisionHelper = apprenticeshipProvisionHelper;
        }
Example #2
0
 public BlobStorageController(
     ICourseService courseService,
     IBlobStorageService blobService,
     ICourseProvisionHelper courseProvisionHelper,
     IApprenticeshipProvisionHelper apprenticeshipProvisionHelper,
     ICosmosDbQueryDispatcher cosmosDbQueryDispatcher)
 {
     _courseService                 = courseService ?? throw new ArgumentNullException(nameof(courseService));
     _blobService                   = blobService ?? throw new ArgumentNullException(nameof(blobService));
     _courseProvisionHelper         = courseProvisionHelper ?? throw new ArgumentNullException(nameof(courseProvisionHelper));
     _apprenticeshipProvisionHelper = apprenticeshipProvisionHelper ?? throw new ArgumentNullException(nameof(apprenticeshipProvisionHelper));
     _cosmosDbQueryDispatcher       = cosmosDbQueryDispatcher ?? throw new ArgumentNullException(nameof(cosmosDbQueryDispatcher));
 }