Example #1
0
        public void TestParseCapatibilityReport()
        {
            string             data     = File.ReadAllText(_testData.GetCapatibilityReport);
            CapatibilityReport response = _parser.ParseCapatibilityReport(data);

            Assert.NotNull(response);
        }
Example #2
0
 private void AssertReport(CapatibilityReport report)
 {
     Assert.NotNull(report);
     Assert.False(string.IsNullOrEmpty(report.Id));
     Assert.False(string.IsNullOrEmpty(report.Uri));
     Assert.Greater(report.Values.Count, 3);
 }
Example #3
0
        public async Task RequestReport()
        {
            Report.Clear();

            CapatibilityReport report = await _client.GetCapability(_selectedDeviceId, _selectedCap);

            foreach (TimeValue value in report.Values)
            {
                _report.Add(new Info {
                    Key = value.T.ToString("s"), Value = value.V
                });
            }

            NotifyPropertyChanged(nameof(Report));
        }
Example #4
0
        public async Task TestRequestCapability()
        {
            CapatibilityReport report = await _client.GetCapability("447f00f7-64e8-45b4-93c5-346455b2346b", "measure_humidity");

            AssertReport(report);
        }