public void HttpTimestampHandlerTest_RouteHandler_IIS()
 {
     using (HttpClient client = new HttpClientWrapper("http://apifoundation.self.monday:9999"))
     {
         client.GetJson<JObject>(
             "/api3/!timestamp!/get",
             response =>
             {
                 Assert.IsNotNull(response);
                 Assert.IsNotNull(response["Timestamp"]);
             }
         );
     }
 }
 public void HttpTimestampHandlerTest_RouteHandler()
 {
     using (var server = new EncryptedHttpRouteWrapper())
     using (HttpClient client = new HttpClientWrapper())
     {
         client.GetJson<JObject>(
             "/api3/!timestamp!/get",
             response =>
             {
                 Assert.IsNotNull(response);
                 Assert.IsNotNull(response["Timestamp"]);
             }
         );
     }
 }
        public void HttpClientExtensionsTest_LmsApi_GetTimestamp()
        {
            // 略過憑證檢查
            ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;

            using (HttpClient client = new HttpClientWrapper())
            {
                client.GetJson<string>(
                    "https://lmsapi.eos.net.tw:8443/api/TimeStampService/GetTimeStamp",
                    response =>
                    {
                        Assert.IsNotNull(response);
                        Assert.IsInstanceOfType(response, typeof(string));
                    }
                );
            }

            // 復原
            ServicePointManager.ServerCertificateValidationCallback = null;
        }