public TimeEntryIntegrationTest() { Environment.SetEnvironmentVariable("MYSQL__CLIENT__CONNECTIONSTRING", DbTestSupport.TestDbConnectionString); DbTestSupport.ExecuteSql("TRUNCATE TABLE time_entries"); _testClient = IntegrationTestServer.Start().CreateClient(); }
public TimeEntryIntegrationTest() { Environment.SetEnvironmentVariable("VCAP_SERVICES", DbTestSupport.TestDbVcapJson); DbTestSupport.ExecuteSql("TRUNCATE TABLE time_entries"); _testClient = IntegrationTestServer.Start().CreateClient(); }
public ManagementIntegrationTest() { Environment.SetEnvironmentVariable("MYSQL__CLIENT__CONNECTIONSTRING", DbTestSupport.TestDbConnectionString); Environment.SetEnvironmentVariable("MANAGEMENT__ENDPOINTS__PATH", "/cloudfoundryapplication"); DbTestSupport.ExecuteSql("TRUNCATE TABLE time_entries"); _testClient = IntegrationTestServer.Start().CreateClient(); }
public EnvIntegrationTest() { Environment.SetEnvironmentVariable("PORT", "123"); Environment.SetEnvironmentVariable("MEMORY_LIMIT", "512M"); Environment.SetEnvironmentVariable("CF_INSTANCE_INDEX", "1"); Environment.SetEnvironmentVariable("CF_INSTANCE_ADDR", "127.0.0.1"); _testClient = IntegrationTestServer.Start().CreateClient(); }
public TimeEntryIntegrationTest() { _testClient = IntegrationTestServer.Start().CreateClient(); }
public WelcomeIntegrationTest() { Environment.SetEnvironmentVariable("WELCOME_MESSAGE", "hello from integration test"); _testClient = IntegrationTestServer.Start().CreateClient(); }
public ManagementIntegrationTest() { Environment.SetEnvironmentVariable("VCAP_SERVICES", TestDbVcapJson); ExecuteSql("TRUNCATE TABLE time_entries"); _testClient = IntegrationTestServer.Start().CreateClient(); }