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;
 }
 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;
 }
 public Task <IResult> Handle(IDeleteApplicationCommand deleteApplicationCommand, int id)
 {
     deleteApplicationCommand.Execute(id);
     return(Task.FromResult(AdminApiResponse.Deleted("Application")));
 }
 public DeleteVendorCommand(IUsersContext context, IDeleteApplicationCommand deleteApplicationCommand)
 {
     _context = context;
     _deleteApplicationCommand = deleteApplicationCommand;
 }