Exemplo n.º 1
0
 public AccountController(ILogger <UsersController> logger, IUsersAppService usersAppService, INotificationHandler <DomainNotification> notifications)
 {
     _logger          = logger;
     _usersAppService = usersAppService;
     // 强类型转换
     _notifications = (DomainNotificationHandler)notifications;
 }
 public UsersController(ILogger <UsersController> logger, IUsersAppService usersAppService, IMemoryCache cache, INotificationHandler <DomainNotification> notifications)
 {
     _logger          = logger;
     _usersAppService = usersAppService;
     _cache           = cache;
     // 强类型转换
     _notifications = (DomainNotificationHandler)notifications;
 }
Exemplo n.º 3
0
 public Users_Tests()
 {
     _usersAppService            = Resolve <IUsersAppService>();
     _cacheManager               = Resolve <ICacheManager>();
     _smsVerificationCodeManager = Resolve <ISmsVerificationCodeManager>();
 }
Exemplo n.º 4
0
 public UsersController(IUsersAppService usersAppService, UserManager <ApplicationUser> userManager)
 {
     _usersAppService = usersAppService;
     _userManager     = userManager;
 }
Exemplo n.º 5
0
 public UsersController(IHandler <DomainNotification> notifications, IUsersAppService usersAppService) : base(notifications)
 {
     _usersAppServices = usersAppService;
 }
Exemplo n.º 6
0
 public UsersController(IUsersAppService usersAppService)
 {
     _usersAppService = usersAppService;
 }
Exemplo n.º 7
0
        public UsersTests()
        {
            RegisterInstance <IHttpClientManager>(mockHttpClient.Object);

            _usersManagementAppService = Resolve <IUsersAppService>();
        }
Exemplo n.º 8
0
 public UsersService(IUsersAppService usersAppService)
 {
     _usersAppService    = usersAppService;
     _applicationEnginee = new ApplicationEnginee();
 }