Exemple #1
0
        public static void TurnOnFlowTest()
        {
            ControlDevice myDevice = new ControlDevice();

            myDevice.ConnectToDevice();
            myDevice.TurnOnFlow();
        }
Exemple #2
0
        public static float GetSelectesSetPointTempTest()
        {
            ControlDevice myDevice = new ControlDevice();

            myDevice.ConnectToDevice();
            myDevice.SetTemperatueLimitsForDevice(15, 28);
            myDevice.SetSelectedSetPointTemperature(22);
            float result = myDevice.GetCurrentSetPointTemperature();

            myDevice.DisConnectFromDevice();
            return(result);
        }
Exemple #3
0
        /*short test for checking temperature setting limits*/

        public static void TermoStreamFirstTest()
        {
            ControlDevice myDevice = new ControlDevice();

            myDevice.ConnectToDevice();
            myDevice.SetTemperatueLimitsForDevice(13, 29);
            float lower_limit  = myDevice.GetLowAirTemperatureLimit();
            float higher_limit = myDevice.GetHighAirTemperatureLimit();
            float current_temp = myDevice.GetMainAirTemperatureFromDevice();

            Console.WriteLine($"low limit of temperature is :{lower_limit}");
            Console.WriteLine($"high limit of temperature is :{higher_limit}");
            Console.WriteLine($"main air temperature is : {current_temp}");
            myDevice.DisConnectFromDevice();
        }