public void Initialize() { _device.OnMessageSent += (message) => { Assert.IsNotNull(message); Assert.IsTrue(message.StartsWith("[STX]A00[FS]1.35[FS][ETX]")); }; var response = _device.Initialize(); Assert.IsNotNull(response); Assert.AreEqual("OK", response.DeviceResponseText); Assert.IsNotNull(response.SerialNumber); }
public void PaxHttpConnection() { device = new PaxDevice(new ConnectionConfig { ConnectionMode = ConnectionModes.HTTP, IpAddress = "10.12.220.172", Port = "10009" }); var response = device.Initialize(); Assert.IsNotNull(response); Assert.AreEqual("OK", response.DeviceResponseText); device.Dispose(); }