Example #1
0
        public void ServiceConnectorDeviceSendComandTextTest()
        {
            // arrange
            IServiceConnector serviceConnector = ServiceConnector.GetInstance();

            serviceConnector.SetAddress("http://localhost:5000/");
            serviceConnector.DeviceGetText(1L);
            string sendText = "Hello";

            // act
            var result     = serviceConnector.DeviceSendCommand(1L, sendText);
            var resultText = serviceConnector.DeviceGetText(1L);

            // assert
            Assert.IsTrue(result);
            Assert.AreEqual(sendText, resultText);
        }