Esempio n. 1
0
        public void SetTelemetryInterval_ShouldShowReturnStatusCodeBadRequest()
        {
            var array    = Encoding.UTF8.GetBytes("A");
            var response = DeviceServices.SetTelemetryInterval(new MethodRequest("SetTelemetryInterval", array), null).GetAwaiter().GetResult();

            Assert.Equal(400, response.Status);
        }
Esempio n. 2
0
        public void Task_SetTelemetryInterval_SouldReturnOKStatusCode()
        {
            var array    = Encoding.UTF8.GetBytes("10");
            var response = DeviceServices.SetTelemetryInterval(new MethodRequest("SetTelementryInterval", array), null).GetAwaiter().GetResult();


            Assert.Equal(200, response.Status);
        }