public virtual void FixtureSetup() { connectionString = GetConnectionString(); if (BaseDirectory == null) { BaseDirectory = Directory.GetCurrentDirectory() + "/../database"; } AdminTool adminTool = new AdminTool(DataDefinitionMode.Create, BaseDirectory, null, connectionString); try { adminTool.Process(); context = IfyContext.GetLocalContext(connectionString, false); context.Open(); context.LoadConfiguration(); } catch (Exception e) { Console.Error.WriteLine(e.Message); throw; } System.Configuration.ConfigurationManager.AppSettings["DataGatewayBaseUrl"] = "https://store.terradue.com"; System.Configuration.ConfigurationManager.AppSettings["DataGatewayShareUrl"] = "https://recast.terradue.com/t2api/share"; System.Configuration.ConfigurationManager.AppSettings["DataGatewaySecretKey"] = "abcdefg"; System.Configuration.ConfigurationManager.AppSettings["RecastBaseUrl"] = "https://recast.terradue.com"; System.Configuration.ConfigurationManager.AppSettings["CatalogBaseUrl"] = "https://catalog.terradue.com"; }
public virtual void FixtureSetup() { connectionString = GetConnectionString(); if (BaseDirectory == null) { BaseDirectory = Directory.GetCurrentDirectory() + "/../database"; } AdminTool adminTool = new AdminTool(DataDefinitionMode.Create, BaseDirectory, null, connectionString); try { adminTool.Process(); context = IfyContext.GetLocalContext(connectionString, false); context.Open(); context.LoadConfiguration(); } catch (Exception e) { Console.Error.WriteLine(e.Message); throw; } }