public ApplicationController(IMapper mapper
                              , IDeleteApplicationCommand deleteApplicationCommand
                              , IAddApplicationCommand addApplicationCommand
                              , IEditApplicationCommand editApplicationCommand
                              , GetApplicationByIdQuery getApplicationByIdQuery
                              , IGetVendorByIdQuery getVendorByIdQuery
                              , GetClaimSetNamesQuery getClaimSetNamesQuery
                              , GetProfilesQuery getProfilesQuery
                              , RegenerateApiClientSecretCommand regenerateApiClientSecretCommand
                              , IOdsApiFacadeFactory odsApiFacadeFactory
                              , InstanceContext instanceContext
                              , ITabDisplayService tabDisplayService
                              , IOdsApiConnectionInformationProvider apiConnectionInformationProvider
                              , IGetVendorsQuery getVendorsQuery
                              , IInferExtensionDetails inferExtensionDetails)
 {
     _mapper = mapper;
     _deleteApplicationCommand         = deleteApplicationCommand;
     _addApplicationCommand            = addApplicationCommand;
     _editApplicationCommand           = editApplicationCommand;
     _getApplicationByIdQuery          = getApplicationByIdQuery;
     _getVendorByIdQuery               = getVendorByIdQuery;
     _getClaimSetNamesQuery            = getClaimSetNamesQuery;
     _getProfilesQuery                 = getProfilesQuery;
     _regenerateApiClientSecretCommand = regenerateApiClientSecretCommand;
     _odsApiFacadeFactory              = odsApiFacadeFactory;
     _instanceContext   = instanceContext;
     _tabDisplayService = tabDisplayService;
     _apiConnectionInformationProvider = apiConnectionInformationProvider;
     _getVendorsQuery       = getVendorsQuery;
     _inferExtensionDetails = inferExtensionDetails;
 }
 public EducationOrganizationsController(IOdsApiFacadeFactory odsApiFacadeFactory
                                         , IMapper mapper, InstanceContext instanceContext, ITabDisplayService tabDisplayService
                                         , IInferExtensionDetails inferExtensionDetails)
 {
     _odsApiFacadeFactory = odsApiFacadeFactory;
     _mapper                = mapper;
     _instanceContext       = instanceContext;
     _tabDisplayService     = tabDisplayService;
     _inferExtensionDetails = inferExtensionDetails;
 }
Beispiel #3
0
 public void Init()
 {
     _mockMapper = new Mock <IMapper>();
     _mockOdsApiFacadeFactory   = new Mock <IOdsApiFacadeFactory>();
     _mockOdsApiFacade          = new Mock <IOdsApiFacade>();
     _mockInstanceContext       = new Mock <InstanceContext>();
     _tabDisplayService         = new Mock <ITabDisplayService>();
     _mockInferExtensionDetails = new Mock <IInferExtensionDetails>();
     _inferExtensionDetails     = new InferExtensionDetails(new Mock <ISimpleGetRequest>().Object);
     MemoryCache.Default.Remove("TpdmExtensionVersion");
 }
 public OdsInstanceSettingsController(
     ICloudOdsSettingsService cloudOdsSettingsService
     , ITabDisplayService tabDisplayService
     , InstanceContext instanceContext
     , IOptions <AppSettings> appSettingsAccessor
     , IInferExtensionDetails inferExtensionDetails
     , IInferOdsApiVersion inferOdsApiVersion
     )
 {
     _cloudOdsSettingsService = cloudOdsSettingsService;
     _tabDisplayService       = tabDisplayService;
     _instanceContext         = instanceContext;
     _appSettings             = appSettingsAccessor.Value;
     _inferExtensionDetails   = inferExtensionDetails;
     _inferOdsApiVersion      = inferOdsApiVersion;
 }