Esempio n. 1
0
        public TestAccountService()
        {
            var services = new ContainerResolver().Container;

            _accountService = (IAccountService)services.GetService(typeof(IAccountService));
            _randomStringGeneratorService = (RandomStringGeneratorService)services.GetService(typeof(RandomStringGeneratorService));
            _emailService       = (IEmailService)services.GetService(typeof(IEmailService));
            _calculationService = (IProfilePercentageCalculationService)services.GetService(typeof(IProfilePercentageCalculationService));
            _applicationProgressStatusService = (IApplicationProgressStatusService)services.GetService(typeof(IApplicationProgressStatusService));
        }
 public FileService(IMapper mapper, FileDbContext fileDbContext, AppDbContext dbContext, IEncryptionManager encryption, IProfilePercentageCalculationService profilePercentageCalculation, MongoDbContext mongoDbContext, IUserIPAddress userIPAddress)
 {
     _mapper        = mapper;
     _fileDbContext = fileDbContext;
     _appDbContext  = dbContext;
     _encryption    = encryption;
     _profilePercentageCalculation = profilePercentageCalculation;
     _mongoDbContext = mongoDbContext;
     _userIPAddress  = userIPAddress;
 }
        public TestPushNotification()
        {
            var services = new ContainerResolver().Container;

            _accountService = (IAccountService)services.GetService(typeof(IAccountService));
            _randomStringGeneratorService = (RandomStringGeneratorService)services.GetService(typeof(RandomStringGeneratorService));
            _emailService            = (IEmailService)services.GetService(typeof(IEmailService));
            _calculationService      = (IProfilePercentageCalculationService)services.GetService(typeof(IProfilePercentageCalculationService));
            _pushNotificationService = (IPushNotificationService)services.GetService(typeof(IPushNotificationService));
        }
 public AccountService(AppDbContext appDbContext, IOptions <AppSettings> settings, IHttpContextAccessor httpContextAccessor, IOptions <EIDValidation> eidSettings, IMapper mapper, RandomStringGeneratorService randomStringGenerator, PasswordHashing hashing, IProfilePercentageCalculationService percentageCalculationService, IEmailService emailService, IUserIPAddress userIPAddress)
 {
     _appDbContext                 = appDbContext;
     _mapper                       = mapper;
     _randomStringGenerator        = randomStringGenerator;
     _hashing                      = hashing;
     _percentageCalculationService = percentageCalculationService;
     _emailService                 = emailService;
     _settings                     = settings.Value;
     _eidSettings                  = eidSettings.Value;
     _httpContextAccessor          = httpContextAccessor;
     _userIPAddress                = userIPAddress;
 }