Beispiel #1
0
 public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IUserManagerService userManagerService, ISignInManagerService signInManagerService)
 {
     this.UserManager           = userManager;
     this.SignInManager         = signInManager;
     this._userManagerService   = userManagerService;
     this._signInManagerService = signInManagerService;
 }
Beispiel #2
0
        public void With1ArgumentShouldThrowIfArgumentsAreNull()
        {
            var moqUserManager = new Mock <IUserManagerService>();
            ISignInManagerService moqsingInManager = null;

            Assert.ThrowsException <ArgumentNullException>(() => { new ManageController(moqUserManager.Object, moqsingInManager); });
        }
Beispiel #3
0
        public AccountController(IUserManagerService userManagerService, ISignInManagerService signInManagerService)
        {
            Guard.WhenArgument(userManagerService, "userManagerService").IsNull().Throw();
            Guard.WhenArgument(signInManagerService, "signInManagerService").IsNull().Throw();

            this.userManagerService   = userManagerService;
            this.signInManagerService = signInManagerService;
        }
Beispiel #4
0
        public ManageController(IUserManagerService userManager, ISignInManagerService signInManager)
        {
            Guard.WhenArgument(userManager, Common.Constants.UserManager).IsNull().Throw();
            Guard.WhenArgument(signInManager, Common.Constants.SignInManager).IsNull().Throw();

            this.signInService = signInManager;
            this.userService   = userManager;
        }
Beispiel #5
0
        public void With1ArgumentShouldThrowIfArgumentsAreNull()
        {
            var moqUserSv = new Mock <IUsersService>();
            IUserManagerService   moqUserManager   = null;
            ISignInManagerService moqsingInManager = null;

            Assert.ThrowsException <ArgumentNullException>(() => { new TelerikMovies.Web.Controllers.AccountController(moqUserSv.Object, moqsingInManager, moqUserManager); });
        }
Beispiel #6
0
        public AccountController(IUsersService usersSv, ISignInManagerService signInService, IUserManagerService userService)
        {
            Guard.WhenArgument(usersSv, ServicesNames.UserService.ToString()).IsNull().Throw();
            Guard.WhenArgument(userService, Common.Constants.UserManager).IsNull().Throw();
            Guard.WhenArgument(signInService, Common.Constants.SignInManager).IsNull().Throw();

            this.usersSv       = usersSv;
            this.signInService = signInService;
            this.userService   = userService;
        }
Beispiel #7
0
 public AccountController(
     IIdentityServerInteractionService interaction,
     IEventService eventService,
     UserManager <User> userManager,
     ISignInManagerService signInManager,
     IHttpContextAccessor httpContextAccessor,
     ILogger <AccountController> logger)
 {
     _interaction         = interaction;
     _events              = eventService;
     _userManager         = userManager;
     _signInManager       = signInManager;
     _httpContextAccessor = httpContextAccessor;
     _logger              = logger;
 }
Beispiel #8
0
 public ManageController(IUserManagerService userManagerService, ISignInManagerService signInManagerService)
 {
     this._userManagerService   = userManagerService;
     this._signInManagerService = signInManagerService;
 }
 public AccountController(ISignInManagerService signInManagerService, IUserManagerService userManagerService)
 {
     this._signInManagerService = signInManagerService;
     this._userManagerService   = userManagerService;
 }