public void SetUp() { _publishedFundingRepository = Substitute.For <IPublishedFundingRepository>(); _createBatchPublishProviderFundingJobs = Substitute.For <ICreateBatchPublishProviderFundingJobs>(); _createPublishIntegrityJob = Substitute.For <ICreatePublishIntegrityJob>(); _service = new ProviderFundingPublishingService( SpecificationIdValidator, ProviderIdsValidator, Specifications, ResiliencePolicies, Jobs, _createBatchPublishProviderFundingJobs, _publishedFundingRepository, FundingConfigurationService, _createPublishIntegrityJob); _publishProvidersRequest = BuildPublishProvidersRequest(_ => _.WithProviders(ProviderIds)); }
public ProviderFundingPublishingService( ISpecificationIdServiceRequestValidator specificationIdValidator, IPublishedProviderIdsServiceRequestValidator publishedProviderIdsValidator, ISpecificationsApiClient specifications, IPublishingResiliencePolicies resiliencePolicies, ICreateAllPublishProviderFundingJobs createAllPublishProviderFundingJobs, ICreateBatchPublishProviderFundingJobs createBatchPublishProviderFundingJobs, IPublishedFundingRepository publishedFundingRepository, IFundingConfigurationService fundingConfigurationService, ICreatePublishIntegrityJob createPublishIntegrityJob) : base(specificationIdValidator, publishedProviderIdsValidator, specifications, resiliencePolicies, fundingConfigurationService) { Guard.ArgumentNotNull(createAllPublishProviderFundingJobs, nameof(createAllPublishProviderFundingJobs)); Guard.ArgumentNotNull(createBatchPublishProviderFundingJobs, nameof(createBatchPublishProviderFundingJobs)); Guard.ArgumentNotNull(publishedFundingRepository, nameof(publishedFundingRepository)); Guard.ArgumentNotNull(createPublishIntegrityJob, nameof(createPublishIntegrityJob)); _createAllPublishProviderFundingJobs = createAllPublishProviderFundingJobs; _createBatchPublishProviderFundingJobs = createBatchPublishProviderFundingJobs; _publishedFundingRepository = publishedFundingRepository; _createPublishIntegrityJob = createPublishIntegrityJob; }