diff --git a/RESTFulSense.Tests.Acceptance/Tests/RestfulApiClientTests.ExecuteHttpCall.cs b/RESTFulSense.Tests.Acceptance/Tests/RestfulApiClientTests.ExecuteHttpCall.cs new file mode 100644 index 0000000..6a1c6d1 --- /dev/null +++ b/RESTFulSense.Tests.Acceptance/Tests/RestfulApiClientTests.ExecuteHttpCall.cs @@ -0,0 +1,49 @@ +// ---------------------------------------------------------------------------------- +// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers +// ---------------------------------------------------------------------------------- + +using System; +using System.Net.Http; +using System.Threading.Tasks; +using FluentAssertions; +using Newtonsoft.Json; +using RESTFulSense.Tests.Acceptance.Models; +using WireMock.RequestBuilders; +using WireMock.ResponseBuilders; +using Xunit; + +namespace RESTFulSense.Tests.Acceptance.Tests +{ + public partial class RestfulApiClientTests + { + + [Fact] + private async Task ShouldExecuteHttpCallAsync() + { + // given + TEntity randomTEntity = GetRandomTEntity(); + TEntity expectedTEntity = randomTEntity; + var httpClient = new HttpClient(); + httpClient.BaseAddress = new Uri(this.wiremockServer.Urls[0]); + + this.wiremockServer.Given(Request.Create() + .WithPath(relativeUrl) + .UsingGet()) + .RespondWith(Response.Create() + .WithStatusCode(200) + .WithBodyAsJson(expectedTEntity)); + + // when + HttpResponseMessage httpResponseMessage = + await this.restfulApiClient.ExecuteHttpCallAsync( + httpClient.GetAsync("/tests")); + + TEntity actualTEntityEntity = + JsonConvert.DeserializeObject( + await httpResponseMessage.Content.ReadAsStringAsync()); + + // then + actualTEntityEntity.Should().BeEquivalentTo(expectedTEntity); + } + } +} \ No newline at end of file diff --git a/RESTFulSense.Tests.Acceptance/Tests/RestfulApiClientTests.PostContent.cs b/RESTFulSense.Tests.Acceptance/Tests/RestfulApiClientTests.PostContent.cs index cbfb02b..b23bf7f 100644 --- a/RESTFulSense.Tests.Acceptance/Tests/RestfulApiClientTests.PostContent.cs +++ b/RESTFulSense.Tests.Acceptance/Tests/RestfulApiClientTests.PostContent.cs @@ -19,7 +19,7 @@ public partial class RestfulApiClientTests { [Fact] - private async Task ShouldPostContentWithNoResponseAndDeserializeContentAsync() + private void ShouldPostContentWithNoResponseAndDeserializeContent() { // given TEntity randomTEntity = GetRandomTEntity(); diff --git a/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.ExecuteHttpCall.cs b/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.ExecuteHttpCall.cs new file mode 100644 index 0000000..e5d310c --- /dev/null +++ b/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.ExecuteHttpCall.cs @@ -0,0 +1,48 @@ +// ---------------------------------------------------------------------------------- +// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers +// ---------------------------------------------------------------------------------- + +using System; +using System.Net.Http; +using System.Threading.Tasks; +using FluentAssertions; +using Newtonsoft.Json; +using RESTFulSense.Tests.Acceptance.Models; +using WireMock.RequestBuilders; +using WireMock.ResponseBuilders; +using Xunit; + +namespace RESTFulSense.Tests.Acceptance.Tests +{ + public partial class RestfulSenseApiFactoryTests + { + [Fact] + private async Task ShouldExecuteHttpCallAsync() + { + // given + TEntity randomTEntity = GetRandomTEntity(); + TEntity expectedTEntity = randomTEntity; + var httpClient = new HttpClient(); + httpClient.BaseAddress = new Uri(this.wiremockServer.Urls[0]); + + this.wiremockServer.Given(Request.Create() + .WithPath(relativeUrl) + .UsingGet()) + .RespondWith(Response.Create() + .WithStatusCode(200) + .WithBodyAsJson(expectedTEntity)); + + // when + HttpResponseMessage httpResponseMessage = + await this.factoryClient.ExecuteHttpCallAsync( + httpClient.GetAsync("/tests")); + + TEntity actualTEntityEntity = + JsonConvert.DeserializeObject( + await httpResponseMessage.Content.ReadAsStringAsync()); + + // then + actualTEntityEntity.Should().BeEquivalentTo(expectedTEntity); + } + } +} diff --git a/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PostContent.cs b/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PostContent.cs index 4900610..c237152 100644 --- a/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PostContent.cs +++ b/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PostContent.cs @@ -53,7 +53,7 @@ await this.factoryClient.PostContentWithNoResponseAsync( } [Fact] - private async Task ShouldPostContentWithNoResponseAndDeserializeContentAsync() + private void ShouldPostContentWithNoResponseAndDeserializeContent() { // given TEntity randomTEntity = GetRandomTEntity(); diff --git a/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PutContent.cs b/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PutContent.cs index 2475220..0bb3f4d 100644 --- a/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PutContent.cs +++ b/RESTFulSense.Tests.Acceptance/Tests/RestfulSenseApiFactoryTests.PutContent.cs @@ -5,7 +5,6 @@ using System.Threading; using System.Threading.Tasks; using FluentAssertions; -using Newtonsoft.Json; using RESTFulSense.Tests.Acceptance.Models; using WireMock.RequestBuilders; using WireMock.ResponseBuilders; diff --git a/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddByteArrays.cs b/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddByteArrays.cs index ca0306b..5eb6548 100644 --- a/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddByteArrays.cs +++ b/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddByteArrays.cs @@ -23,7 +23,7 @@ private void ShouldThrowFormValidationExceptionOnAddByteContentWithNoFileNameIfA // given MultipartFormDataContent nullMultipartFormDataContent = CreateNullMultipartFormDataContent(); - + byte[] nullContent = null; string invalidName = invalidInput; @@ -78,7 +78,7 @@ private void ShouldThrowFormValidationExceptionOnAddByteContentWithFileNameIfArg // given MultipartFormDataContent nullMultipartFormDataContent = CreateNullMultipartFormDataContent(); - + byte[] nullContent = null; string invalidName = invalidInput; string invalidFileName = invalidInput; diff --git a/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStreams.cs b/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStreams.cs index 053aae6..6664d0c 100644 --- a/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStreams.cs +++ b/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStreams.cs @@ -24,7 +24,7 @@ private void ShouldThrowFormValidationExceptionOnAddStreamContentWithNoFileNameI // given MultipartFormDataContent nullMultipartFormDataContent = CreateNullMultipartFormDataContent(); - + Stream nullContent = null; string invalidName = invalidInput; @@ -79,7 +79,7 @@ private void ShouldThrowFormValidationExceptionOnAddStreamContentWithFileNameIfA // given MultipartFormDataContent nullMultipartFormDataContent = CreateNullMultipartFormDataContent(); - + Stream nullContent = null; string invalidName = invalidInput; string invalidFileName = invalidInput; diff --git a/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStrings.cs b/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStrings.cs index 98bb34a..3991603 100644 --- a/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStrings.cs +++ b/RESTFulSense.Tests/Services/Foundations/Forms/FormServiceTests.Validations.AddStrings.cs @@ -22,7 +22,7 @@ private void ShouldThrowFormValidationExceptionOnAddStringContentIfArgumentsIsIn // given MultipartFormDataContent nullMultipartFormDataContent = CreateNullMultipartFormDataContent(); - + string invalidContent = invalidInput; string invalidName = invalidInput; diff --git a/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Exceptions.Retrieve.cs b/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Exceptions.Retrieve.cs index 4d18abe..9a92dca 100644 --- a/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Exceptions.Retrieve.cs +++ b/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Exceptions.Retrieve.cs @@ -23,7 +23,7 @@ private void ShouldThrowPropertyServiceExceptionIfExceptionOccurs() new FailedPropertyServiceException( message: "Failed Property Service Exception occurred, please contact support for assistance.", innerException: someException); - + var expectedPropertyServiceException = new PropertyServiceException( message: "Property service error occurred, contact support.", diff --git a/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Logic.Retrieve.cs b/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Logic.Retrieve.cs index 26794c1..4d1e4a7 100644 --- a/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Logic.Retrieve.cs +++ b/RESTFulSense.Tests/Services/Foundations/Properties/PropertyServiceTests.Logic.Retrieve.cs @@ -18,10 +18,10 @@ private void ShouldRetrieveProperties() // given PropertyInfo[] randomPropertyInfos = CreateRandomProperties(); - + PropertyInfo[] returnedPropertyInfos = randomPropertyInfos; - + PropertyInfo[] expectedPropertyInfos = returnedPropertyInfos; diff --git a/RESTFulSense.Tests/Services/Foundations/Types/TypeServiceTests.Exception.Retrieve.cs b/RESTFulSense.Tests/Services/Foundations/Types/TypeServiceTests.Exception.Retrieve.cs index 5315427..94fb5c3 100644 --- a/RESTFulSense.Tests/Services/Foundations/Types/TypeServiceTests.Exception.Retrieve.cs +++ b/RESTFulSense.Tests/Services/Foundations/Types/TypeServiceTests.Exception.Retrieve.cs @@ -103,7 +103,7 @@ private void ShouldThrowTypeServiceExceptionIfExceptionOccurs() new FailedTypeServiceException( message: "Failed Type Service Exception occurred, please contact support for assistance.", innerException: someException); - + var expectedTypeServiceException = new TypeServiceException( message: "Type service error occurred, contact support.", diff --git a/RESTFulSense.Tests/Services/Foundations/Values/ValueServiceTests.Logic.Retrieve.cs b/RESTFulSense.Tests/Services/Foundations/Values/ValueServiceTests.Logic.Retrieve.cs index a782769..17afabe 100644 --- a/RESTFulSense.Tests/Services/Foundations/Values/ValueServiceTests.Logic.Retrieve.cs +++ b/RESTFulSense.Tests/Services/Foundations/Values/ValueServiceTests.Logic.Retrieve.cs @@ -18,7 +18,7 @@ private void ShouldRetrievePropertyValue() object someObject = CreateSomeObject(); object someValue = CreateSomeObject(); object expectedValue = someValue; - + PropertyInfo somePropertyInfo = CreateSomePropertyInfo(); diff --git a/RESTFulSense.WebAssembly/Clients/IRESTFulApiClient.cs b/RESTFulSense.WebAssembly/Clients/IRESTFulApiClient.cs index e52e3b7..c2c187c 100644 --- a/RESTFulSense.WebAssembly/Clients/IRESTFulApiClient.cs +++ b/RESTFulSense.WebAssembly/Clients/IRESTFulApiClient.cs @@ -6,6 +6,7 @@ using System; using System.IO; +using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -16,7 +17,7 @@ public interface IRESTFulApiClient ValueTask GetContentAsync( string relativeUrl, Func> deserializationFunction = null); - + ValueTask GetContentAsync( string relativeUrl, CancellationToken cancellationToken, @@ -127,11 +128,11 @@ ValueTask PutContentAsync( ValueTask> deserializationFunction = null); ValueTask DeleteContentAsync(string relativeUrl); - + ValueTask DeleteContentAsync( string relativeUrl, CancellationToken cancellationToken); - + ValueTask DeleteContentAsync( string relativeUrl, Func> deserializationFunction = null); @@ -140,5 +141,8 @@ ValueTask DeleteContentAsync( string relativeUrl, CancellationToken cancellationToken, Func> deserializationFunction = null); + + ValueTask ExecuteHttpCallAsync( + Task function); } } diff --git a/RESTFulSense.WebAssembly/Clients/IRESTFulApiFactoryClient.cs b/RESTFulSense.WebAssembly/Clients/IRESTFulApiFactoryClient.cs index b26636e..6ec3b35 100644 --- a/RESTFulSense.WebAssembly/Clients/IRESTFulApiFactoryClient.cs +++ b/RESTFulSense.WebAssembly/Clients/IRESTFulApiFactoryClient.cs @@ -6,6 +6,7 @@ using System; using System.IO; +using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -131,5 +132,8 @@ ValueTask DeleteContentAsync( string relativeUrl, CancellationToken cancellationToken, Func> deserializationFunction = null); + + ValueTask ExecuteHttpCallAsync( + Task function); } } \ No newline at end of file diff --git a/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.NewtonSoft.cs b/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.NewtonSoft.cs index 4be205f..4740c30 100644 --- a/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.NewtonSoft.cs +++ b/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.NewtonSoft.cs @@ -7,7 +7,7 @@ using Newtonsoft.Json; namespace RESTFulSense.WebAssembly.Clients - { +{ public partial class RESTFulApiClient { private static JsonSerializerSettings CreateJsonSerializerSettings(bool ignoreDefaultValues) diff --git a/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.cs b/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.cs index c591716..c7adc14 100644 --- a/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.cs +++ b/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.Conversions.cs @@ -56,7 +56,7 @@ private async static ValueTask ConvertToJsonStringContent( mediaType); return contentString; - } + } private static StreamContent ConvertToStreamContent(T content, string mediaType) where T : Stream diff --git a/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.cs b/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.cs index 88952c5..1674a1b 100644 --- a/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.cs +++ b/RESTFulSense.WebAssembly/Clients/RESTFulApiClient.cs @@ -33,7 +33,7 @@ public async ValueTask GetContentAsync( { HttpResponseMessage responseMessage = await GetAsync(relativeUrl, cancellationToken); - + await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent(responseMessage); @@ -189,8 +189,8 @@ public async ValueTask PostContentAsync( CancellationToken cancellationToken, string mediaType = "text/json", bool ignoreDefaultValues = false, - Func> serializationFunction = null, - Func> deserializationFunction = null) + Func> serializationFunction = null, + Func> deserializationFunction = null) { HttpContent contentString = await ConvertToHttpContent( @@ -217,7 +217,7 @@ public async ValueTask PutContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( content, mediaType, @@ -243,7 +243,7 @@ public async ValueTask PutContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( content, mediaType, @@ -297,7 +297,7 @@ public async ValueTask PutContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( content, mediaType, @@ -352,7 +352,7 @@ public async ValueTask DeleteContentAsync(string relativeUrl) { HttpResponseMessage responseMessage = await DeleteAsync(relativeUrl); - + await ValidationService.ValidateHttpResponseAsync( responseMessage); } @@ -376,7 +376,7 @@ public async ValueTask DeleteContentAsync( { HttpResponseMessage responseMessage = await DeleteAsync(relativeUrl); - + await ValidationService.ValidateHttpResponseAsync( responseMessage); @@ -414,5 +414,16 @@ private static async ValueTask DeserializeResponseContent( ? JsonConvert.DeserializeObject(responseString) : await deserializationFunction(responseString); } + + public async ValueTask ExecuteHttpCallAsync( + Task function) + { + HttpResponseMessage httpResponseMessage = + await function; + + await ValidationService.ValidateHttpResponseAsync(httpResponseMessage); + + return httpResponseMessage; + } } } \ No newline at end of file diff --git a/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.NewtonSoft.cs b/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.NewtonSoft.cs index 1753e70..2f1e65e 100644 --- a/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.NewtonSoft.cs +++ b/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.NewtonSoft.cs @@ -7,7 +7,7 @@ using Newtonsoft.Json; namespace RESTFulSense.WebAssembly.Clients - { +{ public partial class RESTFulApiFactoryClient { private static JsonSerializerSettings CreateJsonSerializerSettings(bool ignoreDefaultValues) diff --git a/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.cs b/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.cs index a541357..e6bac48 100644 --- a/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.cs +++ b/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.Conversions.cs @@ -56,7 +56,7 @@ private async static ValueTask ConvertToJsonStringContent( mediaType); return contentString; - } + } private static StreamContent ConvertToStreamContent(T content, string mediaType) where T : Stream diff --git a/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.cs b/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.cs index 7565d40..7303d0f 100644 --- a/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.cs +++ b/RESTFulSense.WebAssembly/Clients/RESTFulApiFactoryClient.cs @@ -162,7 +162,7 @@ public async ValueTask PostContentWithStreamResponseAsync( bool ignoreDefaultValues = false, Func> serializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( content, mediaType, @@ -434,9 +434,9 @@ await ValidationService.ValidateHttpResponseAsync( deserializationFunction); } - private static async ValueTask DeserializeResponseContent( - HttpResponseMessage responseMessage, - Func> deserializationFunction = null) + private static async ValueTask DeserializeResponseContent( + HttpResponseMessage responseMessage, + Func> deserializationFunction = null) { string responseString = await responseMessage.Content.ReadAsStringAsync(); @@ -445,5 +445,16 @@ private static async ValueTask DeserializeResponseContent( ? JsonConvert.DeserializeObject(responseString) : await deserializationFunction(responseString); } + + public async ValueTask ExecuteHttpCallAsync( + Task function) + { + HttpResponseMessage httpResponseMessage = + await function; + + await ValidationService.ValidateHttpResponseAsync(httpResponseMessage); + + return httpResponseMessage; + } } } \ No newline at end of file diff --git a/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyApiClientTests.ExecuteHttpCall.cs b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyApiClientTests.ExecuteHttpCall.cs new file mode 100644 index 0000000..0d51795 --- /dev/null +++ b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyApiClientTests.ExecuteHttpCall.cs @@ -0,0 +1,48 @@ +// ---------------------------------------------------------------------------------- +// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers +// ---------------------------------------------------------------------------------- + +using System; +using System.Net.Http; +using System.Threading.Tasks; +using FluentAssertions; +using Newtonsoft.Json; +using RESTFulSense.WebAssenbly.Tests.Acceptance.Models; +using WireMock.RequestBuilders; +using WireMock.ResponseBuilders; +using Xunit; + +namespace RESTFulSense.WebAssenbly.Tests.Acceptance.Tests +{ + public partial class RestfulSenseWebAssemblyApiClientTests + { + [Fact] + private async Task ShouldExecuteHttpCallAsync() + { + // given + TEntity randomTEntity = GetRandomTEntity(); + TEntity expectedTEntity = randomTEntity; + var httpClient = new HttpClient(); + httpClient.BaseAddress = new Uri(this.wiremockServer.Urls[0]); + + this.wiremockServer.Given(Request.Create() + .WithPath(relativeUrl) + .UsingGet()) + .RespondWith(Response.Create() + .WithStatusCode(200) + .WithBodyAsJson(expectedTEntity)); + + // when + HttpResponseMessage httpResponseMessage = + await this.restfulWebAssemblyApiClient.ExecuteHttpCallAsync( + httpClient.GetAsync("/tests")); + + TEntity actualTEntityEntity = + JsonConvert.DeserializeObject( + await httpResponseMessage.Content.ReadAsStringAsync()); + + // then + actualTEntityEntity.Should().BeEquivalentTo(expectedTEntity); + } + } +} \ No newline at end of file diff --git a/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyApiClientTests.PostContent.cs b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyApiClientTests.PostContent.cs index 45fcc48..736a516 100644 --- a/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyApiClientTests.PostContent.cs +++ b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyApiClientTests.PostContent.cs @@ -18,7 +18,7 @@ namespace RESTFulSense.WebAssenbly.Tests.Acceptance.Tests public partial class RestfulSenseWebAssemblyApiClientTests { [Fact] - private async Task ShouldPostContentWithNoResponseAndDeserializeContentAsync() + private void ShouldPostContentWithNoResponseAndDeserializeContent() { // given TEntity randomTEntity = GetRandomTEntity(); diff --git a/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyFactoryApiClientTests.ExecuteHttpCall.cs b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyFactoryApiClientTests.ExecuteHttpCall.cs new file mode 100644 index 0000000..551550f --- /dev/null +++ b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyFactoryApiClientTests.ExecuteHttpCall.cs @@ -0,0 +1,48 @@ +// ---------------------------------------------------------------------------------- +// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers +// ---------------------------------------------------------------------------------- + +using System; +using System.Net.Http; +using System.Threading.Tasks; +using FluentAssertions; +using Newtonsoft.Json; +using RESTFulSense.WebAssenbly.Tests.Acceptance.Models; +using WireMock.RequestBuilders; +using WireMock.ResponseBuilders; +using Xunit; + +namespace RESTFulSense.WebAssenbly.Tests.Acceptance.Tests +{ + public partial class RestfulSenseWebAssemblyFactoryApiClientTests + { + [Fact] + private async Task ShouldExecuteHttpCallAsync() + { + // given + TEntity randomTEntity = GetRandomTEntity(); + TEntity expectedTEntity = randomTEntity; + var httpClient = new HttpClient(); + httpClient.BaseAddress = new Uri(this.wiremockServer.Urls[0]); + + this.wiremockServer.Given(Request.Create() + .WithPath(relativeUrl) + .UsingGet()) + .RespondWith(Response.Create() + .WithStatusCode(200) + .WithBodyAsJson(expectedTEntity)); + + // when + HttpResponseMessage httpResponseMessage = + await this.webAssemblyApiFactoryClient.ExecuteHttpCallAsync( + httpClient.GetAsync("/tests")); + + TEntity actualTEntityEntity = + JsonConvert.DeserializeObject( + await httpResponseMessage.Content.ReadAsStringAsync()); + + // then + actualTEntityEntity.Should().BeEquivalentTo(expectedTEntity); + } + } +} \ No newline at end of file diff --git a/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyFactoryApiClientTests.PostContent.cs b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyFactoryApiClientTests.PostContent.cs index 3d979e6..96c02b1 100644 --- a/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyFactoryApiClientTests.PostContent.cs +++ b/RESTFulSense.WebAssenbly.Tests.Acceptance/Tests/RestfulSenseWebAssemblyFactoryApiClientTests.PostContent.cs @@ -18,7 +18,7 @@ namespace RESTFulSense.WebAssenbly.Tests.Acceptance.Tests public partial class RestfulSenseWebAssemblyFactoryApiClientTests { [Fact] - private async Task ShouldPostContentWithNoResponseAndDeserializeContentAsync() + private void ShouldPostContentWithNoResponseAndDeserializeContent() { // given TEntity randomTEntity = GetRandomTEntity(); diff --git a/RESTFulSense/Clients/IRESTFulApiClient.cs b/RESTFulSense/Clients/IRESTFulApiClient.cs index 6080b7d..54325eb 100644 --- a/RESTFulSense/Clients/IRESTFulApiClient.cs +++ b/RESTFulSense/Clients/IRESTFulApiClient.cs @@ -6,6 +6,7 @@ using System; using System.IO; +using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -21,7 +22,7 @@ ValueTask GetContentAsync( ValueTask GetContentAsync( string relativeUrl, CancellationToken cancellationToken, - Func> deserializationFunction = null); + Func> deserializationFunction = null); ValueTask GetContentStringAsync(string relativeUrl); @@ -128,7 +129,7 @@ ValueTask PutContentAsync( Func> deserializationFunction = null); ValueTask DeleteContentAsync(string relativeUrl); - + ValueTask DeleteContentAsync( string relativeUrl, CancellationToken cancellationToken); @@ -141,5 +142,8 @@ ValueTask DeleteContentAsync( string relativeUrl, CancellationToken cancellationToken, Func> deserializationFunction = null); + + ValueTask ExecuteHttpCallAsync( + Task function); } } \ No newline at end of file diff --git a/RESTFulSense/Clients/IRESTFulApiFactoryClient.cs b/RESTFulSense/Clients/IRESTFulApiFactoryClient.cs index 6c10ba6..4de60aa 100644 --- a/RESTFulSense/Clients/IRESTFulApiFactoryClient.cs +++ b/RESTFulSense/Clients/IRESTFulApiFactoryClient.cs @@ -6,6 +6,7 @@ using System; using System.IO; +using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -16,7 +17,7 @@ public interface IRESTFulApiFactoryClient ValueTask GetContentAsync( string relativeUrl, Func> deserializationFunction = null); - + ValueTask GetContentAsync( string relativeUrl, CancellationToken cancellationToken, @@ -74,7 +75,7 @@ ValueTask PostContentAsync( bool ignoreDefaultValues = false, Func> serializationFunction = null, Func> deserializationFunction = null); - + ValueTask PostFormAsync( string relativeUrl, TContent content, @@ -126,9 +127,9 @@ ValueTask PutContentAsync( Func> deserializationFunction = null); ValueTask DeleteContentAsync(string relativeUrl); - + ValueTask DeleteContentAsync( - string relativeUrl, + string relativeUrl, CancellationToken cancellationToken); ValueTask DeleteContentAsync( @@ -139,5 +140,8 @@ ValueTask DeleteContentAsync( string relativeUrl, CancellationToken cancellationToken, Func> deserializationFunction = null); + + ValueTask ExecuteHttpCallAsync( + Task function); } } \ No newline at end of file diff --git a/RESTFulSense/Clients/RESTFulApiClient.Conversions.cs b/RESTFulSense/Clients/RESTFulApiClient.Conversions.cs index 6f8b8bc..c784414 100644 --- a/RESTFulSense/Clients/RESTFulApiClient.Conversions.cs +++ b/RESTFulSense/Clients/RESTFulApiClient.Conversions.cs @@ -30,7 +30,7 @@ private async static ValueTask ConvertToHttpContent( content, mediaType, ignoreDefaultValues, serializationFunction), "text/plain" => ConvertToStringContent(content, mediaType), - + "application/octet-stream" => ConvertToStreamContent(content as Stream, mediaType), _ => ConvertToStringContent(content, mediaType) }; @@ -40,7 +40,7 @@ private static StringContent ConvertToStringContent(T content, string mediaTy { return new StringContent( content: content.ToString(), - encoding: Encoding.UTF8, + encoding: Encoding.UTF8, mediaType); } diff --git a/RESTFulSense/Clients/RESTFulApiClient.cs b/RESTFulSense/Clients/RESTFulApiClient.cs index afdedf0..b06fafc 100644 --- a/RESTFulSense/Clients/RESTFulApiClient.cs +++ b/RESTFulSense/Clients/RESTFulApiClient.cs @@ -22,7 +22,7 @@ namespace RESTFulSense.Clients public partial class RESTFulApiClient : HttpClient, IRESTFulApiClient { private IFormCoordinationService formCoordinationService; - + public RESTFulApiClient() { IServiceProvider serviceProvider = RegisterFormServices(); @@ -47,7 +47,7 @@ public async ValueTask GetContentAsync( CancellationToken cancellationToken, Func> deserializationFunction = null) { - HttpResponseMessage responseMessage = + HttpResponseMessage responseMessage = await GetAsync(relativeUrl, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); @@ -83,9 +83,9 @@ public async ValueTask PostContentWithNoResponseAsync( Func> serializationFunction = null) { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -103,9 +103,9 @@ public async ValueTask PostContentWithNoResponseAsync( Func> serializationFunction = null) { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -160,14 +160,14 @@ public async ValueTask PostContentWithStreamResponseAsync( bool ignoreDefaultValues = false, Func> serializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); - HttpResponseMessage responseMessage = + HttpResponseMessage responseMessage = await PostAsync(relativeUrl, contentString); await ValidationService.ValidateHttpResponseAsync(responseMessage); @@ -183,16 +183,16 @@ public async ValueTask PostContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); - HttpResponseMessage responseMessage = + HttpResponseMessage responseMessage = await PostAsync(relativeUrl, contentString); - + await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( @@ -208,11 +208,11 @@ public async ValueTask PostContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -270,21 +270,21 @@ public async ValueTask PutContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); - HttpResponseMessage responseMessage = + HttpResponseMessage responseMessage = await PutAsync(relativeUrl, contentString); await ValidationService.ValidateHttpResponseAsync (responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -297,14 +297,14 @@ public async ValueTask PutContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); - HttpResponseMessage responseMessage = + HttpResponseMessage responseMessage = await PutAsync(relativeUrl, contentString, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); @@ -321,16 +321,16 @@ public async ValueTask PutContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); - HttpResponseMessage responseMessage = + HttpResponseMessage responseMessage = await PutAsync(relativeUrl, contentString); - + await ValidationService.ValidateHttpResponseAsync( responseMessage); @@ -347,11 +347,11 @@ public async ValueTask PutContentAsync( Func> serializationFunction = null, Func> deserializationFunction = null) { - HttpContent contentString = + HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -407,7 +407,7 @@ public async ValueTask DeleteContentAsync( } public async ValueTask DeleteContentAsync( - string relativeUrl, + string relativeUrl, Func> deserializationFunction = null) { HttpResponseMessage responseMessage = await DeleteAsync(relativeUrl); @@ -442,5 +442,16 @@ private static async ValueTask DeserializeResponseContent( ? JsonConvert.DeserializeObject(responseString) : await deserializationFunction(responseString); } + + public async ValueTask ExecuteHttpCallAsync( + Task function) + { + HttpResponseMessage httpResponseMessage = + await function; + + await ValidationService.ValidateHttpResponseAsync(httpResponseMessage); + + return httpResponseMessage; + } } } \ No newline at end of file diff --git a/RESTFulSense/Clients/RESTFulApiFactoryClient.cs b/RESTFulSense/Clients/RESTFulApiFactoryClient.cs index ec90780..179bb11 100644 --- a/RESTFulSense/Clients/RESTFulApiFactoryClient.cs +++ b/RESTFulSense/Clients/RESTFulApiFactoryClient.cs @@ -88,9 +88,9 @@ public async ValueTask PostContentWithNoResponseAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -109,15 +109,15 @@ public async ValueTask PostContentWithNoResponseAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = await this.httpClient.PostAsync( - relativeUrl, - contentString, + relativeUrl, + contentString, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); @@ -169,15 +169,15 @@ public async ValueTask PostContentWithStreamResponseAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = await this.httpClient.PostAsync( - relativeUrl, - contentString, + relativeUrl, + contentString, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); @@ -195,9 +195,9 @@ public async ValueTask PostContentAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -220,21 +220,21 @@ public async ValueTask PostContentAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = await this.httpClient.PostAsync( - relativeUrl, - contentString, + relativeUrl, + contentString, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -248,9 +248,9 @@ public async ValueTask PutContentAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -259,7 +259,7 @@ await ConvertToHttpContent( await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -277,14 +277,14 @@ public async ValueTask PostFormAsync( HttpResponseMessage responseMessage = await this.httpClient.PostAsync( - relativeUrl, - multipartFormDataContent, + relativeUrl, + multipartFormDataContent, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } catch (FormCoordinationValidationException formCoordinationValidationException) @@ -315,21 +315,21 @@ public async ValueTask PutContentAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = await this.httpClient.PutAsync( - relativeUrl, - contentString, + relativeUrl, + contentString, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -343,9 +343,9 @@ public async ValueTask PutContentAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = @@ -354,7 +354,7 @@ await ConvertToHttpContent( await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -369,21 +369,21 @@ public async ValueTask PutContentAsync( { HttpContent contentString = await ConvertToHttpContent( - content, - mediaType, - ignoreDefaultValues, + content, + mediaType, + ignoreDefaultValues, serializationFunction); HttpResponseMessage responseMessage = await this.httpClient.PutAsync( - relativeUrl, - contentString, + relativeUrl, + contentString, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -397,7 +397,7 @@ public async ValueTask PutContentAsync( await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -408,15 +408,15 @@ public async ValueTask PutContentAsync( { HttpResponseMessage responseMessage = await this.httpClient.PutAsync( - relativeUrl, - content: default, + relativeUrl, + content: default, cancellationToken); await ValidationService.ValidateHttpResponseAsync( responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -429,12 +429,12 @@ public async ValueTask DeleteContentAsync(string relativeUrl) } public async ValueTask DeleteContentAsync( - string relativeUrl, + string relativeUrl, CancellationToken cancellationToken) { HttpResponseMessage responseMessage = await this.httpClient.DeleteAsync( - relativeUrl, + relativeUrl, cancellationToken); await ValidationService.ValidateHttpResponseAsync(responseMessage); @@ -451,7 +451,7 @@ await ValidationService.ValidateHttpResponseAsync( responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -466,7 +466,7 @@ public async ValueTask DeleteContentAsync( await ValidationService.ValidateHttpResponseAsync(responseMessage); return await DeserializeResponseContent( - responseMessage, + responseMessage, deserializationFunction); } @@ -474,12 +474,23 @@ private static async ValueTask DeserializeResponseContent( HttpResponseMessage responseMessage, Func> deserializationFunction = null) { - string responseString = + string responseString = await responseMessage.Content.ReadAsStringAsync(); return deserializationFunction == null ? JsonConvert.DeserializeObject(responseString) : await deserializationFunction(responseString); } + + public async ValueTask ExecuteHttpCallAsync( + Task function) + { + HttpResponseMessage httpResponseMessage = + await function; + + await ValidationService.ValidateHttpResponseAsync(httpResponseMessage); + + return httpResponseMessage; + } } } \ No newline at end of file diff --git a/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientDependencyException.cs b/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientDependencyException.cs index b7cd9cf..bf1dc64 100644 --- a/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientDependencyException.cs +++ b/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientDependencyException.cs @@ -13,7 +13,7 @@ public RESTFulApiClientDependencyException(Xeption innerException) message: "Form coordination dependency error occurred, fix the errors and try again.", innerException: innerException) { } - + public RESTFulApiClientDependencyException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientServiceException.cs b/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientServiceException.cs index cbd6abd..e187d2b 100644 --- a/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientServiceException.cs +++ b/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientServiceException.cs @@ -13,7 +13,7 @@ public RESTFulApiClientServiceException(Xeption innerException) message: "Api Client error occurred, contact support.", innerException: innerException) { } - + public RESTFulApiClientServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientValidationException.cs b/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientValidationException.cs index 059351a..84a77a3 100644 --- a/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientValidationException.cs +++ b/RESTFulSense/Models/Client/Exceptions/RESTFulApiClientValidationException.cs @@ -13,7 +13,7 @@ public RESTFulApiClientValidationException(Xeption innerException) message: "Api Client validation errors occurred, please try again.", innerException: innerException) { } - + public RESTFulApiClientValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FailedFormCoordinationServiceException.cs b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FailedFormCoordinationServiceException.cs index 668b552..9fe448f 100644 --- a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FailedFormCoordinationServiceException.cs +++ b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FailedFormCoordinationServiceException.cs @@ -14,7 +14,7 @@ public FailedFormCoordinationServiceException(Exception innerException) message: "Form coordination service error occurred, contact support.", innerException: innerException) { } - + public FailedFormCoordinationServiceException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyException.cs b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyException.cs index 1fa333b..ac4bd23 100644 --- a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyException.cs +++ b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyException.cs @@ -13,7 +13,7 @@ public FormCoordinationDependencyException(Xeption innerException) message: "Form coordination dependency error occurred, fix the errors and try again.", innerException: innerException) { } - + public FormCoordinationDependencyException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyValidationException.cs b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyValidationException.cs index e28e20b..78f08ad 100644 --- a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyValidationException.cs +++ b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationDependencyValidationException.cs @@ -13,7 +13,7 @@ public FormCoordinationDependencyValidationException(Xeption innerException) message: "Form coordination dependency validation error occurred, fix the errors and try again.", innerException: innerException) { } - + public FormCoordinationDependencyValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationServiceException.cs b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationServiceException.cs index ead3e04..612e82c 100644 --- a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationServiceException.cs +++ b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationServiceException.cs @@ -13,7 +13,7 @@ public FormCoordinationServiceException(Xeption innerException) message: "Form coordination service error occurred, contact support.", innerException: innerException) { } - + public FormCoordinationServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationValidationException.cs b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationValidationException.cs index f11d33c..bfd4ee4 100644 --- a/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationValidationException.cs +++ b/RESTFulSense/Models/Coordinations/Forms/Exceptions/FormCoordinationValidationException.cs @@ -13,7 +13,7 @@ public FormCoordinationValidationException(Xeption innerException) message: "Form coordination validation errors occurred, please try again.", innerException: innerException) { } - + public FormCoordinationValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Coordinations/Forms/Exceptions/NullObjectException.cs b/RESTFulSense/Models/Coordinations/Forms/Exceptions/NullObjectException.cs index 30253e9..d1b3782 100644 --- a/RESTFulSense/Models/Coordinations/Forms/Exceptions/NullObjectException.cs +++ b/RESTFulSense/Models/Coordinations/Forms/Exceptions/NullObjectException.cs @@ -11,7 +11,7 @@ public class NullObjectException : Xeption public NullObjectException() : base(message: "Object is null.") { } - + public NullObjectException(string message) : base(message) { } diff --git a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyException.cs b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyException.cs index 909bf83..be829ea 100644 --- a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyException.cs +++ b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyException.cs @@ -13,7 +13,7 @@ public AttributeDependencyException(Xeption innerException) : message: "Attribute dependency error occurred, contact support.", innerException: innerException) { } - + public AttributeDependencyException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyValidationException.cs b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyValidationException.cs index 3e7a70a..94a62a8 100644 --- a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeDependencyValidationException.cs @@ -14,7 +14,7 @@ public AttributeDependencyValidationException(Exception innerException) message: "Attribute dependency validation error occurred, fix errors and try again.", innerException: innerException) { } - + public AttributeDependencyValidationException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeServiceException.cs b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeServiceException.cs index 4ebd2ab..67dde59 100644 --- a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeServiceException.cs +++ b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeServiceException.cs @@ -13,7 +13,7 @@ public AttributeServiceException(Xeption innerException) message: "Attribute service error occurred, contact support.", innerException: innerException) { } - + public AttributeServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeValidationException.cs b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeValidationException.cs index 458eb96..ea067bf 100644 --- a/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeValidationException.cs +++ b/RESTFulSense/Models/Foundations/Attributes/Exceptions/AttributeValidationException.cs @@ -13,7 +13,7 @@ public AttributeValidationException(Xeption innerException) message: "Attribute validation error occurred, fix errors and try again.", innerException: innerException) { } - + public AttributeValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Attributes/Exceptions/FailedAttributeServiceException.cs b/RESTFulSense/Models/Foundations/Attributes/Exceptions/FailedAttributeServiceException.cs index c10735f..158db80 100644 --- a/RESTFulSense/Models/Foundations/Attributes/Exceptions/FailedAttributeServiceException.cs +++ b/RESTFulSense/Models/Foundations/Attributes/Exceptions/FailedAttributeServiceException.cs @@ -14,9 +14,9 @@ public FailedAttributeServiceException(Exception innerException) message: "Failed Attribute Service Exception occurred, please contact support for assistance.", innerException: innerException) { } - + public FailedAttributeServiceException(string message, Exception innerException) - : base(message,innerException) + : base(message, innerException) { } } } \ No newline at end of file diff --git a/RESTFulSense/Models/Foundations/Attributes/Exceptions/NullPropertyInfoException.cs b/RESTFulSense/Models/Foundations/Attributes/Exceptions/NullPropertyInfoException.cs index 6b4c916..64d3026 100644 --- a/RESTFulSense/Models/Foundations/Attributes/Exceptions/NullPropertyInfoException.cs +++ b/RESTFulSense/Models/Foundations/Attributes/Exceptions/NullPropertyInfoException.cs @@ -14,7 +14,7 @@ public NullPropertyInfoException(Exception innerException) message: "PropertyInfo is null, fix errors and try again.", innerException: innerException) { } - + public NullPropertyInfoException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Forms/Exceptions/FailedFormServiceException.cs b/RESTFulSense/Models/Foundations/Forms/Exceptions/FailedFormServiceException.cs index 55179a3..0e1be56 100644 --- a/RESTFulSense/Models/Foundations/Forms/Exceptions/FailedFormServiceException.cs +++ b/RESTFulSense/Models/Foundations/Forms/Exceptions/FailedFormServiceException.cs @@ -14,7 +14,7 @@ public FailedFormServiceException(Exception innerException) message: "Failed Form Service Exception occurred, please contact support for assistance.", innerException: innerException) { } - + public FailedFormServiceException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyException.cs b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyException.cs index 4afc049..97d18d1 100644 --- a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyException.cs +++ b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyException.cs @@ -13,7 +13,7 @@ public FormDependencyException(Xeption innerException) message: "Form dependency error occurred, contact support.", innerException: innerException) { } - + public FormDependencyException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyValidationException.cs b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyValidationException.cs index 467d02b..a2e01d6 100644 --- a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormDependencyValidationException.cs @@ -14,7 +14,7 @@ public FormDependencyValidationException(Exception innerException) message: "Form dependency validation error occurred, fix errors and try again.", innerException: innerException) { } - + public FormDependencyValidationException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormServiceException.cs b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormServiceException.cs index 2689519..f5cf475 100644 --- a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormServiceException.cs +++ b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormServiceException.cs @@ -13,7 +13,7 @@ public FormServiceException(Xeption innerException) message: "Form service error occurred, contact support.", innerException: innerException) { } - + public FormServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormValidationException.cs b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormValidationException.cs index 14ccac5..34bfc91 100644 --- a/RESTFulSense/Models/Foundations/Forms/Exceptions/FormValidationException.cs +++ b/RESTFulSense/Models/Foundations/Forms/Exceptions/FormValidationException.cs @@ -13,7 +13,7 @@ public FormValidationException(Xeption innerException) message: "Form validation error occurred, fix errors and try again.", innerException: innerException) { } - + public FormValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Forms/Exceptions/InvalidFormArgumentException.cs b/RESTFulSense/Models/Foundations/Forms/Exceptions/InvalidFormArgumentException.cs index da626a2..aadb5c4 100644 --- a/RESTFulSense/Models/Foundations/Forms/Exceptions/InvalidFormArgumentException.cs +++ b/RESTFulSense/Models/Foundations/Forms/Exceptions/InvalidFormArgumentException.cs @@ -11,7 +11,7 @@ public class InvalidFormArgumentException : Xeption public InvalidFormArgumentException() : base(message: "Invalid form arguments. Please fix the errors and try again.") { } - + public InvalidFormArgumentException(string message) : base(message) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyException.cs index 186b6b0..6f87fb5 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyException.cs @@ -14,7 +14,7 @@ public FailedPropertyDependencyException(Exception innerException) message: "Property dependency error occurred, contact support.", innerException: innerException) { } - + public FailedPropertyDependencyException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyValidationException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyValidationException.cs index b0052ec..2d7cf08 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyDependencyValidationException.cs @@ -14,7 +14,7 @@ public FailedPropertyDependencyValidationException(Exception innerException) message: "Failed property dependency validation error occurred, fix errors and try again.", innerException: innerException) { } - + public FailedPropertyDependencyValidationException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyServiceException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyServiceException.cs index aba56c0..06e09b8 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyServiceException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/FailedPropertyServiceException.cs @@ -14,7 +14,7 @@ public FailedPropertyServiceException(Exception innerException) message: "Failed Property Service Exception occurred, please contact support for assistance.", innerException: innerException) { } - + public FailedPropertyServiceException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/NullTypeException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/NullTypeException.cs index e434d96..aba40cd 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/NullTypeException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/NullTypeException.cs @@ -11,7 +11,7 @@ public class NullTypeException : Xeption public NullTypeException() : base(message: "Type is null.") { } - + public NullTypeException(string message) : base(message) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyException.cs index 3d4c9ba..82f2c59 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyException.cs @@ -13,7 +13,7 @@ public PropertyDependencyException(Xeption innerException) : message: "Property dependency error occurred, contact support.", innerException: innerException) { } - + public PropertyDependencyException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyValidationException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyValidationException.cs index 15c436d..2212ff0 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyDependencyValidationException.cs @@ -13,7 +13,7 @@ public PropertyDependencyValidationException(Xeption innerException) message: "Property dependency validation occurred, fix errors and try again.", innerException: innerException) { } - + public PropertyDependencyValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyServiceException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyServiceException.cs index 32db052..7200fcd 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyServiceException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyServiceException.cs @@ -13,7 +13,7 @@ public PropertyServiceException(Xeption innerException) message: "Property service error occurred, contact support.", innerException: innerException) { } - + public PropertyServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyValidationException.cs b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyValidationException.cs index 319d147..950458a 100644 --- a/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Properties/Exceptions/PropertyValidationException.cs @@ -13,7 +13,7 @@ public PropertyValidationException(Xeption innerException) message: "Property validation errors occurred, fix errors and try again.", innerException: innerException) { } - + public PropertyValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyException.cs index 60f0dea..f05d529 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyException.cs @@ -14,7 +14,7 @@ public FailedTypeDependencyException(Exception innerException) message: "Type dependency error occurred, contact support.", innerException: innerException) { } - + public FailedTypeDependencyException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyValidationException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyValidationException.cs index 3bcf767..1088986 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeDependencyValidationException.cs @@ -14,7 +14,7 @@ public FailedTypeDependencyValidationException(Exception innerException) message: "Failed type dependency validation error occurred, fix errors and try again.", innerException: innerException) { } - + public FailedTypeDependencyValidationException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeServiceException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeServiceException.cs index 4807fc8..09eeb97 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeServiceException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/FailedTypeServiceException.cs @@ -14,7 +14,7 @@ public FailedTypeServiceException(Exception innerException) message: "Failed Type Service Exception occurred, please contact support for assistance.", innerException: innerException) { } - + public FailedTypeServiceException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/NullObjectException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/NullObjectException.cs index 6e21ebe..de86d91 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/NullObjectException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/NullObjectException.cs @@ -11,7 +11,7 @@ public class NullObjectException : Xeption public NullObjectException() : base(message: "Object is null.") { } - + public NullObjectException(string message) : base(message) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyException.cs index 5d086dc..485a10c 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyException.cs @@ -13,7 +13,7 @@ public TypeDependencyException(Xeption innerException) message: "Type dependency error occurred, contact support.", innerException: innerException) { } - + public TypeDependencyException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyValidationException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyValidationException.cs index 6677e8e..f1b955b 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeDependencyValidationException.cs @@ -13,7 +13,7 @@ public TypeDependencyValidationException(Xeption innerException) message: "Type dependency validation occurred, fix errors and try again.", innerException: innerException) { } - + public TypeDependencyValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeServiceException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeServiceException.cs index 56a6101..f76b193 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeServiceException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeServiceException.cs @@ -13,7 +13,7 @@ public TypeServiceException(Xeption innerException) message: "Type service error occurred, contact support.", innerException: innerException) { } - + public TypeServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeValidationException.cs b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeValidationException.cs index aaa7dc7..f78c3a5 100644 --- a/RESTFulSense/Models/Foundations/Types/Exceptions/TypeValidationException.cs +++ b/RESTFulSense/Models/Foundations/Types/Exceptions/TypeValidationException.cs @@ -13,7 +13,7 @@ public TypeValidationException(Xeption innerException) message: "Type validation errors occurred, fix errors and try again.", innerException) { } - + public TypeValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Values/Exceptions/FailedValueServiceException.cs b/RESTFulSense/Models/Foundations/Values/Exceptions/FailedValueServiceException.cs index 92095da..b5310c3 100644 --- a/RESTFulSense/Models/Foundations/Values/Exceptions/FailedValueServiceException.cs +++ b/RESTFulSense/Models/Foundations/Values/Exceptions/FailedValueServiceException.cs @@ -14,7 +14,7 @@ public FailedValueServiceException(Exception innerException) message: "Failed Value Service Exception occurred, please contact support for assistance.", innerException: innerException) { } - + public FailedValueServiceException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyException.cs b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyException.cs index 8bdbbd2..22ef21d 100644 --- a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyException.cs +++ b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyException.cs @@ -13,7 +13,7 @@ public ValueDependencyException(Xeption innerException) message: "Value dependency error occurred, contact support.", innerException: innerException) { } - + public ValueDependencyException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyValidationException.cs b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyValidationException.cs index a7055ab..6137911 100644 --- a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyValidationException.cs +++ b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueDependencyValidationException.cs @@ -13,7 +13,7 @@ public ValueDependencyValidationException(Xeption innerException) message: "Value dependency validation occurred, fix errors and try again.", innerException: innerException) { } - + public ValueDependencyValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueServiceException.cs b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueServiceException.cs index e4fada8..3e3450b 100644 --- a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueServiceException.cs +++ b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueServiceException.cs @@ -13,7 +13,7 @@ public ValueServiceException(Xeption innerException) message: "Value service error occurred, contact support.", innerException: innerException) { } - + public ValueServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueValidationException.cs b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueValidationException.cs index 22aead5..7f03bd9 100644 --- a/RESTFulSense/Models/Foundations/Values/Exceptions/ValueValidationException.cs +++ b/RESTFulSense/Models/Foundations/Values/Exceptions/ValueValidationException.cs @@ -13,7 +13,7 @@ public ValueValidationException(Xeption innerException) message: "Value validation errors occurred, fix errors and try again.", innerException: innerException) { } - + public ValueValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FailedFormOrchestrationServiceException.cs b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FailedFormOrchestrationServiceException.cs index b76fe59..f3465b9 100644 --- a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FailedFormOrchestrationServiceException.cs +++ b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FailedFormOrchestrationServiceException.cs @@ -14,7 +14,7 @@ public FailedFormOrchestrationServiceException(Exception innerException) message: "Failed form orchestration service occurred, please contact support", innerException: innerException) { } - + public FailedFormOrchestrationServiceException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyException.cs b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyException.cs index c270337..e09e0da 100644 --- a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyException.cs +++ b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyException.cs @@ -14,7 +14,7 @@ public FormOrchestrationDependencyException(Exception innerException) message: "Form orchestration dependency error occurred, fix errors and try again.", innerException: innerException) { } - + public FormOrchestrationDependencyException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyValidationException.cs b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyValidationException.cs index d0acf3c..d653ab0 100644 --- a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyValidationException.cs +++ b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationDependencyValidationException.cs @@ -13,7 +13,7 @@ public FormOrchestrationDependencyValidationException(Xeption innerException) message: "Form orchestration dependency validation error occurred, fix the errors and try again.", innerException: innerException) { } - + public FormOrchestrationDependencyValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationServiceException.cs b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationServiceException.cs index fc0ac1d..d4a7a89 100644 --- a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationServiceException.cs +++ b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationServiceException.cs @@ -13,7 +13,7 @@ public FormOrchestrationServiceException(Xeption innerException) message: "Form orchestration service error occurred, contact support.", innerException: innerException) { } - + public FormOrchestrationServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationValidationException.cs b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationValidationException.cs index 4f74f44..106ec36 100644 --- a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationValidationException.cs +++ b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/FormOrchestrationValidationException.cs @@ -13,7 +13,7 @@ public FormOrchestrationValidationException(Xeption innerException) message: "Form orchestration validation errors occurred, please try again.", innerException: innerException) { } - + public FormOrchestrationValidationException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/NullFormModelException.cs b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/NullFormModelException.cs index 97942e5..2141199 100644 --- a/RESTFulSense/Models/Orchestrations/Forms/Exceptions/NullFormModelException.cs +++ b/RESTFulSense/Models/Orchestrations/Forms/Exceptions/NullFormModelException.cs @@ -12,7 +12,7 @@ public NullFormModelException() : base( message: "Form model is null. Please correct the errors and try again.") { } - + public NullFormModelException(string message) : base(message) { } diff --git a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/FailedPropertyOrchestrationException.cs b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/FailedPropertyOrchestrationException.cs index eaf833b..da69539 100644 --- a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/FailedPropertyOrchestrationException.cs +++ b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/FailedPropertyOrchestrationException.cs @@ -14,7 +14,7 @@ public FailedPropertyOrchestrationException(Exception innerException) message: "Failed property orchestration service exception occurred, please contact support.", innerException: innerException) { } - + public FailedPropertyOrchestrationException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullObjectException.cs b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullObjectException.cs index c436bd7..5585b40 100644 --- a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullObjectException.cs +++ b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullObjectException.cs @@ -14,7 +14,7 @@ public NullObjectException(Exception innerException) message: "Object is null, fix errors and try again.", innerException: innerException) { } - + public NullObjectException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullPropertyModelException.cs b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullPropertyModelException.cs index 8076dc2..7289b7a 100644 --- a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullPropertyModelException.cs +++ b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/NullPropertyModelException.cs @@ -14,7 +14,7 @@ public NullPropertyModelException(Exception innerException) message: "PropertyModel is null, fix errors and try again.", innerException: innerException) { } - + public NullPropertyModelException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyException.cs b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyException.cs index ae5cef6..05ad79f 100644 --- a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyException.cs +++ b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyException.cs @@ -14,7 +14,7 @@ public PropertyOrchestrationDependencyException(Exception innerException) message: "Property orchestration dependency error occurred, fix errors and try again.", innerException: innerException) { } - + public PropertyOrchestrationDependencyException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyValidationException.cs b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyValidationException.cs index 2cbe50e..10640d9 100644 --- a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyValidationException.cs +++ b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationDependencyValidationException.cs @@ -14,7 +14,7 @@ public PropertyOrchestrationDependencyValidationException(Exception innerExcepti message: "Property orchestration dependency validation error occurred, fix errors and try again.", innerException: innerException) { } - + public PropertyOrchestrationDependencyValidationException(string message, Exception innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationServiceException.cs b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationServiceException.cs index 8478039..4421dd4 100644 --- a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationServiceException.cs +++ b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationServiceException.cs @@ -13,7 +13,7 @@ public PropertyOrchestrationServiceException(Xeption innerException) message: "Property orchestration service error occurred, contact support.", innerException: innerException) { } - + public PropertyOrchestrationServiceException(string message, Xeption innerException) : base(message, innerException) { } diff --git a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationValidationException.cs b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationValidationException.cs index c21050e..0b76726 100644 --- a/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationValidationException.cs +++ b/RESTFulSense/Models/Orchestrations/Properties/Exceptions/PropertyOrchestrationValidationException.cs @@ -14,7 +14,7 @@ public PropertyOrchestrationValidationException(Exception innerException) message: "Property validation error occurred, fix errors and try again.", innerException: innerException) { } - + public PropertyOrchestrationValidationException(string message, Exception innerException) : base(message, innerException) { }