public Settings(ILogger <Settings> logger, IProcessSettings processor, KongoOptions opts) { _logger = logger; _httpClient = new HttpClient(); _processor = processor; _sb = new StringBuilder(); _opts = opts; }
public async Task ProcessSettings(string value) { var storage = new KongoDataStorage($"Data Source={Path.GetRandomFileName()}"); storage.Database.EnsureCreated(); var opts = new KongoOptions() { ApplicationStartedOn = DateTimeOffset.UtcNow }; _processor = new SettingsProcessor(storage, opts); var settings = await _processor.ProcessSettings(value); storage.Database.EnsureDeleted(); Assert.True(settings.Coefficient == 50); }
public SendNotificationAgentController(IProcessSettings processSettings) { _processSettings = processSettings; }
public SuperAdminConfigurationController(IProcessSettings processSettings, ISendingEmail sendingEmail) { _processSettings = processSettings; _sendingEmail = sendingEmail; }