Beispiel #1
0
        public void GetTemperature_GetTemperatureUsingMachineId_ReturnTrue()
        {
            Machine machine = new Machine()
            {
                MachineId   = "IDX147",
                MachineName = "Machine147"
            };
            MachineManager machineMgr = new MachineManager();

            machineMgr.CreateMachine(machine: machine);
            machineMgr.SetTemperature(120, machine.MachineId);
            int?temp = machineMgr.GetTemperature(machine.MachineId);

            Assert.IsTrue(temp != null && temp == 120);
        }