Example #1
0
 public AccountController(
     SignInManager <UserIdentity> signInManager,
     UserManager <UserIdentity> userManager,
     IUserAppService userAppService,
     IGlobalConfigurationAppService globalConfigurationAppService,
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IAuthenticationSchemeProvider schemeProvider,
     IEventService events,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler bus,
     IConfiguration configuration,
     IUserManageAppService userManageAppService,
     ISystemUser user,
     ILogger <AccountController> logger)
 {
     Bus             = bus;
     _signInManager  = signInManager;
     _userManager    = userManager;
     _userAppService = userAppService;
     _globalConfigurationAppService = globalConfigurationAppService;
     _interaction          = interaction;
     _clientStore          = clientStore;
     _schemeProvider       = schemeProvider;
     _events               = events;
     _configuration        = configuration;
     _userManageAppService = userManageAppService;
     _user          = user;
     _logger        = logger;
     _notifications = (DomainNotificationHandler)notifications;
 }
Example #2
0
 public PersistedGrantsController(
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator,
     IPersistedGrantAppService persistedGrantAppService,
     IUserManageAppService userAppService) : base(notifications, mediator)
 {
     _persistedGrantAppService = persistedGrantAppService;
     _userAppService           = userAppService;
 }
Example #3
0
 public RolesController(
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator,
     IRoleManagerAppService roleManagerAppService,
     IUserManageAppService userManageAppService) : base(notifications, mediator)
 {
     _roleManagerAppService = roleManagerAppService;
     _userManageAppService  = userManageAppService;
 }
 public AccountController(
     IUserManageAppService userAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator,
     ISystemUser systemUser) : base(notifications, mediator)
 {
     _userAppService = userAppService;
     _systemUser     = systemUser;
 }
 public UserAdminController(
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator,
     IUserManageAppService userManageAppService,
     ISystemUser user,
     IRoleManagerAppService roleManagerAppService) : base(notifications, mediator)
 {
     _userManageAppService = userManageAppService;
     _user = user;
 }
Example #6
0
 public ManagementController(
     IUserManageAppService userAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator,
     IUserManager userManager,
     IMapper mapper) : base(notifications, mediator)
 {
     _userAppService = userAppService;
     _userManager    = userManager;
     this._mapper    = mapper;
 }
Example #7
0
        public UserAppServiceInMemoryTests(WarmupInMemory inMemory)
        {
            _faker                 = new Faker();
            InMemoryData           = inMemory;
            _userAppService        = InMemoryData.Services.GetRequiredService <IUserAppService>();
            _userManagerAppService = InMemoryData.Services.GetRequiredService <IUserManageAppService>();
            _database              = InMemoryData.Services.GetRequiredService <ApplicationSsoContext>();
            var notifications = (DomainNotificationHandler)InMemoryData.Services.GetRequiredService <INotificationHandler <DomainNotification> >();

            notifications.Clear();
        }
Example #8
0
        protected UserAppServiceAbstractTests(TWarmup unifiedContext, ITestOutputHelper output)
        {
            _output                = output;
            _faker                 = new Faker();
            UnifiedContextData     = unifiedContext;
            _userAppService        = UnifiedContextData.Services.GetRequiredService <IUserAppService>();
            _userManagerAppService = UnifiedContextData.Services.GetRequiredService <IUserManageAppService>();

            _notifications = (DomainNotificationHandler)UnifiedContextData.Services.GetRequiredService <INotificationHandler <DomainNotification> >();

            _notifications.Clear();
        }
 public UserManagementController(IUserManageAppService userManageAppService)
 {
     _userManageAppService = userManageAppService;
 }