public static void Main(string[] args) { var ecs = new ECS(28, new TempSensor(), new Heater()); ecs.Regulate(); ecs.SetThreshold(20); ecs.Regulate(); }