Exemplo n.º 1
0
        public void Setup()
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appSettings.json", optional: true, reloadOnChange: true)
                          .AddEnvironmentVariables();

            Configuration = builder.Build();

            BuildInjectionContainer();
            _xtbService = InjectionContainer.Resolve <XtbInterface>();
        }
Exemplo n.º 2
0
 public EmailSummaryJob(
     IConfigurationRoot configuration,
     ILogger log,
     IMapper mapper,
     XtbInterface xtbService,
     IBinanceService binanceService,
     IEmailService emailService,
     IOtoDomRepository otoDomRepository,
     IPriceRepository priceRepository,
     IEmailGeneratorFactory emailGeneratorFactory)
 {
     _configuration         = configuration;
     _log                   = log;
     _mapper                = mapper;
     _xtbService            = xtbService;
     _binanceService        = binanceService;
     _emailService          = emailService;
     _otoDomRepository      = otoDomRepository;
     this._priceRepository  = priceRepository;
     _emailGeneratorFactory = emailGeneratorFactory;
 }