Ejemplo n.º 1
0
 public CryptoController()
 {
     // should be refactored after DI functionality added
     this.uaCryptoRepository =
         new UaCryptoVerificationRepository();
         //new DpaVerificationRepository();
 }
 //to inject the account servive? in order to get the random func?
 public VerificationService(
     //IAccountService accountService,
     IVerificationRepository verificationRepository)
 {
     //_accountService = accountService;
     _verificationRepository = verificationRepository;
 }
Ejemplo n.º 3
0
 public UnitOfWork(BlogContext context,
                   IPostRepository posts,
                   IPostContentRepository postContents,
                   ICommentRepository comments,
                   ITagRepository tags,
                   IRatingRepository ratings,
                   IVerificationRepository authorVerifications,
                   IVerificationStatusRepository verificationStatuses,
                   IProfileRepository userProfiles,
                   UserManager <User> userManager,
                   RoleManager <IdentityRole> roleManager,
                   SignInManager <User> signInManager)
 {
     _context             = context;
     Posts                = posts;
     PostContents         = postContents;
     Comments             = comments;
     Tags                 = tags;
     Ratings              = ratings;
     AuthorVerifications  = authorVerifications;
     VerificationStatuses = verificationStatuses;
     UserProfiles         = userProfiles;
     UserManager          = userManager;
     RoleManager          = roleManager;
     SignInManager        = signInManager;
 }
Ejemplo n.º 4
0
 public CryptoController()
 {
     // should be refactored after DI functionality added
     this.uaCryptoRepository =
         new UaCryptoVerificationRepository();
     //new DpaVerificationRepository();
 }
Ejemplo n.º 5
0
 public AccountService(IAccountRepository accountRepository,
                       IVerificationRepository verificationRepository,
                       IVerificationService verificationService)
 {
     _accountRepository      = accountRepository;
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
 }
Ejemplo n.º 6
0
 public VerificationService(
     ILogger <VerificationService> logger,
     IConfiguration config,
     IVerificationRepository validationRepository,
     HttpClient client) : base(client, config, "Services:Validation")
 {
     _logger = logger;
     _validationRepository = validationRepository;
 }
Ejemplo n.º 7
0
 public VerificationAppService(
     IVerificationRepository verificationRepository,
     IVerificationService verificationService,
     IDbUnitOfWork dbUnitOfWork,
     IEventBus eventBus) : base(dbUnitOfWork)
 {
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
     _eventBus = eventBus;
 }
Ejemplo n.º 8
0
        public Google(
            AndroidPublisherService googleService,
            IVerificationRepository verificationRepository,
            IConfiguration configuration)
        {
            _googleService          = googleService;
            _verificationRepository = verificationRepository;

            _graceDays = int.TryParse(configuration["GraceDays"], out var val)
                ? val : 0;
        }
Ejemplo n.º 9
0
 public MessageAppService(IDbUnitOfWork dbUnitOfWork,
                          IVerificationRepository verificationRepo,
                          IVerificationService verificationService,
                          IEventBus eventBus,
                          ITest test) : base(dbUnitOfWork)
 {
     _verificationRepository = verificationRepo;
     _verificationService    = verificationService;
     _eventBus = eventBus;
     _test     = test;
 }
Ejemplo n.º 10
0
 public VerificationAppService(
     IVerificationRepository verificationRepository,
     IVerificationService verificationService,
     IDbUnitOfWork dbUnitOfWork,
     IEventBus eventBus,
     ITest test) : base(dbUnitOfWork)
 {
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
     _eventBus = eventBus;// IocProvider.GetService<IEventBus>();
     _test     = test;
 }
Ejemplo n.º 11
0
 public VerificationAppService(
     IVerificationRepository verificationRepository,
     IVerificationService verificationService,
     IDbUnitOfWork dbUnitOfWork,
     IEventBus eventBus,
     ISmsProxy smsProxy)
 {
     _verificationRepository = verificationRepository;
     _verificationService    = verificationService;
     _dbUnitOfWork           = dbUnitOfWork;
     _eventBus = eventBus;
     _smsProxy = smsProxy;
 }
Ejemplo n.º 12
0
        public Apple(
            IHttpClientFactory httpClientFactory,
            IConfiguration configuration,
            IVerificationRepository verificationRepository)
        {
            _httpClient             = httpClientFactory.CreateClient();
            _configuration          = configuration;
            _verificationRepository = verificationRepository;

            _serializer = new JsonSerializer()
            {
                ContractResolver = new DefaultContractResolver()
                {
                    NamingStrategy = new SnakeCaseNamingStrategy()
                }
            };

            _graceDays = int.TryParse(_configuration["GraceDays"], out var val)
                ? val : 0;
        }
 public PhoneVerifyController(IVerificationRepository verificationRepository)
 {
     this._number = this.GenerateCode();
     this._verificationRepository = verificationRepository;
 }
 public VerifyRegistrationController(IVerificationRepository verificationRepository)
 {
     _verificationRepository = verificationRepository;
 }
Ejemplo n.º 15
0
 public CryptoController(IVerificationRepository uaCryptoRepository)
 {
     this.uaCryptoRepository = uaCryptoRepository;
 }
 public ForgotPasswordController(IUserRepository userRepository, IOptions <AppSettings> appSettings, IVerificationRepository verificationRepository)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
     _appSettings            = appSettings.Value;
 }
Ejemplo n.º 17
0
 public VerificationSentEventHandler(IVerificationRepository verificationRepository)
 {
     verificationRepository = _verificationRepository;
 }
Ejemplo n.º 18
0
 public VerificationSentEventHandler(IVerificationRepository verificationRepository, IEventBus bus) : base(bus, false)
 {
     _verificationRepository = verificationRepository;
     _eventBus = bus;
 }
 public UserAuthorizationHandler(IUserAccountRepository accounts, IVerificationRepository verificationCodes)
 {
     _accounts = accounts;
     _verificationCodes = verificationCodes;
 }
 public VerificationService(
     //IConfigurationRoot  configurationRoot,
     IVerificationRepository verificationRepository)
 {
     _verificationRepository = verificationRepository;
 }
 public ResetPasswordController(IUserRepository userRepository, IVerificationRepository verificationRepository)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
 }
Ejemplo n.º 22
0
 public PortalController(IUserRepository userRepository, IVerificationRepository verificationRepository)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
 }
 public RegistrationController(IUserRepository userRepository, IVerificationRepository verificationRepository, IOptions <AppSettings> appSettings)
 {
     _userRepository         = userRepository;
     _verificationRepository = verificationRepository;
     _appSettings            = appSettings.Value;
 }
Ejemplo n.º 24
0
 public VerifyResetPasswordController(IVerificationRepository verificationRepository)
 {
     _verificationRepository = verificationRepository;
 }
Ejemplo n.º 25
0
 public CryptoController(IVerificationRepository uaCryptoRepository)
 {
     this.uaCryptoRepository = uaCryptoRepository;
 }
Ejemplo n.º 26
0
 public VerificationCodeHandler(IVerificationRepository repository)
 {
     _repository = repository;
 }