public InnoviObjectCollection <SensorEvent> GetDefaultAccountEvents() { List <SensorEvent> events = new List <SensorEvent>(); int sensorNameId = 1; for (int i = 1; i < 100; i++) { if (i % 10 == 0) { sensorNameId++; } SensorEvent sensorEvent = new SensorEvent(); sensorEvent.SensorName = "Dummy Camera " + sensorNameId.ToString(); events.Add(sensorEvent); } return(new InnoviObjectCollection <SensorEvent>(events)); }
public InnoviObjectCollection <Sensor> GetDefaultAccountSensors() { List <Sensor> sensors = new List <Sensor>(); for (int i = 0; i < 10; i++) { Sensor sensor = new Sensor(); sensor.Name += " " + i.ToString(); sensors.Add(sensor); List <SensorEvent> sensorsEvents = new List <SensorEvent>(); for (int k = 0; k < 10; k++) { SensorEvent sensorEvent = new SensorEvent(); sensorEvent.SensorName = sensor.Name; sensorsEvents.Add(sensorEvent); } sensor.SensorEvents = new InnoviObjectCollection <SensorEvent>(sensorsEvents); } return(new InnoviObjectCollection <Sensor>(sensors)); }