public CollectionWithLogsTests() { _log = new DeviceLog { DateStamp = DateTime.Now, PluginName = "SamsungDPlugin" }; var options = Options .Create(new ServerSettings { DataStoragePlugin = new ServerSettingViewModel { Name = "DataStoragePlugin", Value = "MSSQLDSPlugin", DisplayName = "Data storage plugin", IsEditable = false }, CapacityOfCollectionToInsert = new ServerSettingViewModel { Name = "BulkInsertCapacity", DisplayName = "Bulk insert capacity", Value = 100.ToString(), IsEditable = true }, IntervalForWritingIntoDb = new ServerSettingViewModel { Name = "BulkInsertInterval", DisplayName = "Bulk insert interval", Value = 100.ToString(), IsEditable = true } }); _appSettingsModifier = new AppSettingsAccessor(options); _helperCollection = new CollectionOfLogs(_appSettingsModifier); }
public DevicesLogsRepository(DataStoragesHelperType dataStoragesHelper, CollectionOfLogs collectionOfLogs) { _dataStoragePlugin = dataStoragesHelper.GetDataStoragePlugin() ?? throw new ArgumentNullException(nameof(dataStoragesHelper)); _collectionOfLogs = collectionOfLogs; _dataStoragesHelperType = dataStoragesHelper; }
public DeviceController( CollectionOfLogs collectionOfLogs , IDevicesLogsService devicesLogsService , AppSettingsAccessor appSettingsModifier ) { _collectionOfLogs = collectionOfLogs; _devicesLogsService = devicesLogsService; _appSettingsModifier = appSettingsModifier; }