コード例 #1
0
        public void CannotUseWildcardsInGetMetadata()
        {
            const string source   = "dmx:.\\..\\..\\..\\..\\data\\sample.dmx";
            var          metadata = new[] { "scale", "unit", "description" };

            var request = ClientHandler.GetMetadata.CreateRequest(
                source,
                new[] { "BCA_GD%" },
                metadata
                );
            var response = ServerHandler.CallGetMetadata(request);

            ClientHandler.GetMetadata.ShowResponse(response);
            Assert.IsNotNull(response);
            Assert.IsTrue(response.Seriesdata.Count == 0);

            request = ClientHandler.GetMetadata.CreateRequest(
                "dmx:.\\..\\..\\..\\..\\data\\sample.dmx",
                new[] { "BCA_GDP" },
                new[] { "scale", "unit", "description" }
                );
            response = ServerHandler.CallGetMetadata(request);
            ClientHandler.GetMetadata.ShowResponse(response);
            Assert.IsNotNull(response);
            Assert.IsTrue(response.Seriesdata.Count > 0);
        }
コード例 #2
0
        public void CanCallGetMetadata()
        {
            var request = ClientHandler.GetMetadata.CreateRequest(
                "dmx:.\\..\\..\\..\\..\\data\\sample.dmx",
                new[] { "911BE", "911BEA", "BCA_GDP" },
                new[] { "scale", "unit", "description" }
                );
            var response = ServerHandler.CallGetMetadata(request);

            ClientHandler.GetMetadata.ShowResponse(response);
            Assert.IsNotNull(response);
        }