コード例 #1
0
        public void Read3()
        {
            string dataPath = Utility.GetPath("lib\\MessageGroupSample3.xml");

            string dsdPath = Utility.GetPath("lib\\StructureSample.xml");
            var dsd = StructureMessage.Load(dsdPath);
            var keyFamily = dsd.KeyFamilies[0];

            int counter = 0;
            using (var reader = new MessageGroupReader(dataPath, keyFamily))
            {
                var header = reader.ReadHeader();

                Assert.IsNotNull(header);

                while (reader.Read())
                {
                    Assert.AreEqual(17, reader.Count());
                    //foreach (var item in reader)
                    //    Console.Write("{0}={1},", item.Key, item.Value);
                    //Console.WriteLine();
                    counter++;
                }
            }

            Assert.AreEqual(13, counter);
        }
コード例 #2
0
        public void Read3()
        {
            string dataPath = Utility.GetPath("lib\\MessageGroupSample3.xml");

            string dsdPath   = Utility.GetPath("lib\\StructureSample.xml");
            var    dsd       = StructureMessage.Load(dsdPath);
            var    keyFamily = dsd.KeyFamilies[0];

            int counter = 0;

            using (var reader = new MessageGroupReader(dataPath, keyFamily))
            {
                var header = reader.ReadHeader();

                Assert.IsNotNull(header);

                while (reader.Read())
                {
                    Assert.AreEqual(17, reader.Count());
                    //foreach (var item in reader)
                    //    Console.Write("{0}={1},", item.Key, item.Value);
                    //Console.WriteLine();
                    counter++;
                }
            }

            Assert.AreEqual(13, counter);
        }
コード例 #3
0
ファイル: BIAccelerator.cs プロジェクト: tomplusit/sdmxdotnet
        public void WebService()
        {
            string dataPath = Utility.GetPath("lib\\MessageGroupSample3.xml");

            string dsdPath   = Utility.GetPath("lib\\StructureSample.xml");
            var    dsd       = StructureMessage.Load(dsdPath);
            var    keyFamily = dsd.KeyFamilies[0];

            int counter = 0;

            using (var reader = new MessageGroupReader(dataPath, keyFamily))
            {
                var header = reader.ReadHeader();

                Assert.IsNotNull(header);

                while (reader.Read())
                {
                    Assert.AreEqual(17, reader.Count());
                    WriteRecord(reader);
                    counter++;
                }
            }

            Assert.AreEqual(13, counter);
        }
コード例 #4
0
ファイル: BIAccelerator.cs プロジェクト: dur41d/sdmxdotnet
        public void WebService()
        {
            string dataPath = Utility.GetPath("lib\\MessageGroupSample3.xml");

            string dsdPath = Utility.GetPath("lib\\StructureSample.xml");
            var dsd = StructureMessage.Load(dsdPath);
            var keyFamily = dsd.KeyFamilies[0];

            int counter = 0;
            using (var reader = new MessageGroupReader(dataPath, keyFamily))
            {
                var header = reader.ReadHeader();

                Assert.IsNotNull(header);

                while (reader.Read())
                {
                    Assert.AreEqual(17, reader.Count());
                    WriteRecord(reader);
                    counter++;
                }
            }

            Assert.AreEqual(13, counter);
        }