public void TestParseQueries(string testFile)
 {
     var manager = new CustomQueryParseManager(SdmxSchemaEnumType.VersionTwo);
     using (var readable = new FileReadableDataLocation(testFile))
     {
         var result = manager.ParseQueries(readable);
         Assert.IsNotEmpty(result.SimpleStructureQueries);
     }
 }
        public void TestBuildStructureQuery(string testFile)
        {
            var manager = new CustomQueryParseManager(SdmxSchemaEnumType.VersionTwo);

            IQueryWorkspace result;
            using (var readable = new FileReadableDataLocation(testFile))
            {
                result = manager.ParseQueries(readable);
            }

            var builderManager = new QueryStructureRequestBuilderManager(new HeaderImpl("TEST", "TEST"));
            var document = builderManager.BuildStructureQuery(result.SimpleStructureQueries, new QueryStructureRequestFormat(), result.ResolveReferences); 
            Assert.NotNull(document);
        }
 public void TestParseQueriesCustom(string testFile)
 {
     var manager = new CustomQueryParseManager(SdmxSchemaEnumType.VersionTwo);
     using (var readable = new FileReadableDataLocation(testFile))
     {
         var result = manager.ParseQueries(readable);
         Assert.IsNotEmpty(result.SimpleStructureQueries);
         foreach (var reference in result.SimpleStructureQueries)
         {
             if (reference.MaintainableStructureEnumType.EnumType == SdmxStructureEnumType.Dataflow)
             {
                 var constrainable = reference as ConstrainableStructureReference;
                 Assert.NotNull(constrainable);
                 Assert.NotNull(constrainable.ConstraintObject);
             }
         }
     }
 }