public IdentityResourcesController( IGetIdentityResources getIdentityResources, IGetIdentityResourceByName getIdentityResourceByName, IUpsertIdentityResource upsertIdentityResource, IDeleteResource deleteResource) { this.getIdentityResources = getIdentityResources; this.getIdentityResourceByName = getIdentityResourceByName; this.upsertIdentityResource = upsertIdentityResource; this.deleteResource = deleteResource; this.createValidator = new CreateIdentityResourceModelValidator(); this.updateValidator = new UpdateIdentityResourceModelValidator(); }
public DeleteResourceCommandHandler(IDomainEventDispatcher eventDispatcher, IDeleteResource deleteResource) { _eventDispatcher = eventDispatcher; _deleteResource = deleteResource; }