public static void Main(string[] args)
        {
            var ecs = new ECS(28);

            ecs.Regulate();

            ecs.SetThreshold(20);

            ecs.Regulate();

            Console.ReadKey();
        }
Example #2
0
        public static void Main(string[] args)
        {
            var fakeecs = new ECS(25, 28, new FakeTempSensor(), new FakeHeater());

            System.Console.WriteLine(fakeecs.RunSelfTest());

            fakeecs.Regulate();

            fakeecs.SetThreshold(0, 0);

            fakeecs.Regulate();

            System.Console.WriteLine(fakeecs.RunSelfTest());

            System.Console.ReadKey();
        }
 public void Current_Threshold_Returns_20()
 {
     uut.SetThreshold(20);
     Assert.That(uut.GetThreshold().Equals(20));
 }