Esempio n. 1
0
 private static FundingSchemaService CreateFundingSchemaService(
     ILogger logger = null,
     IFundingSchemaRepository fundingSchemaRepository = null)
 {
     return(new FundingSchemaService(
                logger ?? CreateLogger(),
                fundingSchemaRepository ?? CreateFundingSchemaRepository(),
                PolicyResiliencePoliciesTestHelper.GenerateTestPolicies()));
 }
 private static FundingTemplateValidationService CreateFundingTemplateValidationService(
     IFundingSchemaRepository fundingSchemaRepository = null,
     IPolicyRepository policyRepository = null)
 {
     return(new FundingTemplateValidationService(
                fundingSchemaRepository ?? CreateFundingSchemaRepository(),
                PolicyResiliencePoliciesTestHelper.GenerateTestPolicies(),
                policyRepository ?? CreatePolicyRepository()
                ));
 }
 private static FundingStreamService CreateFundingStreamService(
     ILogger logger = null,
     ICacheProvider cacheProvider       = null,
     IPolicyRepository policyRepository = null,
     IValidator <FundingStreamSaveModel> fundingStreamSaveModelValidator = null)
 {
     return(new FundingStreamService(
                logger ?? CreateLogger(),
                cacheProvider ?? CreateCacheProvider(),
                policyRepository ?? CreatePolicyRepository(),
                PolicyResiliencePoliciesTestHelper.GenerateTestPolicies(),
                fundingStreamSaveModelValidator ?? CreateFundingStreamSaveModelValidator()));
 }
Esempio n. 4
0
 private static FundingConfigurationService CreateFundingConfigurationService(
     ILogger logger = null,
     ICacheProvider cacheProvider = null,
     IMapper mapper = null,
     IPolicyRepository policyRepository          = null,
     IValidator <FundingConfiguration> validator = null)
 {
     return(new FundingConfigurationService(
                logger ?? CreateLogger(),
                cacheProvider ?? CreateCacheProvider(),
                mapper ?? CreateMapper(),
                policyRepository ?? CreatePolicyRepository(),
                PolicyResiliencePoliciesTestHelper.GenerateTestPolicies(),
                validator ?? CreateValidator()));
 }