Exemplo n.º 1
0
        public async Task Test_Health_Endpoint_Works()
        {
            using HttpClient httpClient = Integration.GetTdsHttpClient();
            var client = new TdsClient(httpClient, Integration.CreateLogger <TdsClient>());

            string machineName = await client.GetHealthAsync(CancellationToken.None);

            StringAssert.Contains(Environment.MachineName, machineName);
        }
Exemplo n.º 2
0
        public async Task Test_Ready_Endpoint_Works()
        {
            using HttpClient httpClient = Integration.GetTdsHttpClient();
            var client = new TdsClient(httpClient, Integration.CreateLogger <TdsClient>());

            string dbStatus = await client.GetReadyAsync(CancellationToken.None);

            StringAssert.Contains("DB is up to date", dbStatus);
        }
Exemplo n.º 3
0
 public void SetUp()
 {
     Db.Recreate();
     _tdsClient = new TdsClient(Integration.GetTdsHttpClient(), Integration.CreateLogger <TdsClient>());
 }