Beispiel #1
0
        public void notifyOnZoneUpdateTest1()
        {
            ZoneChangeFunction                  function     = new ZoneChangeFunction();
            IZoneServer                         zoneServer   = null;
            Dictionary <int, IAudioDriver>      audioDrivers = null;
            ConcreteZoneChangeFunction_Accessor target       = new ConcreteZoneChangeFunction_Accessor(function, zoneServer, audioDrivers);
            ZoneStateEventArgs                  e            = new ZoneStateEventArgs(new ZoneState());

            target.notifyOnZoneUpdate(e);
            //ok, pass without exception
        }
Beispiel #2
0
        public void notifyOnZoneUpdateTest2()
        {
            List <Command> commands = new List <Command>();

            commands.Add(new SendNuvoCommand(new SimpleId(), true, true, true, true, true, true, true, new Address("100.1"), "OFF", "100.6", 10));
            ZoneChangeFunction                  function     = new ZoneChangeFunction(new SimpleId(), new Address(), new Address(), 0, true, true, true, true, null, new TimeSpan(), new TimeSpan(), commands);
            IZoneServer                         zoneServer   = null;
            Dictionary <int, IAudioDriver>      audioDrivers = null;
            ConcreteZoneChangeFunction_Accessor target       = new ConcreteZoneChangeFunction_Accessor(function, zoneServer, audioDrivers);
            ZoneStateEventArgs                  e            = new ZoneStateEventArgs(new ZoneState());

            target.notifyOnZoneUpdate(e); // init zone state
            target.notifyOnZoneUpdate(e);
        }