Beispiel #1
0
 public static void InitializeTypes()
 {
     if (!initializedTypes)
     {
         MetadataScalarType.init();
         MetaMetadataTranslationScope.Get();
         MetadataBuiltinsTypesScope.Get();
         initializedTypes = true;
     }
 }
        public void TestLoadingPostInheritanceRepository()
        {
            SimplTypesScope.graphSwitch = SimplTypesScope.GRAPH_SWITCH.ON;
            MetadataScalarType.init();

            String   workingDirPath = System.IO.Directory.GetCurrentDirectory();
            FileInfo repoFile       = new FileInfo(workingDirPath + "\\..\\..\\..\\..\\BigSemanticsWrapperRepository\\BigSemanticsWrappers\\PostInheritanceRepository\\post-inheritance-repository.xml");

            Assert.IsTrue(repoFile.Exists);
            MetaMetadataRepositoryInit repoInit =
                new MetaMetadataRepositoryInit(RepositoryMetadataTypesScope.Get(),
                                               repoFile.FullName,
                                               null);
            Task <MetaMetadataRepository> task = repoInit.LoadRepositoryFromCache(repoFile);

            task.Wait();
            ValidateRepo(task.Result);
        }
Beispiel #3
0
 static MetadataBuiltinsTypesScope()
 {
     MetadataScalarType.init();
 }