Beispiel #1
0
        public void StressTest()
        {
            var start = DateTime.Now;

            var gskRequest = ClientHandler.GetSeriesKeys.CreateRequest(
                new[] { "dmx:.\\..\\..\\..\\..\\data\\tcd.dmx" },
                new[] { "oname:%" }
                );
            var gskResponse = ServerHandler.CallGetSeriesKeys(gskRequest);

            ClientHandler.GetSeriesKeys.ShowResponse(gskResponse);
            Assert.IsNotNull(gskResponse);
            Assert.IsTrue(gskResponse.Keys.Count > 0);

            var goRequest = ClientHandler.GetObservations.CreateRequest(
                "dmx:.\\..\\..\\..\\..\\data\\tcd.dmx",
                gskResponse.Keys.Select(k => k.Seriesname),
                "MQA"
                );
            var goResponse = ServerHandler.CallGetObservations(goRequest);

            ClientHandler.GetObservations.ShowResponse(goResponse);

            var duration = DateTime.Now - start;

            Console.WriteLine($"StressTest done in {duration}");
        }
Beispiel #2
0
        public void CanCallGetSeriesKeys()
        {
            var request = ClientHandler.GetSeriesKeys.CreateRequest(
                new[] { "dmx:.\\..\\..\\..\\..\\data\\sample.dmx" },
                new[] { "description:%" }
                );
            var response = ServerHandler.CallGetSeriesKeys(request);

            ClientHandler.GetSeriesKeys.ShowResponse(response);
            Assert.IsNotNull(response);
            Assert.IsTrue(response.Keys.Count > 0);

            request = ClientHandler.GetSeriesKeys.CreateRequest(
                new[] { "dmx:.\\..\\..\\..\\..\\data\\tcd.dmx" },
                new[] { "oname:%" }
                );
            response = ServerHandler.CallGetSeriesKeys(request);
            ClientHandler.GetSeriesKeys.ShowResponse(response);
            Assert.IsNotNull(response);
            Assert.IsTrue(response.Keys.Count > 0);
        }