public static void TestSetup() { _deviceA = new Configuration.Device { Id = "DeviceA", DefaultIndexName = "DeviceAIndex", DefaultInterval = TimeSpan.FromSeconds(75), DefaultType = "DeviceAType", Variables = new[] { new Configuration.Variable { Name = "temp", IndexName = "tempIndex", Interval = TimeSpan.FromSeconds(10), Type = "tempType", OmitDuplicateReadings = true }, new Configuration.Variable { Name = "humidity", IndexName = "humidityIndex", Interval = TimeSpan.FromSeconds(20), Type = "humidityType", OmitDuplicateReadings = true } } }; _deviceB = new Configuration.Device { Id = "DeviceB", DefaultIndexName = "DeviceBIndex", DefaultInterval = TimeSpan.FromSeconds(75), DefaultType = "DeviceBType", Variables = new[] { new Configuration.Variable { Name = "light", IndexName = "lightIndex", Interval = TimeSpan.FromSeconds(30), Type = "lightType", OmitDuplicateReadings = true } } }; _tempIndex = new Configuration.Index { Name = "tempIndex", AppendDate = true, DateFormat = "yyy-MM-dd" }; _lightIndex = new Configuration.Index { Name = "lightIndex", AppendDate = true }; _humidityIndex = new Configuration.Index { Name = "humidityIndex", AppendDate = false }; }
public static void TestSetup() { _tempIndex = new Configuration.Index { Name = "tempIndex", AppendDate = true, DateFormat = "yyy.MM.dd" }; _lightIndex = new Configuration.Index { Name = "lightIndex", AppendDate = true }; _humidityIndex = new Configuration.Index { Name = "humidityIndex", AppendDate = false }; }