public CommandModule(CommandService service, IConfigurationRoot config, ILogger logger, StreetBot streetBot) { CommandService = service; Configuration = config; Logger = logger; StreetBot = streetBot; }
public BotTests(ITestOutputHelper output) { Logger = new LoggerConfiguration() .MinimumLevel.Verbose() .WriteTo.TestOutput(output, Serilog.Events.LogEventLevel.Verbose) .CreateLogger() .ForContext <ApiTests>(); Configuration = new ConfigurationBuilder() .AddJsonFile(Directory.GetParent(Directory.GetCurrentDirectory()).Parent.Parent.Parent.FullName + @"\BrawlhallaStreeet.Cli\appsettings.Development.json", false, true) .Build(); DataService = new BrawlhallaDataService(Configuration, Logger); // DataService = new FakeDataService(Configuration, Logger); StreetBot = new StreetBot(Configuration, Logger, DataService); //var connectionString = Configuration["BrawlhallaDatabaseSettings:ConnectionString"]; }
private async Task RunStreetBot() { var streetBot = new StreetBot(Configuration, Log.Logger, DataService); await Task.CompletedTask; }
public void StreetBot_Gets_Configuration() { StreetBot streetBot = new StreetBot(Configuration, Logger, DataService); Assert.True(true); }