コード例 #1
0
        public TimeEntryIntegrationTest()
        {
            Environment.SetEnvironmentVariable("MYSQL__CLIENT__CONNECTIONSTRING", DbTestSupport.TestDbConnectionString);
            DbTestSupport.ExecuteSql("TRUNCATE TABLE time_entries");

            _testClient = IntegrationTestServer.Start().CreateClient();
        }
コード例 #2
0
        public TimeEntryIntegrationTest()
        {
            Environment.SetEnvironmentVariable("VCAP_SERVICES", DbTestSupport.TestDbVcapJson);
            DbTestSupport.ExecuteSql("TRUNCATE TABLE time_entries");

            _testClient = IntegrationTestServer.Start().CreateClient();
        }
コード例 #3
0
 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();
 }
コード例 #4
0
        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();
        }
コード例 #5
0
 public TimeEntryIntegrationTest()
 {
     _testClient = IntegrationTestServer.Start().CreateClient();
 }
コード例 #6
0
 public WelcomeIntegrationTest()
 {
     Environment.SetEnvironmentVariable("WELCOME_MESSAGE", "hello from integration test");
     _testClient = IntegrationTestServer.Start().CreateClient();
 }
コード例 #7
0
 public ManagementIntegrationTest()
 {
     Environment.SetEnvironmentVariable("VCAP_SERVICES", TestDbVcapJson);
     ExecuteSql("TRUNCATE TABLE time_entries");
     _testClient = IntegrationTestServer.Start().CreateClient();
 }