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)
 {
     _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;
 }
Example #2
0
 public CreateOrganisationCommand(IGetAvailablePaymentPlansQuery getAvailablePaymentPlansQuery,
                                  IAddApplicationCommand addApplicationCommand,
                                  IEncryptor encryptor,
                                  IGetRavenInstancesQuery getRavenInstancesQuery)
 {
     _getAvailablePaymentPlansQuery = getAvailablePaymentPlansQuery;
     _addApplicationCommand         = addApplicationCommand;
     _encryptor = encryptor;
     _getRavenInstancesQuery = getRavenInstancesQuery;
 }
        public async Task <IResult> Handle(Validator validator, IAddApplicationCommand addApplicationCommand, IMapper mapper, IUsersContext db, Request request)
        {
            await validator.GuardAsync(request);

            GuardAgainstInvalidEntityReferences(request, db);
            var addedApplicationResult = addApplicationCommand.Execute(request);
            var model = mapper.Map <ApplicationResult>(addedApplicationResult);

            return(AdminApiResponse <ApplicationResult> .Created(model, "Application", $"/{FeatureConstants.Applications}/{model.ApplicationId}"));
        }
 public ApplicationsController(IAddApplicationCommand addApplicationCommand,
                               IGetApplicationQuery getApplicationQuery,
                               IEditApplicationCommand editApplicationCommand,
                               IDeleteApplicationCommand deleteApplicationCommand,
                               IPagingViewModelGenerator pagingViewModelGenerator,
                               IMatchRuleFactoryFactory matchRuleFactoryFactory)
 {
     _addApplicationCommand    = addApplicationCommand;
     _getApplicationQuery      = getApplicationQuery;
     _editApplicationCommand   = editApplicationCommand;
     _deleteApplicationCommand = deleteApplicationCommand;
     _pagingViewModelGenerator = pagingViewModelGenerator;
     _matchRuleFactoryFactory  = matchRuleFactoryFactory;
 }
 public ApplicationController(IMapper mapper
                              , IDeleteApplicationCommand deleteApplicationCommand
                              , IAddApplicationCommand addApplicationCommand
                              , IEditApplicationCommand editApplicationCommand
                              , GetApplicationByIdQuery getApplicationByIdQuery
                              , IGetVendorByIdQuery getVendorByIdQuery
                              , GetClaimSetNamesQuery getClaimSetNamesQuery
                              , GetProfilesQuery getProfilesQuery
                              , RegenerateApiClientSecretCommand regenerateApiClientSecretCommand
                              , IOdsApiFacadeFactory odsApiFacadeFactory
                              , InstanceContext instanceContext)
 {
     _mapper = mapper;
     _deleteApplicationCommand         = deleteApplicationCommand;
     _addApplicationCommand            = addApplicationCommand;
     _editApplicationCommand           = editApplicationCommand;
     _getApplicationByIdQuery          = getApplicationByIdQuery;
     _getVendorByIdQuery               = getVendorByIdQuery;
     _getClaimSetNamesQuery            = getClaimSetNamesQuery;
     _getProfilesQuery                 = getProfilesQuery;
     _regenerateApiClientSecretCommand = regenerateApiClientSecretCommand;
     _odsApiFacadeFactory              = odsApiFacadeFactory;
     _instanceContext = instanceContext;
 }