Example #1
0
 public DcHelper(IJsonSerializationService serializationService,
                 ITopicPublishService <JobContextDto> topicPublishingService,
                 IFileService azureFileService,
                 TestPaymentsDataContext dataContext)
 {
     this.serializationService   = serializationService ?? throw new ArgumentNullException(nameof(serializationService));
     this.topicPublishingService = topicPublishingService ?? throw new ArgumentNullException(nameof(topicPublishingService));
     this.azureFileService       = azureFileService ?? throw new ArgumentNullException(nameof(azureFileService));
     this.dataContext            = dataContext;
 }
        public SubmissionService(Configuration configuration,
                                 IJsonSerializationService serializationService,
                                 IJobService jobService,
                                 TestPaymentsDataContext paymentsContext)
        {
            this.configuration        = configuration;
            this.serializationService = serializationService;
            this.jobService           = jobService;
            this.paymentsContext      = paymentsContext;
            var cloudStorageAccount = CloudStorageAccount.Parse(configuration.DcStorageConnectionString);

            blobClient = cloudStorageAccount.CreateCloudBlobClient();
        }
 public PaymentsHelper(TestPaymentsDataContext dataContext)
 {
     this.dataContext = dataContext;
 }
 public RandomUkprnService(TestPaymentsDataContext dataContext)
 {
     this.dataContext = dataContext ?? throw new ArgumentNullException(nameof(dataContext));
 }
Example #5
0
 public void DeScopeTestDataContext()
 {
     testDataContext = null;
 }
Example #6
0
 public void InitialiseNewTestDataContext()
 {
     testDataContext = Scope.Resolve <TestPaymentsDataContext>();
 }
 public UkprnService(TestPaymentsDataContext dataContext, IJobService jobService)
 {
     this.dataContext = dataContext ?? throw new ArgumentNullException(nameof(dataContext));
     this.jobService  = jobService;
 }