/// <summary> /// Creates an instance of <see cref="AuthenticationController"/> /// </summary> /// <param name="signInManager">sign in manager</param> /// <param name="userIdentityLogic">logic for user identity</param>< /// <param name="tokenGenerator">class for generating JWTs</param> public AuthenticationController( SignInManager <UserIdentityData> signInManager, UserIdentityLogic userIdentityLogic, TokenGenerator tokenGenerator, IMapper mapper) { this.signInManager = signInManager ?? throw new ArgumentNullException(nameof(signInManager)); this.userIdentityLogic = userIdentityLogic ?? throw new ArgumentNullException(nameof(userIdentityLogic)); this.tokenGenerator = tokenGenerator ?? throw new ArgumentNullException(nameof(tokenGenerator)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
/// <summary> /// Creates an instance of <see cref="UserIdentityLogic"/> /// </summary> /// <param name="userIdentityLogic">Logic fo user identity</param> public UserStore(UserIdentityLogic userIdentityLogic) { this.userIdentityLogic = userIdentityLogic ?? throw new ArgumentNullException(nameof(UserIdentityLogic)); }