13 (0x0D) CA_PROTO_RSRV_IS_UP
Inheritance: CommandHandler
 /// <summary>
 /// Setup the handles in the array for quick access.
 /// </summary>
 static CommandHandler()
 {
     handlers[0] = new Version();
     handlers[1] = new EventAdd();
     handlers[2] = new EventCancel();
     handlers[4] = new Write();
     handlers[6] = new Search();
     handlers[11] = new ProtoError();
     handlers[12] = new ClearChannel();
     handlers[13] = new Beacon();
     handlers[15] = new ReadNotify();
     handlers[18] = new CreateChannel();
     handlers[19] = new WriteNotify();
     handlers[20] = new ClientName();
     handlers[21] = new HostName();
     handlers[22] = new AccessRights();
     handlers[23] = new Echo();
 }
        public void BeaconDoRequestLevel5()
        {
            Beacon target=new Beacon();

            Gateway gateway=new Gateway();
            gateway.Configuration.LocalAddressSideA = "127.0.0.1:1234";
            gateway.Configuration.LocalAddressSideB = "127.0.0.1:4321";

            var beaconB = new Mock<IBeaconResetter>();
            gateway.beaconB = beaconB.Object;

            WorkerChain chain=WorkerChain.UdpBeaconReceiver(gateway,ChainSide.SIDE_A,gateway.Configuration.LocalSideA, new List<IPEndPoint>(new IPEndPoint[] {gateway.Configuration.LocalSideA}) );

            DataPacket packet = DataPacket.Create(16,chain);
            packet.Parameter1 = 5;
            packet.Sender = PBCaGw.Configurations.Configuration.ParseAddress("168.1.1.2:1234");

            target.DoRequest(packet, chain, pk => { throw new Exception("Sent something!"); });
            beaconB .Verify(fw => fw.ResetBeacon(), Times.Once());
        }
 public void BeaconConstructorTest()
 {
     // ReSharper disable UnusedVariable
     Beacon target = new Beacon();
     // ReSharper restore UnusedVariable
 }