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 ActivityAndChallengesService(AppDbContext appDbContext, IMapper mapper, FileDbContext fileDbContext, IApplicationProgressStatusService applicationProgressService, MongoDbContext mongoDbcontext, IOptions <MinIoConfig> minIoConfig, IUserIPAddress userIPAddress) { _appDbContext = appDbContext; _mapper = mapper; _fileDbContext = fileDbContext; _applicationProgressService = applicationProgressService; _mongoDbcontext = mongoDbcontext; _minIoConfig = minIoConfig.Value; _userIPAddress = userIPAddress; }
public ProgramService(AppDbContext appDbContext, IMapper mapper, FileDbContext fileDbContext, IApplicationProgressStatusService applicationProgressService, MongoDbContext mongoDbcontext, IEmailService emailService, IOptions <MinIoConfig> minIoConfig, IUserIPAddress userIPAddress) { _appDbContext = appDbContext; _mapper = mapper; _fileDbContext = fileDbContext; _applicationProgressService = applicationProgressService; _mongoDbcontext = mongoDbcontext; _emailService = emailService; _minIoConfig = minIoConfig.Value; _userIPAddress = userIPAddress; }