Пример #1
0
 public AccountServiceTests()
 {
     context      = FakeContext.Context();
     config       = new FakeConfig();
     emailService = new EmailService();
     passServ     = new PasswordService(config);
     accServ      = new AccountService(context, passServ, emailService, config);
 }
Пример #2
0
 public UserService(MaelstormRepository context, IDistributedCache cache,
                    IOptions <JwtOptions> jwtOptions, IHubContext <MessageHub> messHub)
 {
     this.context    = context;
     this.cache      = cache;
     this.jwtOptions = jwtOptions;
     this.messHub    = messHub;
 }
Пример #3
0
 public AccountService(MaelstormRepository context, IPasswordService passServ,
                       IEmailService emailServ, IConfiguration config)
 {
     this.context   = context;
     this.passServ  = passServ;
     this.emailServ = emailServ;
     this.config    = config;
 }
Пример #4
0
 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;
 }
Пример #5
0
 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();
 }
Пример #6
0
 public FinderService(MaelstormRepository context)
 {
     this.context = context;
 }