Beispiel #1
0
        public void SimpleExistsTest()
        {
            var manager = new InsteonDataManager(true);
            var devices = manager.GetAllDevices();

            Assert.That(devices.Count, Is.EqualTo(0));
        }
Beispiel #2
0
        private void LoadDevicesFromDatabase()
        {
            var dataManager = new InsteonDataManager(false);
            var devices     = dataManager.GetAllDevices();

            foreach (var device in devices)
            {
                var id = new InsteonIdentity(device.Category, device.SubCategory, device.Firmware);
                if (!id.IsEmpty)
                {
                    Network.Devices.Add(InsteonAddress.Parse(device.Address), id);
                }
            }
        }