internal Plm(ISerialPortController serialPortController) : base(serialPortController) { this.led = new PlmLed(this); this.setButton = new PlmSetButton(this); this.network = new PlmNetwork(this); }
internal PlmCommunicatorBase(ISerialPortController serialPortController) { if (serialPortController == null) { throw new ArgumentNullException("serialPortController"); } this.serialPortController = serialPortController; }
public SerialPortScenario() { this.port = mocks.StrictMock<ISerialPortController>(); }
private Plm buildPlmForTest(ISerialPortController serialPortController) { return new Plm(serialPortController); }
public SerialPortScenario() { this.port = mocks.StrictMock <ISerialPortController>(); }
private static SensorsActuators buildObjectForTest(ISerialPortController serialPortController) { return(TestDeviceHelper.BuildDeviceForTest <SensorsActuators>(0x07, 0x00, serialPortController)); }
private static IrrigationControl buildObjectForTest(ISerialPortController serialPortController) { return TestDeviceHelper.BuildDeviceForTest<IrrigationControl>(0x04, 0x00, serialPortController); }
private static PoolAndSpaControl buildObjectForTest(ISerialPortController serialPortController) { return TestDeviceHelper.BuildDeviceForTest<PoolAndSpaControl>(0x06, 0x00, serialPortController); }
private PlmLed buildObjectForTest(ISerialPortController serialPortController) { return(new Plm(serialPortController).Led); }
private static SensorsActuators buildObjectForTest(ISerialPortController serialPortController) { return TestDeviceHelper.BuildDeviceForTest<SensorsActuators>(0x07, 0x00, serialPortController); }
private PlmAllLinkDatabase buildObjectForTest(ISerialPortController serialPortController) { return new Plm(serialPortController).GetAllLinkDatabase(); }
public static T BuildDeviceForTest <T>(byte deviceCategory, byte deviceSubcategory, ISerialPortController serialPortController, byte peerIdHi, byte peerIdMiddle, byte peerIdLo) where T : DeviceBase { const byte PEER_FIRMWARE = 0x00; const byte MSG_FLAGS = Constants.MSG_FLAGS_BROADCAST; var plm = new Plm(serialPortController); byte[] idRequestResponse = new byte[] { 0x02, 0x50, peerIdHi, peerIdMiddle, peerIdLo, deviceCategory, deviceSubcategory, PEER_FIRMWARE, MSG_FLAGS, 0x01, 0xFF }; return(DeviceFactory.BuildDevice(plm, idRequestResponse) as T); }
public static T BuildDeviceForTest <T>(byte deviceCategory, byte deviceSubcategory, ISerialPortController serialPortController) where T : DeviceBase { return(BuildDeviceForTest <T>(deviceCategory, deviceSubcategory, serialPortController, PEER_ID_HI, PEER_ID_MI, PEER_ID_LO)); }
private static IrrigationControl buildObjectForTest(ISerialPortController serialPortController) { return(TestDeviceHelper.BuildDeviceForTest <IrrigationControl>(0x04, 0x00, serialPortController)); }
private PlmAllLinkDatabase buildObjectForTest(ISerialPortController serialPortController) { return(new Plm(serialPortController).GetAllLinkDatabase()); }
private static DeviceBase buildObjectForTest(ISerialPortController serialPortController) { return(TestDeviceHelper.BuildDeviceForTest <DeviceBase>(0x00, 0x00, serialPortController, PEER_ID_HI, PEER_ID_MI, PEER_ID_LO)); }
private static WindowCoveringControl buildObjectForTest(ISerialPortController serialPortController) { return TestDeviceHelper.BuildDeviceForTest<WindowCoveringControl>(0x0E, 0x00, serialPortController); }
internal PlmCommunicatorBase(ISerialPortController serialPortController) { if (serialPortController == null) throw new ArgumentNullException("serialPortController"); this.serialPortController = serialPortController; }
private static LightingControl buildObjectForTest(ISerialPortController serialPortController) { return TestDeviceHelper.BuildDeviceForTest<LightingControl>(0x01, 0x00, serialPortController); }
private static PoolAndSpaControl buildObjectForTest(ISerialPortController serialPortController) { return(TestDeviceHelper.BuildDeviceForTest <PoolAndSpaControl>(0x06, 0x00, serialPortController)); }
private static LightingControl buildObjectForTest(ISerialPortController serialPortController) { return(TestDeviceHelper.BuildDeviceForTest <LightingControl>(0x01, 0x00, serialPortController)); }
private Plm buildPlmForTest(ISerialPortController serialPortController) { return(new Plm(serialPortController)); }
private PlmLed buildObjectForTest(ISerialPortController serialPortController) { return new Plm(serialPortController).Led; }
private static WindowCoveringControl buildObjectForTest(ISerialPortController serialPortController) { return(TestDeviceHelper.BuildDeviceForTest <WindowCoveringControl>(0x0E, 0x00, serialPortController)); }
private static DeviceBase buildObjectForTest(ISerialPortController serialPortController) { return TestDeviceHelper.BuildDeviceForTest<DeviceBase>(0x00, 0x00, serialPortController, PEER_ID_HI, PEER_ID_MI, PEER_ID_LO); }