Beispiel #1
0
 public StandardsLogic(
     IStandardsDatastore datastore,
     IHttpContextAccessor context) :
     base(context)
 {
     _datastore = datastore;
 }
Beispiel #2
0
 public StandardsLogic(
     IStandardsDatastore datastore,
     IHttpContextAccessor context,
     IStandardsFilter filter) :
     base(context)
 {
     _datastore = datastore;
     _filter    = filter;
 }
 public CapabilityMappingsDatastore(
     ILogger <CapabilityMappingsDatastore> logger,
     ISyncPolicyFactory policy,
     ICapabilityStandardDatastore capabilityStandardDatastore,
     ICapabilitiesDatastore capabilitiesDatastore,
     IStandardsDatastore standardsDatastore)
 {
     _logger = logger;
     _policy = policy.Build(_logger);
     _capabilityStandardDatastore = capabilityStandardDatastore;
     _capabilitiesDatastore       = capabilitiesDatastore;
     _standardsDatastore          = standardsDatastore;
 }
        public EvidenceBlobStoreDatastore(
            IHostingEnvironment env,
            IConfiguration config,
            IAuthenticationManager authMgr,
            IOrganisationsDatastore organisationsDatastore,
            ISolutionsDatastore solutionsDatastore,
            ICapabilitiesImplementedDatastore capabilitiesImplementedDatastore,
            IStandardsApplicableDatastore standardsApplicableDatastore,
            ICapabilitiesDatastore capabilitiesDatastore,
            IStandardsDatastore standardsDatastore,
            ILogger <IEvidenceBlobStoreDatastore> logger,
            ISyncPolicyFactory policy
            )
        {
            _env     = env;
            _authMgr = authMgr;

            _solutionsDatastore               = solutionsDatastore;
            _organisationsDatastore           = organisationsDatastore;
            _capabilitiesImplementedDatastore = capabilitiesImplementedDatastore;
            _standardsApplicableDatastore     = standardsApplicableDatastore;
            _capabilitiesDatastore            = capabilitiesDatastore;
            _standardsDatastore               = standardsDatastore;

            _logSharePoint    = Settings.LOG_SHAREPOINT(config);
            _isFakeSharePoint = Settings.SHAREPOINT_PROVIDER_FAKE(config);
            _logger           = logger;
            _policy           = policy.Build(_logger);

            SharePoint_BaseUrl = Settings.SHAREPOINT_BASEURL(config);
            SharePoint_OrganisationsRelativeUrl = Settings.SHAREPOINT_ORGANISATIONSRELATIVEURL(config);
            SharePoint_ClientId     = Settings.SHAREPOINT_CLIENT_ID(config);
            SharePoint_ClientSecret = Settings.SHAREPOINT_CLIENT_SECRET(config);
            SharePoint_Login        = Settings.SHAREPOINT_LOGIN(config);
            SharePoint_Password     = Settings.SHAREPOINT_PASSWORD(config);

            if (string.IsNullOrWhiteSpace(SharePoint_BaseUrl) ||
                string.IsNullOrWhiteSpace(SharePoint_OrganisationsRelativeUrl) ||
                string.IsNullOrWhiteSpace(SharePoint_ClientId) ||
                string.IsNullOrWhiteSpace(SharePoint_ClientSecret) ||
                string.IsNullOrWhiteSpace(SharePoint_Login) ||
                string.IsNullOrWhiteSpace(SharePoint_Password)
                )
            {
                throw new ConfigurationErrorsException("Missing SharePoint configuration - check UserSecrets or environment variables");
            }
        }
Beispiel #5
0
 public EvidenceBlobStoreLogic(
     IEvidenceBlobStoreDatastore evidenceBlobStoreDatastore,
     ISolutionsDatastore solutionsDatastore,
     ICapabilitiesImplementedDatastore capabilitiesImplementedDatastore,
     IStandardsApplicableDatastore standardsApplicableDatastore,
     ICapabilitiesDatastore capabilitiesDatastore,
     IStandardsDatastore standardsDatastore,
     IEvidenceBlobStoreValidator validator)
 {
     _evidenceBlobStoreDatastore       = evidenceBlobStoreDatastore;
     _solutionsDatastore               = solutionsDatastore;
     _capabilitiesImplementedDatastore = capabilitiesImplementedDatastore;
     _standardsApplicableDatastore     = standardsApplicableDatastore;
     _capabilitiesDatastore            = capabilitiesDatastore;
     _standardsDatastore               = standardsDatastore;
     _validator = validator;
 }
Beispiel #6
0
 public StandardsApplicableEvidenceBlobStoreLogic(
     IEvidenceBlobStoreDatastore evidenceBlobStoreDatastore,
     ISolutionsDatastore solutionsDatastore,
     ICapabilitiesImplementedDatastore capabilitiesImplementedDatastore,
     IStandardsApplicableDatastore standardsApplicableDatastore,
     ICapabilitiesDatastore capabilitiesDatastore,
     IStandardsDatastore standardsDatastore,
     IStandardsApplicableEvidenceBlobStoreValidator validator) :
     base(
         evidenceBlobStoreDatastore,
         solutionsDatastore,
         capabilitiesImplementedDatastore,
         standardsApplicableDatastore,
         capabilitiesDatastore,
         standardsDatastore,
         validator)
 {
 }
Beispiel #7
0
 public StandardsApiController(IStandardsDatastore datastore)
 {
     _datastore = datastore;
 }