public ResultadoSiteService() { _idContainerRepository = new IdContainerRepository(); _jogoRepository = new JogoRepository(); _jogoService = new JogoService(_driver); _analiseService = new AnaliseService(); _telegramService = new TelegramService(); }
public JogoService(IWebDriver driver) { _driver = driver; var configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .Build(); var seleniumConfigurations = new SeleniumConfiguration(); new ConfigureFromConfigurationOptions <SeleniumConfiguration>( configuration.GetSection("SeleniumConfiguration")) .Configure(seleniumConfigurations); _configuration = seleniumConfigurations; _idContainerRepository = new IdContainerRepository(); _jogoRepository = new JogoRepository(); _analiseService = new AnaliseService(); }