public AccountServiceTests() { context = FakeContext.Context(); config = new FakeConfig(); emailService = new EmailService(); passServ = new PasswordService(config); accServ = new AccountService(context, passServ, emailService, config); }
public UserService(MaelstormRepository context, IDistributedCache cache, IOptions <JwtOptions> jwtOptions, IHubContext <MessageHub> messHub) { this.context = context; this.cache = cache; this.jwtOptions = jwtOptions; this.messHub = messHub; }
public AccountService(MaelstormRepository context, IPasswordService passServ, IEmailService emailServ, IConfiguration config) { this.context = context; this.passServ = passServ; this.emailServ = emailServ; this.config = config; }
public AuthenticationService(MaelstormRepository context, IPasswordService passServ, IOptions <JwtOptions> jwtOptions, ISigningKeys signingKeys, IEncryptingKeys encryptingKeys, ILogger <AccountService> logger) { this.context = context; this.jwtOptions = jwtOptions; this.signingKeys = signingKeys; this.encryptingKeys = encryptingKeys; this.passServ = passServ; this.logger = logger; }
public DialogService(MaelstormRepository context, ILogger <MaelstormContext> logger, IHubContext <MessageHub> messHub, IDistributedCache cache, IHttpContextAccessor httpContext, ISignalRSessionService sesServ) { this.context = context; this.logger = logger; this.messHub = messHub; this.cache = cache; this.httpContext = httpContext; this.sesServ = sesServ; userId = httpContext.HttpContext.GetUserId(); serializerSettings = new JsonSerializerSettings(); serializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); }
public FinderService(MaelstormRepository context) { this.context = context; }