diff --git a/Activout.RestClient.Test/BodyArgumentFormPostTest.cs b/Activout.RestClient.Test/BodyArgumentFormPostTest.cs index f1a91f9..0145245 100644 --- a/Activout.RestClient.Test/BodyArgumentFormPostTest.cs +++ b/Activout.RestClient.Test/BodyArgumentFormPostTest.cs @@ -32,7 +32,7 @@ public interface IFormPostClient public class BodyArgumentFormPostTest { - private const string BaseUri = "http://example.com/"; + private const string BaseUri = "https://example.com/"; private readonly IRestClientFactory _restClientFactory; private readonly MockHttpMessageHandler _mockHttp; diff --git a/Activout.RestClient.Test/HttpResponseMessageTest.cs b/Activout.RestClient.Test/HttpResponseMessageTest.cs index 11ec102..7c596af 100644 --- a/Activout.RestClient.Test/HttpResponseMessageTest.cs +++ b/Activout.RestClient.Test/HttpResponseMessageTest.cs @@ -9,7 +9,7 @@ namespace Activout.RestClient.Test { public class HttpResponseMessageTest { - private const string BaseUri = "http://example.com/"; + private const string BaseUri = "https://example.com/"; private readonly IRestClientFactory _restClientFactory; private readonly MockHttpMessageHandler _mockHttp; diff --git a/Activout.RestClient.Test/HttpStatusCodeTest.cs b/Activout.RestClient.Test/HttpStatusCodeTest.cs index 0727ac2..9a7dcc1 100644 --- a/Activout.RestClient.Test/HttpStatusCodeTest.cs +++ b/Activout.RestClient.Test/HttpStatusCodeTest.cs @@ -9,7 +9,7 @@ namespace Activout.RestClient.Test { public class HttpStatusCodeTest { - private const string BaseUri = "http://example.com/"; + private const string BaseUri = "https://example.com/"; private readonly IRestClientFactory _restClientFactory; private readonly MockHttpMessageHandler _mockHttp; diff --git a/Activout.RestClient.Test/JsonDeserializerTest.cs b/Activout.RestClient.Test/JsonDeserializerTest.cs index 5c0f2bf..7c4ba01 100644 --- a/Activout.RestClient.Test/JsonDeserializerTest.cs +++ b/Activout.RestClient.Test/JsonDeserializerTest.cs @@ -30,7 +30,7 @@ public JsonDeserializerTest() _mockHttp = new MockHttpMessageHandler(); } - private const string BaseUri = "http://example.com/api/"; + private const string BaseUri = "https://example.com/api/"; private readonly IRestClientFactory _restClientFactory; private readonly MockHttpMessageHandler _mockHttp; diff --git a/Activout.RestClient.Test/MultipartFormDataContentTest.cs b/Activout.RestClient.Test/MultipartFormDataContentTest.cs index d32374d..5409cac 100644 --- a/Activout.RestClient.Test/MultipartFormDataContentTest.cs +++ b/Activout.RestClient.Test/MultipartFormDataContentTest.cs @@ -12,7 +12,7 @@ namespace Activout.RestClient.Test { public class MultipartFormDataContentTest { - private const string BaseUri = "http://example.com/"; + private const string BaseUri = "https://example.com/"; private readonly IRestClientFactory _restClientFactory; private readonly MockHttpMessageHandler _mockHttp; diff --git a/Activout.RestClient.Test/RestClientExceptionTest.cs b/Activout.RestClient.Test/RestClientExceptionTest.cs index 36e5681..2d530b7 100644 --- a/Activout.RestClient.Test/RestClientExceptionTest.cs +++ b/Activout.RestClient.Test/RestClientExceptionTest.cs @@ -9,7 +9,7 @@ namespace Activout.RestClient.Test // https://blogs.msdn.microsoft.com/agileer/2013/05/17/the-correct-way-to-code-a-custom-exception-class/ public class RestClientExceptionTest { - private static readonly Uri RequestUri = new Uri("http://localhost"); + private static readonly Uri RequestUri = new Uri("https://example.com"); [Fact] public void RestClientException_default_ctor() diff --git a/Activout.RestClient.Test/RestClientTests.cs b/Activout.RestClient.Test/RestClientTests.cs index e5678dc..f778ae4 100644 --- a/Activout.RestClient.Test/RestClientTests.cs +++ b/Activout.RestClient.Test/RestClientTests.cs @@ -26,7 +26,7 @@ public RestClientTests(ITestOutputHelper outputHelper) _loggerFactory = LoggerFactoryHelpers.CreateLoggerFactory(outputHelper); } - private const string BaseUri = "http://localhost:9080/movieReviewService"; + private const string BaseUri = "https://example.com/movieReviewService"; private const string MovieId = "*MOVIE_ID*"; private const string ReviewId = "*REVIEW_ID*"; diff --git a/Activout.RestClient.Test/SerializationOrderTest.cs b/Activout.RestClient.Test/SerializationOrderTest.cs index 9c12344..36b8cab 100644 --- a/Activout.RestClient.Test/SerializationOrderTest.cs +++ b/Activout.RestClient.Test/SerializationOrderTest.cs @@ -12,7 +12,7 @@ namespace Activout.RestClient.Test { public class SerializationOrderTest { - private const string BaseUri = "http://example.com/"; + private const string BaseUri = "https://example.com/"; private const int OrderFirst = -1000; private const int OrderLast = 1000; diff --git a/Activout.RestClient.Test/SimpleValueObjectTest.cs b/Activout.RestClient.Test/SimpleValueObjectTest.cs index 56c6ac4..e4ede52 100644 --- a/Activout.RestClient.Test/SimpleValueObjectTest.cs +++ b/Activout.RestClient.Test/SimpleValueObjectTest.cs @@ -42,7 +42,7 @@ public SimpleValueObjectTest() _mockHttp = new MockHttpMessageHandler(); } - private const string BaseUri = "http://example.com/api/"; + private const string BaseUri = "https://example.com/api/"; private readonly IRestClientFactory _restClientFactory; private readonly MockHttpMessageHandler _mockHttp; diff --git a/README.md b/README.md index cb37ff0..c1007f5 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ var restClientFactory = Services.CreateRestClientFactory(); var movieReviewService = restClientFactory .CreateBuilder() .With(_httpClient) - .BaseUri(new Uri("http://localhost:9080/movieReviewService")) + .BaseUri(new Uri("https://example.com/movieReviewService")) .Build(); Review review = new Review(stars: 3, "This was a delightful comedy, but not terribly realistic.");