public void Setup() { Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory); OntologyDiscovery.AddAssembly(Assembly.GetExecutingAssembly()); MappingDiscovery.RegisterAssembly(Assembly.GetExecutingAssembly()); }
public void Setup() { OntologyDiscovery.AddAssembly(Assembly.GetExecutingAssembly()); MappingDiscovery.RegisterAssembly(Assembly.GetExecutingAssembly()); TinyVirtuoso.TinyVirtuoso v = new TinyVirtuoso.TinyVirtuoso(Environment.CurrentDirectory); instance = v.GetOrCreateInstance("NUnit"); instance.Start(true); ConnectionString = instance.GetTrinityConnectionString(); HostAndPort = instance.Configuration.Parameters.ServerPort; }
public void Setup() { Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory); OntologyDiscovery.AddAssembly(Assembly.GetExecutingAssembly()); OntologyDiscovery.AddAssembly(typeof(AbstractMappingClass).Assembly); MappingDiscovery.RegisterAssembly(typeof(AbstractMappingClass).Assembly); //ConnectionString = _instance.GetTrinityConnectionString(); //HostAndPort = _instance.Configuration.Parameters.ServerPort; }
public void SetUp() { if (ResourceMappingTest.RegisteredOntology == false) { OntologyDiscovery.AddAssembly(Assembly.GetExecutingAssembly()); MappingDiscovery.RegisterAssembly(Assembly.GetExecutingAssembly()); ResourceMappingTest.RegisteredOntology = true; } Store = StoreFactory.CreateStore("provider=dotnetrdf"); Uri testModel = new Uri("ex:Test"); Model = Store.CreateModel(testModel); }
public void SetUp() { if (ResourceMappingTest.RegisteredOntology == false) { OntologyDiscovery.AddAssembly(Assembly.GetExecutingAssembly()); MappingDiscovery.RegisterAssembly(Assembly.GetExecutingAssembly()); ResourceMappingTest.RegisteredOntology = true; } Store = StoreFactory.CreateStore("provider=stardog;host=http://localhost:5820;uid=admin;pw=admin;sid=test"); Uri testModel = new Uri("ex:Test"); Model = Store.CreateModel(testModel); }
public void Setup() { Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory); StoreFactory.LoadProvider <VirtuosoStoreProvider>(); OntologyDiscovery.AddAssembly(Assembly.GetExecutingAssembly()); MappingDiscovery.RegisterAssembly(Assembly.GetExecutingAssembly()); OntologyDiscovery.AddAssembly(typeof(AbstractMappingClass).Assembly); MappingDiscovery.RegisterAssembly(typeof(AbstractMappingClass).Assembly); FileInfo location = new FileInfo(Assembly.GetExecutingAssembly().Location); DirectoryInfo folder = new DirectoryInfo(Path.Combine(location.DirectoryName, "nunit")); if (folder.Exists) { folder.Delete(true); } folder.Create(); ConnectionString = "provider=virtuoso;host=127.0.0.1;port=1111;uid=dba;pw=dba"; HostAndPort = "localhost:1111"; }