diff --git a/GitReleaseNotes.txt b/GitReleaseNotes.txt index 51d10321..863ca44b 100644 --- a/GitReleaseNotes.txt +++ b/GitReleaseNotes.txt @@ -1,5 +1,5 @@ https://github.com/GitTools/GitReleaseNotes -GitReleaseNotes.exe . /OutputFile CHANGELOG.md /Version 1.0.4.17 +GitReleaseNotes.exe . /OutputFile CHANGELOG.md /Version 1.0.4.18 GitReleaseNotes.exe . /OutputFile CHANGELOG.md /allTags diff --git a/appveyor.yml b/appveyor.yml index 0d9c49ac..e71667f4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -51,7 +51,7 @@ test_script: - nuget.exe install coveralls.net -ExcludeVersion -Version 0.7.0 - pip install codecov -- cmd: '"OpenCover\tools\OpenCover.Console.exe" -target:dotnet.exe -targetargs:"test test\WireMock.Net.Tests\WireMock.Net.Tests.csproj --no-build --framework net452" -output:coverage.xml -returntargetcode -register:user -filter:"+[WireMock.Net]* -[WireMock.Net.Tests*]*" -nodefaultfilters -returntargetcode -oldstyle -searchdirs:".\test\WireMock.Net.Tests\bin\%CONFIGURATION%\net452"' +- cmd: '"OpenCover\tools\OpenCover.Console.exe" -target:dotnet.exe -targetargs:"test test\WireMock.Net.Tests\WireMock.Net.Tests.csproj --no-build --framework net452" -output:coverage.xml -returntargetcode -register:user -filter:"+[WireMock.Net]* +[WireMock.Net.StandAlone]* -[WireMock.Net.Tests*]*" -nodefaultfilters -returntargetcode -oldstyle -searchdirs:".\test\WireMock.Net.Tests\bin\%CONFIGURATION%\net452"' - codecov -f "coverage.xml" - coveralls.net\tools\csmacnz.Coveralls.exe --opencover -i .\coverage.xml diff --git a/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs b/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs index b65cf86c..535b65a6 100644 --- a/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs +++ b/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs @@ -59,10 +59,20 @@ namespace WireMock.Net.ConsoleApplication server .Given(Request.Create() - .WithPath("/httpbin") + .UsingPost() + .WithHeader("postmanecho", "post") ) .RespondWith(Response.Create() - .WithProxy(new ProxyAndRecordSettings { Url = "http://httpbin.org" }) + .WithProxy(new ProxyAndRecordSettings { Url = "http://postman-echo.com/post" }) + ); + + server + .Given(Request.Create() + .UsingGet() + .WithHeader("postmanecho", "get") + ) + .RespondWith(Response.Create() + .WithProxy(new ProxyAndRecordSettings { Url = "http://postman-echo.com/get" }) ); server diff --git a/examples/WireMock.Net.Console.Proxy.NETCoreApp2/WireMock.Net.Console.Proxy.NETCoreApp2.csproj b/examples/WireMock.Net.Console.Proxy.NETCoreApp2/WireMock.Net.Console.Proxy.NETCoreApp2.csproj index b13d1274..9e382bda 100644 --- a/examples/WireMock.Net.Console.Proxy.NETCoreApp2/WireMock.Net.Console.Proxy.NETCoreApp2.csproj +++ b/examples/WireMock.Net.Console.Proxy.NETCoreApp2/WireMock.Net.Console.Proxy.NETCoreApp2.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.0 + netcoreapp2.1 ../../WireMock.Net-Logo.ico diff --git a/report/coverage.info b/report/coverage.info index 8f3209c9..9fca7f45 100644 --- a/report/coverage.info +++ b/report/coverage.info @@ -1,82 +1,82 @@ -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Mapping.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Mapping.cs FN:14,System.Guid WireMock.Mapping::get_Guid() FNDA:541,System.Guid WireMock.Mapping::get_Guid() DA:15,541 -FN:19,System.String WireMock.Mapping::get_Title() +FN:17,System.String WireMock.Mapping::get_Title() FNDA:42,System.String WireMock.Mapping::get_Title() -DA:20,42 -FN:24,System.String WireMock.Mapping::get_Path() +DA:18,42 +FN:20,System.String WireMock.Mapping::get_Path() FNDA:250,System.String WireMock.Mapping::get_Path() -DA:25,250 -FN:29,System.Int32 WireMock.Mapping::get_Priority() +DA:21,250 +FN:23,System.Int32 WireMock.Mapping::get_Priority() FNDA:118,System.Int32 WireMock.Mapping::get_Priority() -DA:30,118 -FN:35,System.String WireMock.Mapping::get_Scenario() -FNDA:1014,System.String WireMock.Mapping::get_Scenario() -DA:36,1014 -FN:41,System.String WireMock.Mapping::get_ExecutionConditionState() +DA:24,118 +FN:27,System.String WireMock.Mapping::get_Scenario() +FNDA:1016,System.String WireMock.Mapping::get_Scenario() +DA:28,1016 +FN:31,System.String WireMock.Mapping::get_ExecutionConditionState() FNDA:37,System.String WireMock.Mapping::get_ExecutionConditionState() -DA:42,37 -FN:48,System.String WireMock.Mapping::get_NextState() -FNDA:28,System.String WireMock.Mapping::get_NextState() -DA:49,28 -FN:53,WireMock.Matchers.Request.IRequestMatcher WireMock.Mapping::get_RequestMatcher() +DA:32,37 +FN:35,System.String WireMock.Mapping::get_NextState() +FNDA:29,System.String WireMock.Mapping::get_NextState() +DA:36,29 +FN:38,WireMock.Matchers.Request.IRequestMatcher WireMock.Mapping::get_RequestMatcher() FNDA:284,WireMock.Matchers.Request.IRequestMatcher WireMock.Mapping::get_RequestMatcher() -DA:54,284 -FN:58,WireMock.ResponseProviders.IResponseProvider WireMock.Mapping::get_Provider() +DA:39,284 +FN:41,WireMock.ResponseProviders.IResponseProvider WireMock.Mapping::get_Provider() FNDA:323,WireMock.ResponseProviders.IResponseProvider WireMock.Mapping::get_Provider() -DA:59,323 -FN:63,System.Boolean WireMock.Mapping::get_IsStartState() -FNDA:8,System.Boolean WireMock.Mapping::get_IsStartState() -DA:64,8 -BRDA:64,6,0,8 -BRDA:64,14,0,8 -BRDA:64,22,0,5 -BRDA:64,14,1,3 -BRDA:64,22,1,3 -BRDA:64,6,1,0 -FN:107,WireMock.Matchers.Request.RequestMatchResult WireMock.Mapping::GetRequestMatchResult(WireMock.RequestMessage,System.String) -FNDA:279,WireMock.Matchers.Request.RequestMatchResult WireMock.Mapping::GetRequestMatchResult(WireMock.RequestMessage,System.String) -DA:108,279 -DA:109,279 -DA:111,279 -DA:114,279 -DA:115,30 -DA:116,30 -DA:117,30 -DA:125,30 -DA:127,279 -DA:128,279 -BRDA:114,32,0,30 -BRDA:114,32,1,279 -FN:135,System.Boolean WireMock.Mapping::get_IsAdminInterface() +DA:42,323 +FN:44,System.Boolean WireMock.Mapping::get_IsStartState() +FNDA:9,System.Boolean WireMock.Mapping::get_IsStartState() +DA:45,9 +BRDA:45,6,0,9 +BRDA:45,14,0,9 +BRDA:45,22,0,5 +BRDA:45,14,1,4 +BRDA:45,22,1,4 +BRDA:45,6,1,0 +FN:47,System.Boolean WireMock.Mapping::get_IsAdminInterface() FNDA:110,System.Boolean WireMock.Mapping::get_IsAdminInterface() -DA:136,110 -BRDA:136,11,0,86 -BRDA:136,24,0,86 -BRDA:136,11,1,24 -BRDA:136,24,1,24 -FN:77,System.Void WireMock.Mapping::.ctor(System.Guid,System.String,System.String,WireMock.Matchers.Request.IRequestMatcher,WireMock.ResponseProviders.IResponseProvider,System.Int32,System.String,System.String,System.String) +DA:48,110 +BRDA:48,11,0,86 +BRDA:48,24,0,86 +BRDA:48,11,1,24 +BRDA:48,24,1,24 +FN:82,WireMock.Matchers.Request.RequestMatchResult WireMock.Mapping::GetRequestMatchResult(WireMock.RequestMessage,System.String) +FNDA:279,WireMock.Matchers.Request.RequestMatchResult WireMock.Mapping::GetRequestMatchResult(WireMock.RequestMessage,System.String) +DA:83,279 +DA:84,279 +DA:86,279 +DA:89,279 +DA:90,30 +DA:91,30 +DA:92,30 +DA:100,30 +DA:102,279 +DA:103,279 +BRDA:89,32,0,30 +BRDA:89,32,1,279 +FN:61,System.Void WireMock.Mapping::.ctor(System.Guid,System.String,System.String,WireMock.Matchers.Request.IRequestMatcher,WireMock.ResponseProviders.IResponseProvider,System.Int32,System.String,System.String,System.String) FNDA:250,System.Void WireMock.Mapping::.ctor(System.Guid,System.String,System.String,WireMock.Matchers.Request.IRequestMatcher,WireMock.ResponseProviders.IResponseProvider,System.Int32,System.String,System.String,System.String) -DA:78,250 -DA:79,250 -DA:80,250 -DA:81,250 -DA:82,250 -DA:83,250 -DA:84,250 -DA:85,250 -DA:86,250 -DA:87,250 -DA:88,250 -DA:89,250 -FN:96,System.Void WireMock.Mapping/d__31::MoveNext() -FNDA:35,System.Void WireMock.Mapping/d__31::MoveNext() -DA:97,35 -DA:98,35 -DA:99,35 -BRDA:98,50,0,1 -BRDA:98,50,1,35 +DA:62,250 +DA:63,250 +DA:64,250 +DA:65,250 +DA:66,250 +DA:67,250 +DA:68,250 +DA:69,250 +DA:70,250 +DA:71,250 +DA:72,250 +DA:73,250 +FN:76,System.Void WireMock.Mapping/d__33::MoveNext() +FNDA:35,System.Void WireMock.Mapping/d__33::MoveNext() +DA:77,35 +DA:78,35 +DA:79,35 +BRDA:78,50,0,1 +BRDA:78,50,1,35 LF:36 LH:36 BRF:14 @@ -84,22 +84,22 @@ BRH:13 FNF:14 FNH:14 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\RequestMessage.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestMessage.cs FN:20,System.String WireMock.RequestMessage::get_ClientIP() FNDA:60,System.String WireMock.RequestMessage::get_ClientIP() DA:21,60 FN:25,System.String WireMock.RequestMessage::get_Url() -FNDA:61,System.String WireMock.RequestMessage::get_Url() -DA:26,61 +FNDA:60,System.String WireMock.RequestMessage::get_Url() +DA:26,60 FN:30,System.String WireMock.RequestMessage::get_AbsoluteUrl() -FNDA:55,System.String WireMock.RequestMessage::get_AbsoluteUrl() -DA:31,55 +FNDA:54,System.String WireMock.RequestMessage::get_AbsoluteUrl() +DA:31,54 FN:35,System.DateTime WireMock.RequestMessage::get_DateTime() FNDA:101,System.DateTime WireMock.RequestMessage::get_DateTime() DA:36,101 FN:40,System.String WireMock.RequestMessage::get_Path() -FNDA:616,System.String WireMock.RequestMessage::get_Path() -DA:41,616 +FNDA:615,System.String WireMock.RequestMessage::get_Path() +DA:41,615 FN:45,System.String WireMock.RequestMessage::get_AbsolutePath() FNDA:255,System.String WireMock.RequestMessage::get_AbsolutePath() DA:46,255 @@ -113,14 +113,14 @@ FN:60,System.String WireMock.RequestMessage::get_Method() FNDA:350,System.String WireMock.RequestMessage::get_Method() DA:61,350 FN:65,System.Collections.Generic.IDictionary`2> WireMock.RequestMessage::get_Headers() -FNDA:189,System.Collections.Generic.IDictionary`2> WireMock.RequestMessage::get_Headers() -DA:66,189 +FNDA:188,System.Collections.Generic.IDictionary`2> WireMock.RequestMessage::get_Headers() +DA:66,188 FN:70,System.Collections.Generic.IDictionary`2 WireMock.RequestMessage::get_Cookies() FNDA:74,System.Collections.Generic.IDictionary`2 WireMock.RequestMessage::get_Cookies() DA:71,74 FN:75,System.Collections.Generic.IDictionary`2> WireMock.RequestMessage::get_Query() -FNDA:104,System.Collections.Generic.IDictionary`2> WireMock.RequestMessage::get_Query() -DA:76,104 +FNDA:103,System.Collections.Generic.IDictionary`2> WireMock.RequestMessage::get_Query() +DA:76,103 FN:80,System.String WireMock.RequestMessage::get_RawQuery() FNDA:200,System.String WireMock.RequestMessage::get_RawQuery() DA:81,200 @@ -128,11 +128,11 @@ FN:85,System.String WireMock.RequestMessage::get_Body() FNDA:107,System.String WireMock.RequestMessage::get_Body() DA:86,107 FN:90,System.Object WireMock.RequestMessage::get_BodyAsJson() -FNDA:302,System.Object WireMock.RequestMessage::get_BodyAsJson() -DA:91,302 +FNDA:300,System.Object WireMock.RequestMessage::get_BodyAsJson() +DA:91,300 FN:95,System.Byte[] WireMock.RequestMessage::get_BodyAsBytes() -FNDA:271,System.Byte[] WireMock.RequestMessage::get_BodyAsBytes() -DA:96,271 +FNDA:270,System.Byte[] WireMock.RequestMessage::get_BodyAsBytes() +DA:96,270 FN:100,System.String WireMock.RequestMessage::get_Host() FNDA:201,System.String WireMock.RequestMessage::get_Host() DA:101,201 @@ -211,7 +211,7 @@ DA:142,200 DA:143,200 DA:145,200 DA:146,200 -DA:147,199 +DA:147,200 DA:148,200 DA:150,200 DA:151,200 @@ -219,8 +219,8 @@ DA:153,200 DA:154,200 DA:155,200 DA:156,200 -DA:158,365 -DA:159,199 +DA:158,366 +DA:159,200 DA:160,200 DA:161,200 DA:162,200 @@ -245,40 +245,40 @@ BRH:27 FNF:24 FNH:24 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseMessage.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessage.cs FN:16,System.Collections.Generic.IDictionary`2> WireMock.ResponseMessage::get_Headers() -FNDA:564,System.Collections.Generic.IDictionary`2> WireMock.ResponseMessage::get_Headers() -DA:17,564 +FNDA:562,System.Collections.Generic.IDictionary`2> WireMock.ResponseMessage::get_Headers() +DA:17,562 FN:21,System.Int32 WireMock.ResponseMessage::get_StatusCode() -FNDA:465,System.Int32 WireMock.ResponseMessage::get_StatusCode() -DA:22,465 +FNDA:464,System.Int32 WireMock.ResponseMessage::get_StatusCode() +DA:22,464 FN:26,System.String WireMock.ResponseMessage::get_BodyOriginal() -FNDA:73,System.String WireMock.ResponseMessage::get_BodyOriginal() -DA:27,73 +FNDA:72,System.String WireMock.ResponseMessage::get_BodyOriginal() +DA:27,72 FN:31,System.String WireMock.ResponseMessage::get_BodyDestination() FNDA:123,System.String WireMock.ResponseMessage::get_BodyDestination() DA:32,123 FN:36,System.String WireMock.ResponseMessage::get_Body() -FNDA:251,System.String WireMock.ResponseMessage::get_Body() -DA:37,251 +FNDA:249,System.String WireMock.ResponseMessage::get_Body() +DA:37,249 FN:41,System.Object WireMock.ResponseMessage::get_BodyAsJson() -FNDA:290,System.Object WireMock.ResponseMessage::get_BodyAsJson() -DA:42,290 +FNDA:288,System.Object WireMock.ResponseMessage::get_BodyAsJson() +DA:42,288 FN:46,System.Nullable`1 WireMock.ResponseMessage::get_BodyAsJsonIndented() FNDA:35,System.Nullable`1 WireMock.ResponseMessage::get_BodyAsJsonIndented() DA:47,35 FN:51,System.Byte[] WireMock.ResponseMessage::get_BodyAsBytes() -FNDA:168,System.Byte[] WireMock.ResponseMessage::get_BodyAsBytes() -DA:52,168 +FNDA:166,System.Byte[] WireMock.ResponseMessage::get_BodyAsBytes() +DA:52,166 FN:56,System.String WireMock.ResponseMessage::get_BodyAsFile() -FNDA:110,System.String WireMock.ResponseMessage::get_BodyAsFile() -DA:57,110 +FNDA:108,System.String WireMock.ResponseMessage::get_BodyAsFile() +DA:57,108 FN:61,System.Nullable`1 WireMock.ResponseMessage::get_BodyAsFileIsCached() FNDA:59,System.Nullable`1 WireMock.ResponseMessage::get_BodyAsFileIsCached() DA:62,59 FN:66,System.Text.Encoding WireMock.ResponseMessage::get_BodyEncoding() -FNDA:483,System.Text.Encoding WireMock.ResponseMessage::get_BodyEncoding() -DA:67,483 +FNDA:481,System.Text.Encoding WireMock.ResponseMessage::get_BodyEncoding() +DA:67,481 FN:74,System.Void WireMock.ResponseMessage::AddHeader(System.String,System.String) FNDA:0,System.Void WireMock.ResponseMessage::AddHeader(System.String,System.String) DA:75,0 @@ -302,7 +302,7 @@ BRH:1 FNF:13 FNH:12 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseMessageBuilder.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessageBuilder.cs FN:14,WireMock.ResponseMessage WireMock.ResponseMessageBuilder::Create(System.String,System.Int32,System.Nullable`1) FNDA:18,WireMock.ResponseMessage WireMock.ResponseMessageBuilder::Create(System.String,System.Int32,System.Nullable`1) DA:15,18 @@ -327,7 +327,7 @@ BRH:2 FNF:2 FNH:2 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ScenarioState.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ScenarioState.cs FN:10,System.String WireMock.ScenarioState::get_Name() FNDA:7,System.String WireMock.ScenarioState::get_Name() DA:11,7 @@ -347,7 +347,7 @@ BRH:0 FNF:4 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Validation\Check.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\Check.cs FN:19,T WireMock.Validation.Check::Condition(T,System.Predicate`1,System.String) FNDA:24,T WireMock.Validation.Check::Condition(T,System.Predicate`1,System.String) DA:20,24 @@ -362,16 +362,16 @@ DA:32,23 BRDA:24,37,0,1 BRDA:24,37,1,23 FN:35,T WireMock.Validation.Check::NotNull(T,System.String) -FNDA:4004,T WireMock.Validation.Check::NotNull(T,System.String) -DA:36,4004 -DA:37,4004 +FNDA:4052,T WireMock.Validation.Check::NotNull(T,System.String) +DA:36,4052 +DA:37,4053 DA:38,2 DA:39,2 DA:41,2 -DA:44,4002 -DA:45,4002 +DA:44,4050 +DA:45,4051 BRDA:37,12,0,2 -BRDA:37,12,1,4002 +BRDA:37,12,1,4050 FN:48,T WireMock.Validation.Check::NotNull(T,System.String,System.String) FNDA:0,T WireMock.Validation.Check::NotNull(T,System.String,System.String) DA:49,0 @@ -385,10 +385,10 @@ DA:59,0 BRDA:50,12,0,0 BRDA:50,12,1,0 FN:62,System.Collections.Generic.IList`1 WireMock.Validation.Check::NotNullOrEmpty(System.Collections.Generic.IList`1,System.String) -FNDA:456,System.Collections.Generic.IList`1 WireMock.Validation.Check::NotNullOrEmpty(System.Collections.Generic.IList`1,System.String) -DA:63,456 -DA:64,456 -DA:66,456 +FNDA:455,System.Collections.Generic.IList`1 WireMock.Validation.Check::NotNullOrEmpty(System.Collections.Generic.IList`1,System.String) +DA:63,455 +DA:64,455 +DA:66,455 DA:67,0 DA:68,0 DA:70,0 @@ -466,7 +466,7 @@ BRH:13 FNF:8 FNH:5 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs FN:12,System.String WireMock.Validation.CoreStrings::ArgumentPropertyNull(System.String,System.String) FNDA:0,System.String WireMock.Validation.CoreStrings::ArgumentPropertyNull(System.String,System.String) DA:13,0 @@ -494,7 +494,7 @@ BRH:0 FNF:4 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyData.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\BodyData.cs FN:12,System.Text.Encoding WireMock.Util.BodyData::get_Encoding() FNDA:93,System.Text.Encoding WireMock.Util.BodyData::get_Encoding() DA:13,93 @@ -514,7 +514,7 @@ BRH:0 FNF:4 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyParser.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\BodyParser.cs FN:12,System.Void WireMock.Util.BodyParser::.cctor() FNDA:1,System.Void WireMock.Util.BodyParser::.cctor() DA:13,1 @@ -618,7 +618,7 @@ BRH:11 FNF:6 FNH:5 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\ConcurentObservableCollection.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\ConcurentObservableCollection.cs FN:33,System.Void WireMock.Util.ConcurentObservableCollection`1::ClearItems() FNDA:1,System.Void WireMock.Util.ConcurentObservableCollection`1::ClearItems() DA:34,1 @@ -676,7 +676,7 @@ BRH:0 FNF:8 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\DictionaryExtensions.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\DictionaryExtensions.cs FN:20,System.Void WireMock.Util.DictionaryExtensions::Loop(System.Collections.Generic.IDictionary`2,System.Action`2) FNDA:0,System.Void WireMock.Util.DictionaryExtensions::Loop(System.Collections.Generic.IDictionary`2,System.Action`2) DA:21,0 @@ -700,7 +700,7 @@ BRH:0 FNF:1 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\EnhancedFileSystemWatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\EnhancedFileSystemWatcher.cs FN:35,System.Int32 WireMock.Util.EnhancedFileSystemWatcher::get_Interval() FNDA:0,System.Int32 WireMock.Util.EnhancedFileSystemWatcher::get_Interval() DA:36,0 @@ -853,7 +853,7 @@ BRH:0 FNF:16 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\FileHelper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\FileHelper.cs FN:14,System.String WireMock.Util.FileHelper::ReadAllTextWithRetryAndDelay(WireMock.Handlers.IFileSystemHandler,System.String) FNDA:2,System.String WireMock.Util.FileHelper::ReadAllTextWithRetryAndDelay(WireMock.Handlers.IFileSystemHandler,System.String) DA:15,2 @@ -879,7 +879,7 @@ BRH:2 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\JsonUtils.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\JsonUtils.cs FN:11,T WireMock.Util.JsonUtils::ParseJTokenToObject(System.Object) FNDA:11,T WireMock.Util.JsonUtils::ParseJTokenToObject(System.Object) DA:12,11 @@ -1016,7 +1016,7 @@ BRH:33 FNF:6 FNH:6 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\PortUtils.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\PortUtils.cs FN:18,System.Int32 WireMock.Util.PortUtils::FindFreeTcpPort() FNDA:46,System.Int32 WireMock.Util.PortUtils::FindFreeTcpPort() DA:19,46 @@ -1057,7 +1057,7 @@ BRH:4 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\RegexUtils.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\RegexUtils.cs FN:8,System.Collections.Generic.Dictionary`2 WireMock.Util.RegexUtils::GetNamedGroups(System.Text.RegularExpressions.Regex,System.String) FNDA:3,System.Collections.Generic.Dictionary`2 WireMock.Util.RegexUtils::GetNamedGroups(System.Text.RegularExpressions.Regex,System.String) DA:9,3 @@ -1083,7 +1083,7 @@ BRH:4 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\UrlUtils.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\UrlUtils.cs FN:14,WireMock.Models.UrlDetails WireMock.Util.UrlUtils::Parse(System.Uri,Microsoft.AspNetCore.Http.PathString) FNDA:51,WireMock.Models.UrlDetails WireMock.Util.UrlUtils::Parse(System.Uri,Microsoft.AspNetCore.Http.PathString) DA:15,51 @@ -1114,7 +1114,7 @@ BRH:4 FNF:2 FNH:2 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\WireMockList.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\WireMockList.cs FN:39,System.String WireMock.Util.WireMockList`1::ToString() FNDA:11,System.String WireMock.Util.WireMockList`1::ToString() DA:40,11 @@ -1130,8 +1130,8 @@ DA:18,30 FN:23,System.Void WireMock.Util.WireMockList`1::.ctor(T[]) FNDA:206,System.Void WireMock.Util.WireMockList`1::.ctor(T[]) DA:24,206 -DA:25,205 -DA:26,205 +DA:25,206 +DA:26,206 FN:31,System.Void WireMock.Util.WireMockList`1::.ctor(System.Collections.Generic.IEnumerable`1) FNDA:0,System.Void WireMock.Util.WireMockList`1::.ctor(System.Collections.Generic.IEnumerable`1) DA:32,0 @@ -1144,7 +1144,7 @@ BRH:1 FNF:4 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsHelpers.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsHelpers.cs FN:5,System.Void WireMock.Transformers.HandlebarsHelpers::Register() FNDA:1,System.Void WireMock.Transformers.HandlebarsHelpers::Register() DA:6,1 @@ -1159,7 +1159,7 @@ BRH:0 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsJsonPath.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsJsonPath.cs FN:12,System.Void WireMock.Transformers.HandleBarsJsonPath::Register() FNDA:1,System.Void WireMock.Transformers.HandleBarsJsonPath::Register() DA:13,1 @@ -1230,7 +1230,7 @@ BRH:16 FNF:2 FNH:2 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsLinq.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsLinq.cs FN:14,System.Void WireMock.Transformers.HandleBarsLinq::Register() FNDA:1,System.Void WireMock.Transformers.HandleBarsLinq::Register() DA:15,1 @@ -1306,7 +1306,7 @@ BRH:15 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsRegex.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsRegex.cs FN:12,System.Void WireMock.Transformers.HandleBarsRegex::Register() FNDA:1,System.Void WireMock.Transformers.HandleBarsRegex::Register() DA:13,1 @@ -1375,7 +1375,7 @@ BRH:19 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\ResponseMessageTransformer.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\ResponseMessageTransformer.cs FN:18,WireMock.ResponseMessage WireMock.Transformers.ResponseMessageTransformer::Transform(WireMock.RequestMessage,WireMock.ResponseMessage) FNDA:32,WireMock.ResponseMessage WireMock.Transformers.ResponseMessageTransformer::Transform(WireMock.RequestMessage,WireMock.ResponseMessage) DA:19,32 @@ -1503,7 +1503,7 @@ BRH:26 FNF:5 FNH:5 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Settings\FluentMockServerSettings.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Settings\FluentMockServerSettings.cs FN:15,System.Nullable`1 WireMock.Settings.FluentMockServerSettings::get_Port() FNDA:123,System.Nullable`1 WireMock.Settings.FluentMockServerSettings::get_Port() DA:16,123 @@ -1562,7 +1562,7 @@ BRH:0 FNF:17 FNH:17 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Settings\ProxyAndRecordSettings.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Settings\ProxyAndRecordSettings.cs FN:11,System.String WireMock.Settings.ProxyAndRecordSettings::get_Url() FNDA:4,System.String WireMock.Settings.ProxyAndRecordSettings::get_Url() DA:12,4 @@ -1585,7 +1585,7 @@ BRH:0 FNF:5 FNH:5 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.Admin.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.Admin.cs FN:58,System.Void WireMock.Server.FluentMockServer::InitAdmin() FNDA:11,System.Void WireMock.Server.FluentMockServer::InitAdmin() DA:59,11 @@ -2352,67 +2352,66 @@ BRH:99 FNF:33 FNH:19 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.cs -FN:37,System.Boolean WireMock.Server.FluentMockServer::get_IsStarted() +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.cs +FN:38,System.Boolean WireMock.Server.FluentMockServer::get_IsStarted() FNDA:0,System.Boolean WireMock.Server.FluentMockServer::get_IsStarted() -DA:38,0 -BRDA:38,6,0,0 -BRDA:38,6,1,0 -FN:43,System.Collections.Generic.List`1 WireMock.Server.FluentMockServer::get_Ports() +DA:39,0 +BRDA:39,6,0,0 +BRDA:39,6,1,0 +FN:44,System.Collections.Generic.List`1 WireMock.Server.FluentMockServer::get_Ports() FNDA:20,System.Collections.Generic.List`1 WireMock.Server.FluentMockServer::get_Ports() -DA:44,20 -FN:49,System.String[] WireMock.Server.FluentMockServer::get_Urls() +DA:45,20 +FN:50,System.String[] WireMock.Server.FluentMockServer::get_Urls() FNDA:64,System.String[] WireMock.Server.FluentMockServer::get_Urls() -DA:50,64 -FN:55,System.Collections.Generic.IEnumerable`1 WireMock.Server.FluentMockServer::get_Mappings() +DA:51,64 +FN:56,System.Collections.Generic.IEnumerable`1 WireMock.Server.FluentMockServer::get_Mappings() FNDA:18,System.Collections.Generic.IEnumerable`1 WireMock.Server.FluentMockServer::get_Mappings() -DA:56,18 -FN:61,System.Collections.Concurrent.ConcurrentDictionary`2 WireMock.Server.FluentMockServer::get_Scenarios() +DA:57,18 +FN:62,System.Collections.Concurrent.ConcurrentDictionary`2 WireMock.Server.FluentMockServer::get_Scenarios() FNDA:13,System.Collections.Concurrent.ConcurrentDictionary`2 WireMock.Server.FluentMockServer::get_Scenarios() -DA:62,13 -FN:68,System.Void WireMock.Server.FluentMockServer::Dispose() +DA:63,13 +FN:69,System.Void WireMock.Server.FluentMockServer::Dispose() FNDA:0,System.Void WireMock.Server.FluentMockServer::Dispose() -DA:69,0 DA:70,0 DA:71,0 DA:72,0 -FN:78,System.Void WireMock.Server.FluentMockServer::Dispose(System.Boolean) +DA:73,0 +FN:79,System.Void WireMock.Server.FluentMockServer::Dispose(System.Boolean) FNDA:0,System.Void WireMock.Server.FluentMockServer::Dispose(System.Boolean) -DA:79,0 DA:80,0 DA:81,0 DA:82,0 DA:83,0 DA:84,0 -BRDA:80,12,0,0 -BRDA:80,12,1,0 -FN:94,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(WireMock.Settings.IFluentMockServerSettings) +DA:85,0 +BRDA:81,12,0,0 +BRDA:81,12,1,0 +FN:95,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(WireMock.Settings.IFluentMockServerSettings) FNDA:16,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(WireMock.Settings.IFluentMockServerSettings) -DA:95,16 DA:96,16 -DA:98,16 +DA:97,16 DA:99,16 -FN:108,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.Nullable`1,System.Boolean) +DA:100,16 +FN:109,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.Nullable`1,System.Boolean) FNDA:26,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.Nullable`1,System.Boolean) -DA:109,26 DA:110,26 DA:111,26 DA:112,26 DA:113,26 DA:114,26 DA:115,26 -FN:123,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.String[]) +DA:116,25 +FN:124,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.String[]) FNDA:1,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.String[]) -DA:124,1 DA:125,1 -DA:127,1 +DA:126,1 DA:128,1 DA:129,1 DA:130,1 DA:131,1 -FN:140,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.Nullable`1,System.Boolean) +DA:132,1 +FN:141,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.Nullable`1,System.Boolean) FNDA:4,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.Nullable`1,System.Boolean) -DA:141,4 DA:142,4 DA:143,4 DA:144,4 @@ -2420,250 +2419,251 @@ DA:145,4 DA:146,4 DA:147,4 DA:148,4 -FN:156,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.String[]) +DA:149,4 +FN:157,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.String[]) FNDA:0,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.String[]) -DA:157,0 DA:158,0 -DA:160,0 +DA:159,0 DA:161,0 DA:162,0 DA:163,0 DA:164,0 DA:165,0 -FN:173,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterfaceAndReadStaticMappings(System.String[]) +DA:166,0 +FN:174,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterfaceAndReadStaticMappings(System.String[]) FNDA:0,WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterfaceAndReadStaticMappings(System.String[]) -DA:174,0 DA:175,0 -DA:177,0 +DA:176,0 DA:178,0 DA:179,0 DA:180,0 DA:181,0 DA:182,0 DA:183,0 -FN:283,System.Void WireMock.Server.FluentMockServer::Stop() +DA:184,0 +FN:284,System.Void WireMock.Server.FluentMockServer::Stop() FNDA:2,System.Void WireMock.Server.FluentMockServer::Stop() -DA:284,2 DA:285,2 DA:286,2 DA:287,2 -BRDA:285,8,0,0 -BRDA:285,8,1,2 -BRDA:286,21,1,2 -BRDA:286,21,0,2 -FN:294,System.Void WireMock.Server.FluentMockServer::AddCatchAllMapping() +DA:288,2 +BRDA:286,8,0,0 +BRDA:286,8,1,2 +BRDA:287,21,1,2 +BRDA:287,21,0,2 +FN:295,System.Void WireMock.Server.FluentMockServer::AddCatchAllMapping() FNDA:0,System.Void WireMock.Server.FluentMockServer::AddCatchAllMapping() -DA:295,0 DA:296,0 DA:297,0 DA:298,0 DA:299,0 DA:300,0 -BRDA:296,67,0,0 -BRDA:296,67,1,0 -FN:306,System.Void WireMock.Server.FluentMockServer::Reset() +DA:301,0 +BRDA:297,67,0,0 +BRDA:297,67,1,0 +FN:307,System.Void WireMock.Server.FluentMockServer::Reset() FNDA:0,System.Void WireMock.Server.FluentMockServer::Reset() -DA:307,0 DA:308,0 -DA:310,0 +DA:309,0 DA:311,0 -FN:317,System.Void WireMock.Server.FluentMockServer::ResetMappings() +DA:312,0 +FN:318,System.Void WireMock.Server.FluentMockServer::ResetMappings() FNDA:2,System.Void WireMock.Server.FluentMockServer::ResetMappings() -DA:318,2 -DA:319,18 -DA:320,4 +DA:319,2 +DA:320,18 DA:321,4 DA:322,4 -DA:323,2 -BRDA:319,24,0,1 -BRDA:319,24,1,2 -BRDA:319,103,1,4 -BRDA:319,103,0,2 -FN:330,System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.Guid) +DA:323,4 +DA:324,2 +BRDA:320,24,0,1 +BRDA:320,24,1,2 +BRDA:320,103,1,4 +BRDA:320,103,0,2 +FN:331,System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.Guid) FNDA:0,System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.Guid) -DA:331,0 -DA:333,0 +DA:332,0 DA:334,0 DA:335,0 -DA:338,0 +DA:336,0 DA:339,0 -BRDA:333,20,0,0 -BRDA:333,20,1,0 -FN:341,System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.String) +DA:340,0 +BRDA:334,20,0,0 +BRDA:334,20,1,0 +FN:342,System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.String) FNDA:0,System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.String) -DA:342,0 -DA:344,0 +DA:343,0 DA:345,0 DA:346,0 -FN:353,System.Void WireMock.Server.FluentMockServer::AddGlobalProcessingDelay(System.TimeSpan) +DA:347,0 +FN:354,System.Void WireMock.Server.FluentMockServer::AddGlobalProcessingDelay(System.TimeSpan) FNDA:1,System.Void WireMock.Server.FluentMockServer::AddGlobalProcessingDelay(System.TimeSpan) -DA:354,1 DA:355,1 DA:356,1 -FN:362,System.Void WireMock.Server.FluentMockServer::AllowPartialMapping(System.Boolean) +DA:357,1 +FN:363,System.Void WireMock.Server.FluentMockServer::AllowPartialMapping(System.Boolean) FNDA:1,System.Void WireMock.Server.FluentMockServer::AllowPartialMapping(System.Boolean) -DA:363,1 DA:364,1 DA:365,1 DA:366,1 -FN:374,System.Void WireMock.Server.FluentMockServer::SetBasicAuthentication(System.String,System.String) +DA:367,1 +FN:375,System.Void WireMock.Server.FluentMockServer::SetBasicAuthentication(System.String,System.String) FNDA:3,System.Void WireMock.Server.FluentMockServer::SetBasicAuthentication(System.String,System.String) -DA:375,3 DA:376,3 DA:377,3 -DA:379,3 +DA:378,3 DA:380,3 DA:381,3 -FN:387,System.Void WireMock.Server.FluentMockServer::RemoveBasicAuthentication() +DA:382,3 +FN:388,System.Void WireMock.Server.FluentMockServer::RemoveBasicAuthentication() FNDA:1,System.Void WireMock.Server.FluentMockServer::RemoveBasicAuthentication() -DA:388,1 DA:389,1 DA:390,1 -FN:397,System.Void WireMock.Server.FluentMockServer::SetMaxRequestLogCount(System.Nullable`1) +DA:391,1 +FN:398,System.Void WireMock.Server.FluentMockServer::SetMaxRequestLogCount(System.Nullable`1) FNDA:1,System.Void WireMock.Server.FluentMockServer::SetMaxRequestLogCount(System.Nullable`1) -DA:398,1 DA:399,1 DA:400,1 -FN:407,System.Void WireMock.Server.FluentMockServer::SetRequestLogExpirationDuration(System.Nullable`1) +DA:401,1 +FN:408,System.Void WireMock.Server.FluentMockServer::SetRequestLogExpirationDuration(System.Nullable`1) FNDA:1,System.Void WireMock.Server.FluentMockServer::SetRequestLogExpirationDuration(System.Nullable`1) -DA:408,1 DA:409,1 DA:410,1 -FN:416,System.Void WireMock.Server.FluentMockServer::ResetScenarios() +DA:411,1 +FN:417,System.Void WireMock.Server.FluentMockServer::ResetScenarios() FNDA:0,System.Void WireMock.Server.FluentMockServer::ResetScenarios() -DA:417,0 DA:418,0 DA:419,0 -FN:427,WireMock.Server.IRespondWithAProvider WireMock.Server.FluentMockServer::Given(WireMock.Matchers.Request.IRequestMatcher) +DA:420,0 +FN:428,WireMock.Server.IRespondWithAProvider WireMock.Server.FluentMockServer::Given(WireMock.Matchers.Request.IRequestMatcher) FNDA:249,WireMock.Server.IRespondWithAProvider WireMock.Server.FluentMockServer::Given(WireMock.Matchers.Request.IRequestMatcher) -DA:428,249 DA:429,249 DA:430,249 -FN:432,System.Void WireMock.Server.FluentMockServer::RegisterMapping(WireMock.IMapping) +DA:431,249 +FN:433,System.Void WireMock.Server.FluentMockServer::RegisterMapping(WireMock.IMapping) FNDA:249,System.Void WireMock.Server.FluentMockServer::RegisterMapping(WireMock.IMapping) -DA:433,249 -DA:435,249 -DA:436,1 +DA:434,249 +DA:436,249 DA:437,1 DA:438,1 -DA:440,248 +DA:439,1 DA:441,248 DA:442,248 -DA:443,249 -BRDA:435,25,0,1 -BRDA:435,25,1,248 -FN:31,System.Void WireMock.Server.FluentMockServer::.ctor(WireMock.Settings.IFluentMockServerSettings) +DA:443,248 +DA:444,249 +BRDA:436,25,0,1 +BRDA:436,25,1,248 +FN:32,System.Void WireMock.Server.FluentMockServer::.ctor(WireMock.Settings.IFluentMockServerSettings) FNDA:47,System.Void WireMock.Server.FluentMockServer::.ctor(WireMock.Settings.IFluentMockServerSettings) -DA:32,47 -DA:185,47 +DA:33,47 DA:186,47 DA:187,47 -DA:189,47 +DA:188,47 DA:190,47 -DA:192,47 +DA:191,47 DA:193,47 -DA:195,47 -DA:196,1 +DA:194,47 +DA:196,47 DA:197,1 DA:198,1 -DA:200,46 +DA:199,1 DA:201,46 DA:202,46 DA:203,46 -DA:205,47 +DA:204,46 DA:206,47 DA:207,47 -DA:210,47 -DA:214,47 -DA:216,47 -DA:218,47 +DA:208,47 +DA:211,47 +DA:215,47 +DA:217,47 DA:219,47 -DA:220,480 -DA:221,433 -DA:223,433 +DA:220,47 +DA:221,47 +DA:222,0 DA:224,0 DA:225,0 -DA:229,433 +DA:226,0 DA:230,0 DA:231,0 -DA:234,433 -DA:235,433 -DA:236,47 -DA:238,47 -DA:239,1 +DA:232,0 +DA:235,0 +DA:236,0 +DA:237,47 +DA:239,47 DA:240,1 DA:241,1 -DA:243,47 -DA:244,11 +DA:242,1 +DA:244,47 DA:245,11 -DA:246,1 +DA:246,11 DA:247,1 DA:248,1 -DA:250,11 +DA:249,1 DA:251,11 -DA:253,47 -DA:254,0 +DA:252,11 +DA:254,47 DA:255,0 DA:256,0 -DA:258,47 -DA:259,0 +DA:257,0 +DA:259,47 DA:260,0 DA:261,0 -DA:263,47 -DA:264,2 +DA:262,0 +DA:264,47 DA:265,2 DA:266,2 -DA:268,47 -DA:269,1 +DA:267,2 +DA:269,47 DA:270,1 DA:271,1 -DA:273,47 -DA:274,0 +DA:272,1 +DA:274,47 DA:275,0 DA:276,0 -DA:277,47 -BRDA:187,117,0,0 -BRDA:187,117,1,47 -BRDA:190,151,0,0 -BRDA:190,151,1,47 -BRDA:195,230,0,1 -BRDA:195,230,1,46 -BRDA:201,284,0,46 -BRDA:201,284,1,0 -BRDA:202,352,0,46 -BRDA:202,352,1,0 -BRDA:220,664,1,433 -BRDA:223,528,0,0 -BRDA:223,528,1,433 -BRDA:229,585,0,0 -BRDA:229,585,1,433 -BRDA:220,664,0,47 -BRDA:238,719,0,1 -BRDA:238,719,1,47 -BRDA:243,765,0,11 -BRDA:245,779,0,1 -BRDA:245,779,1,10 -BRDA:245,802,0,1 -BRDA:245,802,1,11 -BRDA:243,765,1,47 -BRDA:253,867,0,0 -BRDA:253,867,1,47 -BRDA:258,913,0,0 -BRDA:258,913,1,47 -BRDA:263,938,0,2 -BRDA:263,938,1,47 -BRDA:268,968,0,1 -BRDA:268,968,1,47 -BRDA:273,1003,0,0 -BRDA:273,1003,1,47 +DA:277,0 +DA:278,46 +BRDA:188,117,0,0 +BRDA:188,117,1,47 +BRDA:191,151,0,0 +BRDA:191,151,1,47 +BRDA:196,230,0,1 +BRDA:196,230,1,46 +BRDA:202,284,0,46 +BRDA:202,284,1,0 +BRDA:203,352,0,46 +BRDA:203,352,1,0 +BRDA:221,664,1,0 +BRDA:224,528,0,0 +BRDA:224,528,1,0 +BRDA:230,585,0,0 +BRDA:230,585,1,0 +BRDA:221,664,0,47 +BRDA:239,719,0,1 +BRDA:239,719,1,47 +BRDA:244,765,0,11 +BRDA:246,779,0,1 +BRDA:246,779,1,10 +BRDA:246,802,0,1 +BRDA:246,802,1,11 +BRDA:244,765,1,47 +BRDA:254,867,0,0 +BRDA:254,867,1,47 +BRDA:259,913,0,0 +BRDA:259,913,1,47 +BRDA:264,938,0,2 +BRDA:264,938,1,47 +BRDA:269,968,0,1 +BRDA:269,968,1,47 +BRDA:274,1003,0,0 +BRDA:274,1003,1,46 LF:193 -LH:129 +LH:124 BRF:52 -BRH:34 +BRH:31 FNF:29 FNH:19 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.LogEntries.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.LogEntries.cs FN:21,System.Void WireMock.Server.FluentMockServer::add_LogEntriesChanged(System.Collections.Specialized.NotifyCollectionChangedEventHandler) FNDA:2,System.Void WireMock.Server.FluentMockServer::add_LogEntriesChanged(System.Collections.Specialized.NotifyCollectionChangedEventHandler) DA:22,2 @@ -2725,10 +2725,10 @@ BRH:0 FNF:6 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\RespondWithAProvider.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\RespondWithAProvider.cs FN:20,System.Guid WireMock.Server.RespondWithAProvider::get_Guid() -FNDA:523,System.Guid WireMock.Server.RespondWithAProvider::get_Guid() -DA:21,523 +FNDA:522,System.Guid WireMock.Server.RespondWithAProvider::get_Guid() +DA:21,522 FN:38,System.Void WireMock.Server.RespondWithAProvider::RespondWith(WireMock.ResponseProviders.IResponseProvider) FNDA:249,System.Void WireMock.Server.RespondWithAProvider::RespondWith(WireMock.ResponseProviders.IResponseProvider) DA:39,249 @@ -2758,11 +2758,11 @@ DA:68,10 DA:70,10 DA:71,10 FN:74,WireMock.Server.IRespondWithAProvider WireMock.Server.RespondWithAProvider::AtPriority(System.Int32) -FNDA:222,WireMock.Server.IRespondWithAProvider WireMock.Server.RespondWithAProvider::AtPriority(System.Int32) -DA:75,222 -DA:76,222 -DA:78,222 -DA:79,222 +FNDA:221,WireMock.Server.IRespondWithAProvider WireMock.Server.RespondWithAProvider::AtPriority(System.Int32) +DA:75,221 +DA:76,221 +DA:78,221 +DA:79,221 FN:82,WireMock.Server.IRespondWithAProvider WireMock.Server.RespondWithAProvider::InScenario(System.String) FNDA:10,WireMock.Server.IRespondWithAProvider WireMock.Server.RespondWithAProvider::InScenario(System.String) DA:83,10 @@ -2805,76 +2805,76 @@ BRH:2 FNF:11 FNH:11 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\LogEntryMapper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\LogEntryMapper.cs FN:10,WireMock.Admin.Requests.LogEntryModel WireMock.Serialization.LogEntryMapper::Map(WireMock.Logging.LogEntry) -FNDA:54,WireMock.Admin.Requests.LogEntryModel WireMock.Serialization.LogEntryMapper::Map(WireMock.Logging.LogEntry) -DA:11,54 -DA:12,54 -DA:13,54 -DA:14,54 -DA:15,54 -DA:16,54 -DA:17,54 -DA:18,54 -DA:19,54 -DA:20,54 -DA:21,54 -DA:22,54 -DA:23,54 -DA:24,54 -DA:25,54 -DA:26,54 -DA:27,54 -DA:28,54 -DA:29,54 -DA:30,54 -DA:31,54 -DA:32,54 -DA:33,54 -DA:34,54 -DA:35,54 -DA:36,54 -DA:37,54 -DA:38,54 -DA:39,54 -DA:40,54 -DA:41,54 -DA:42,54 -DA:43,54 -DA:44,54 -DA:45,54 -DA:46,54 -DA:47,54 -DA:48,54 -DA:49,54 -DA:50,54 -DA:51,54 -DA:52,54 -DA:53,54 -DA:54,54 -DA:55,54 -DA:56,54 -DA:57,54 -DA:58,54 -DA:59,54 -DA:60,54 -DA:61,54 -DA:62,54 -DA:63,134 -DA:64,134 -DA:65,134 -DA:66,134 -DA:67,134 -DA:68,54 -DA:69,54 +FNDA:53,WireMock.Admin.Requests.LogEntryModel WireMock.Serialization.LogEntryMapper::Map(WireMock.Logging.LogEntry) +DA:11,53 +DA:12,53 +DA:13,53 +DA:14,53 +DA:15,53 +DA:16,53 +DA:17,53 +DA:18,53 +DA:19,53 +DA:20,53 +DA:21,53 +DA:22,53 +DA:23,53 +DA:24,53 +DA:25,53 +DA:26,53 +DA:27,53 +DA:28,53 +DA:29,53 +DA:30,53 +DA:31,53 +DA:32,53 +DA:33,53 +DA:34,53 +DA:35,53 +DA:36,53 +DA:37,53 +DA:38,53 +DA:39,53 +DA:40,53 +DA:41,53 +DA:42,53 +DA:43,53 +DA:44,53 +DA:45,53 +DA:46,53 +DA:47,53 +DA:48,53 +DA:49,53 +DA:50,53 +DA:51,53 +DA:52,53 +DA:53,53 +DA:54,53 +DA:55,53 +DA:56,53 +DA:57,53 +DA:58,53 +DA:59,53 +DA:60,53 +DA:61,53 +DA:62,53 +DA:63,133 +DA:64,133 +DA:65,133 +DA:66,133 +DA:67,133 +DA:68,53 +DA:69,53 DA:70,54 BRDA:12,271,0,45 BRDA:12,271,1,9 BRDA:12,542,0,0 -BRDA:12,542,1,54 +BRDA:12,542,1,53 BRDA:12,666,0,19 BRDA:12,666,1,35 -BRDA:12,769,0,1 +BRDA:12,769,0,2 BRDA:12,769,1,35 LF:60 LH:60 @@ -2883,7 +2883,7 @@ BRH:7 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\MappingConverter.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\MappingConverter.cs FN:13,WireMock.Admin.Mappings.MappingModel WireMock.Serialization.MappingConverter::ToMappingModel(WireMock.IMapping) FNDA:2,WireMock.Admin.Mappings.MappingModel WireMock.Serialization.MappingConverter::ToMappingModel(WireMock.IMapping) DA:14,2 @@ -3081,7 +3081,7 @@ BRH:34 FNF:2 FNH:2 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\MatcherMapper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\MatcherMapper.cs FN:13,WireMock.Matchers.IMatcher WireMock.Serialization.MatcherMapper::Map(WireMock.Admin.Mappings.MatcherModel) FNDA:26,WireMock.Matchers.IMatcher WireMock.Serialization.MatcherMapper::Map(WireMock.Admin.Mappings.MatcherModel) DA:14,26 @@ -3209,7 +3209,7 @@ BRH:59 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicAsyncResponseProvider.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicAsyncResponseProvider.cs FN:19,System.Threading.Tasks.Task`1 WireMock.ResponseProviders.DynamicAsyncResponseProvider::ProvideResponseAsync(WireMock.RequestMessage) FNDA:0,System.Threading.Tasks.Task`1 WireMock.ResponseProviders.DynamicAsyncResponseProvider::ProvideResponseAsync(WireMock.RequestMessage) DA:20,0 @@ -3229,7 +3229,7 @@ BRH:0 FNF:2 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicResponseProvider.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicResponseProvider.cs FN:19,System.Threading.Tasks.Task`1 WireMock.ResponseProviders.DynamicResponseProvider::ProvideResponseAsync(WireMock.RequestMessage) FNDA:8,System.Threading.Tasks.Task`1 WireMock.ResponseProviders.DynamicResponseProvider::ProvideResponseAsync(WireMock.RequestMessage) DA:20,8 @@ -3249,7 +3249,7 @@ BRH:0 FNF:2 FNH:2 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs FN:23,System.Threading.Tasks.Task`1 WireMock.ResponseProviders.ProxyAsyncResponseProvider::ProvideResponseAsync(WireMock.RequestMessage) FNDA:0,System.Threading.Tasks.Task`1 WireMock.ResponseProviders.ProxyAsyncResponseProvider::ProvideResponseAsync(WireMock.RequestMessage) DA:24,0 @@ -3271,7 +3271,7 @@ BRH:0 FNF:2 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseBuilders\Response.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseBuilders\Response.cs FN:28,System.Nullable`1 WireMock.ResponseBuilders.Response::get_Delay() FNDA:80,System.Nullable`1 WireMock.ResponseBuilders.Response::get_Delay() DA:29,80 @@ -3583,7 +3583,7 @@ BRH:41 FNF:33 FNH:27 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs FN:23,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::Create() FNDA:312,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::Create() DA:24,312 @@ -3637,15 +3637,15 @@ DA:95,66 DA:96,66 DA:97,66 FN:100,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::WithPath(System.String[]) -FNDA:197,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::WithPath(System.String[]) -DA:101,197 -DA:102,197 +FNDA:196,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::WithPath(System.String[]) +DA:101,196 +DA:102,196 DA:103,197 FN:106,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::WithPath(WireMock.Matchers.MatchBehaviour,System.String[]) FNDA:197,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::WithPath(WireMock.Matchers.MatchBehaviour,System.String[]) DA:107,197 DA:108,197 -DA:110,197 +DA:110,196 DA:111,197 DA:112,197 FN:115,WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::WithPath(System.Func`2[]) @@ -3911,10 +3911,10 @@ BRH:8 FNF:49 FNH:47 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\AspNetCoreSelfHost.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\AspNetCoreSelfHost.cs FN:28,System.Boolean WireMock.Owin.AspNetCoreSelfHost::get_IsStarted() -FNDA:531,System.Boolean WireMock.Owin.AspNetCoreSelfHost::get_IsStarted() -DA:29,531 +FNDA:96,System.Boolean WireMock.Owin.AspNetCoreSelfHost::get_IsStarted() +DA:29,96 FN:30,System.Collections.Generic.List`1 WireMock.Owin.AspNetCoreSelfHost::get_Urls() FNDA:94,System.Collections.Generic.List`1 WireMock.Owin.AspNetCoreSelfHost::get_Urls() DA:31,94 @@ -3922,8 +3922,8 @@ FN:32,System.Collections.Generic.List`1 WireMock.Owin.AspNetCoreSe FNDA:141,System.Collections.Generic.List`1 WireMock.Owin.AspNetCoreSelfHost::get_Ports() DA:33,141 FN:34,System.Exception WireMock.Owin.AspNetCoreSelfHost::get_RunningException() -FNDA:433,System.Exception WireMock.Owin.AspNetCoreSelfHost::get_RunningException() -DA:35,433 +FNDA:0,System.Exception WireMock.Owin.AspNetCoreSelfHost::get_RunningException() +DA:35,0 FN:56,System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::StartAsync() FNDA:47,System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::StartAsync() DA:57,47 @@ -3975,35 +3975,32 @@ DA:102,47 DA:103,47 DA:104,47 DA:106,47 -DA:107,94 -DA:108,94 -DA:109,49 +DA:107,47 +FN:109,System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::RunHost(System.Threading.CancellationToken) +FNDA:47,System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::RunHost(System.Threading.CancellationToken) DA:110,47 -FN:112,System.Void WireMock.Owin.AspNetCoreSelfHost::StartServers() -FNDA:47,System.Void WireMock.Owin.AspNetCoreSelfHost::StartServers() +DA:112,47 DA:113,47 -DA:115,47 -DA:116,47 +DA:114,47 +DA:115,94 +DA:116,94 DA:117,94 DA:122,47 -DA:130,47 -DA:132,2 -DA:133,0 -DA:134,0 +DA:132,47 DA:135,0 DA:136,0 DA:137,0 -DA:139,2 -DA:140,2 -DA:141,2 -DA:142,2 -FN:144,System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::StopAsync() +DA:138,0 +DA:140,0 +DA:142,0 +DA:144,47 +FN:146,System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::StopAsync() FNDA:2,System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::StopAsync() -DA:145,2 -DA:146,2 +DA:147,2 DA:148,2 -DA:152,2 +DA:150,2 DA:154,2 +DA:156,2 FN:20,System.Void WireMock.Owin.AspNetCoreSelfHost::.ctor(WireMock.Owin.IWireMockMiddlewareOptions,System.String[]) FNDA:47,System.Void WireMock.Owin.AspNetCoreSelfHost::.ctor(WireMock.Owin.IWireMockMiddlewareOptions,System.String[]) DA:21,47 @@ -4025,14 +4022,14 @@ BRDA:42,73,0,0 BRDA:42,73,1,47 BRDA:44,147,1,47 BRDA:44,147,0,47 -LF:93 -LH:88 +LF:90 +LH:83 BRF:18 BRH:12 FNF:8 -FNH:8 +FNH:7 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\GlobalExceptionMiddleware.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\GlobalExceptionMiddleware.cs FN:45,Microsoft.AspNetCore.Http.RequestDelegate WireMock.Owin.GlobalExceptionMiddleware::get_Next() FNDA:46,Microsoft.AspNetCore.Http.RequestDelegate WireMock.Owin.GlobalExceptionMiddleware::get_Next() DA:46,46 @@ -4040,7 +4037,7 @@ FN:53,System.Threading.Tasks.Task WireMock.Owin.GlobalExceptionMiddleware::Invok FNDA:46,System.Threading.Tasks.Task WireMock.Owin.GlobalExceptionMiddleware::Invoke(Microsoft.AspNetCore.Http.HttpContext) DA:54,46 DA:55,46 -DA:56,46 +DA:56,45 FN:33,System.Void WireMock.Owin.GlobalExceptionMiddleware::.ctor(Microsoft.AspNetCore.Http.RequestDelegate,WireMock.Owin.IWireMockMiddlewareOptions,WireMock.Owin.Mappers.IOwinResponseMapper) FNDA:48,System.Void WireMock.Owin.GlobalExceptionMiddleware::.ctor(Microsoft.AspNetCore.Http.RequestDelegate,WireMock.Owin.IWireMockMiddlewareOptions,WireMock.Owin.Mappers.IOwinResponseMapper) DA:34,48 @@ -4082,7 +4079,7 @@ BRH:7 FNF:4 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\MappingMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\MappingMatcher.cs FN:18,System.ValueTuple`2 WireMock.Owin.MappingMatcher::Match(WireMock.RequestMessage) FNDA:49,System.ValueTuple`2 WireMock.Owin.MappingMatcher::Match(WireMock.RequestMessage) DA:19,49 @@ -4103,11 +4100,10 @@ DA:34,1 DA:36,2 DA:38,1 DA:41,48 -DA:42,48 -DA:43,85 -DA:44,329 -DA:46,48 -DA:48,49 +DA:42,85 +DA:43,329 +DA:45,48 +DA:46,49 BRDA:28,73,0,1 BRDA:30,86,0,1 BRDA:30,86,1,1 @@ -4115,21 +4111,21 @@ BRDA:30,122,0,1 BRDA:30,122,1,1 BRDA:30,158,0,1 BRDA:30,158,1,1 -BRDA:36,201,0,1 -BRDA:36,201,1,1 -BRDA:38,235,0,0 -BRDA:38,235,1,1 -BRDA:38,249,0,0 -BRDA:38,249,1,1 +BRDA:36,203,0,1 +BRDA:36,203,1,1 +BRDA:38,237,0,0 +BRDA:38,237,1,1 +BRDA:38,251,0,0 +BRDA:38,251,1,1 BRDA:28,73,1,48 -BRDA:42,278,0,1 -BRDA:42,278,1,48 -BRDA:42,314,0,1 -BRDA:42,314,1,48 -BRDA:46,348,0,12 -BRDA:46,348,1,36 -BRDA:46,362,0,12 -BRDA:46,362,1,36 +BRDA:41,279,0,1 +BRDA:41,279,1,48 +BRDA:41,315,0,1 +BRDA:41,315,1,48 +BRDA:45,347,0,12 +BRDA:45,347,1,36 +BRDA:45,359,0,12 +BRDA:45,359,1,36 FN:10,System.Void WireMock.Owin.MappingMatcher::.ctor(WireMock.Owin.IWireMockMiddlewareOptions) FNDA:50,System.Void WireMock.Owin.MappingMatcher::.ctor(WireMock.Owin.IWireMockMiddlewareOptions) DA:11,50 @@ -4137,40 +4133,39 @@ DA:12,50 DA:13,50 DA:15,50 DA:16,50 -LF:28 -LH:28 +LF:27 +LH:27 BRF:30 BRH:26 FNF:2 FNH:2 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddleware.cs -FN:65,System.Threading.Tasks.Task WireMock.Owin.WireMockMiddleware::Invoke(Microsoft.AspNetCore.Http.HttpContext) +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddleware.cs +FN:66,System.Threading.Tasks.Task WireMock.Owin.WireMockMiddleware::Invoke(Microsoft.AspNetCore.Http.HttpContext) FNDA:50,System.Threading.Tasks.Task WireMock.Owin.WireMockMiddleware::Invoke(Microsoft.AspNetCore.Http.HttpContext) -DA:66,50 DA:67,50 -DA:68,50 -FN:154,System.Void WireMock.Owin.WireMockMiddleware::LogRequest(WireMock.Logging.LogEntry,System.Boolean) -FNDA:50,System.Void WireMock.Owin.WireMockMiddleware::LogRequest(WireMock.Logging.LogEntry,System.Boolean) -DA:155,50 -DA:156,50 -DA:158,50 -DA:159,40 +DA:68,49 +DA:69,50 +FN:155,System.Void WireMock.Owin.WireMockMiddleware::LogRequest(WireMock.Logging.LogEntry,System.Boolean) +FNDA:49,System.Void WireMock.Owin.WireMockMiddleware::LogRequest(WireMock.Logging.LogEntry,System.Boolean) +DA:156,49 +DA:157,49 +DA:159,50 DA:160,40 DA:161,40 -DA:163,50 -DA:164,3 +DA:162,40 +DA:164,50 DA:165,3 -DA:166,8 -DA:167,1 +DA:166,3 +DA:167,8 DA:168,1 DA:169,1 -DA:170,3 -DA:172,50 -DA:173,1 +DA:170,1 +DA:171,3 +DA:173,50 DA:174,1 -DA:176,4 -DA:177,1 +DA:175,1 +DA:177,4 DA:178,1 DA:179,1 DA:180,1 @@ -4178,19 +4173,20 @@ DA:181,1 DA:182,1 DA:183,1 DA:184,1 -DA:185,50 -BRDA:158,48,0,40 -BRDA:158,48,1,50 -BRDA:163,91,0,3 -BRDA:166,171,1,1 -BRDA:166,171,0,3 -BRDA:163,91,1,50 -BRDA:172,197,0,1 -BRDA:176,348,1,1 -BRDA:179,306,0,1 -BRDA:179,306,1,1 -BRDA:176,348,0,1 -BRDA:172,197,1,50 +DA:185,1 +DA:186,50 +BRDA:159,48,0,40 +BRDA:159,48,1,50 +BRDA:164,91,0,3 +BRDA:167,171,1,1 +BRDA:167,171,0,3 +BRDA:164,91,1,50 +BRDA:173,197,0,1 +BRDA:177,348,1,1 +BRDA:180,306,0,1 +BRDA:180,306,1,1 +BRDA:177,348,0,1 +BRDA:173,197,1,50 FN:47,System.Void WireMock.Owin.WireMockMiddleware::.ctor(Microsoft.AspNetCore.Http.RequestDelegate,WireMock.Owin.IWireMockMiddlewareOptions,WireMock.Owin.Mappers.IOwinRequestMapper,WireMock.Owin.Mappers.IOwinResponseMapper,WireMock.Owin.IMappingMatcher) FNDA:51,System.Void WireMock.Owin.WireMockMiddleware::.ctor(Microsoft.AspNetCore.Http.RequestDelegate,WireMock.Owin.IWireMockMiddlewareOptions,WireMock.Owin.Mappers.IOwinRequestMapper,WireMock.Owin.Mappers.IOwinResponseMapper,WireMock.Owin.IMappingMatcher) DA:48,51 @@ -4198,72 +4194,72 @@ DA:49,51 DA:50,51 DA:51,51 DA:52,51 -DA:54,51 +DA:53,51 DA:55,51 DA:56,51 DA:57,51 DA:58,51 +DA:59,51 FN:27,System.Void WireMock.Owin.WireMockMiddleware::.cctor() FNDA:1,System.Void WireMock.Owin.WireMockMiddleware::.cctor() DA:28,1 -FN:78,System.Boolean WireMock.Owin.WireMockMiddleware/<>c::b__7_0(WireMock.IMapping) +FN:79,System.Boolean WireMock.Owin.WireMockMiddleware/<>c::b__7_0(WireMock.IMapping) FNDA:489,System.Boolean WireMock.Owin.WireMockMiddleware/<>c::b__7_0(WireMock.IMapping) -DA:79,489 -BRDA:79,1,0,0 -BRDA:79,1,1,279 -FN:70,System.Void WireMock.Owin.WireMockMiddleware/d__7::MoveNext() -FNDA:50,System.Void WireMock.Owin.WireMockMiddleware/d__7::MoveNext() -DA:71,50 -DA:72,50 -DA:74,50 -DA:75,50 -DA:76,50 -DA:78,50 -DA:80,30 -DA:82,30 -DA:83,4 +DA:80,489 +BRDA:80,1,0,0 +BRDA:80,1,1,279 +FN:71,System.Void WireMock.Owin.WireMockMiddleware/d__7::MoveNext() +FNDA:49,System.Void WireMock.Owin.WireMockMiddleware/d__7::MoveNext() +DA:72,49 +DA:73,49 +DA:75,49 +DA:76,49 +DA:77,49 +DA:79,49 +DA:81,30 +DA:83,30 DA:84,4 DA:85,4 DA:86,4 DA:87,4 DA:88,4 -DA:89,30 -DA:91,50 +DA:89,4 +DA:90,30 DA:92,50 -DA:94,50 -DA:95,13 +DA:93,50 +DA:95,50 DA:96,13 DA:97,13 DA:98,13 DA:99,13 -DA:102,37 -DA:104,37 -DA:105,2 +DA:100,13 +DA:103,37 +DA:105,37 DA:106,2 DA:107,2 DA:108,2 DA:109,2 DA:110,2 DA:111,2 -DA:113,0 -DA:115,35 -DA:116,1 +DA:112,2 +DA:114,0 +DA:116,35 DA:117,1 DA:118,1 -DA:120,35 -DA:122,35 -DA:123,9 +DA:119,1 +DA:121,35 +DA:123,35 DA:124,9 DA:125,9 DA:126,9 DA:127,9 -DA:128,35 -DA:129,0 +DA:128,9 +DA:129,35 DA:130,0 DA:131,0 DA:132,0 DA:133,0 -DA:135,50 +DA:134,0 DA:136,50 DA:137,50 DA:138,50 @@ -4273,71 +4269,72 @@ DA:141,50 DA:142,50 DA:143,50 DA:144,50 -DA:146,50 -DA:148,50 +DA:145,50 +DA:147,50 DA:149,50 -DA:151,35 -DA:152,50 -BRDA:72,93,0,0 -BRDA:72,93,1,50 -BRDA:76,240,0,52 -BRDA:76,240,1,52 -BRDA:76,249,0,51 -BRDA:76,255,0,50 -BRDA:79,299,0,1 -BRDA:79,299,1,50 -BRDA:79,491,1,30 -BRDA:82,394,0,8 -BRDA:82,394,1,22 -BRDA:82,412,0,4 -BRDA:82,412,1,30 -BRDA:79,491,0,50 -BRDA:94,588,0,13 -BRDA:94,588,1,37 -BRDA:104,697,0,10 -BRDA:104,697,1,27 -BRDA:104,725,0,2 -BRDA:107,770,0,0 -BRDA:107,770,1,2 -BRDA:107,822,0,2 -BRDA:107,822,1,0 -BRDA:104,725,1,35 -BRDA:115,908,0,27 -BRDA:115,942,0,26 -BRDA:115,942,1,1 -BRDA:115,908,1,8 -BRDA:115,968,0,1 -BRDA:117,1015,0,1 -BRDA:76,249,1,1 -BRDA:117,1015,1,1 -BRDA:115,968,1,35 -BRDA:120,1126,0,1 -BRDA:76,255,1,1 -BRDA:120,1126,1,35 -BRDA:122,1247,0,9 -BRDA:122,1247,1,35 -BRDA:136,1568,0,13 -BRDA:136,1568,1,37 -BRDA:136,1612,0,13 -BRDA:136,1612,1,37 -BRDA:148,1723,0,0 -BRDA:148,1723,1,50 -BRDA:149,1820,0,0 -BRDA:149,1833,0,0 -BRDA:149,1833,1,0 -BRDA:149,1820,1,50 -BRDA:149,1862,1,15 -BRDA:149,1862,0,35 -BRDA:151,1897,0,0 -BRDA:151,1897,1,35 -LF:107 -LH:101 +DA:150,50 +DA:152,35 +DA:153,50 +BRDA:73,93,0,0 +BRDA:73,93,1,50 +BRDA:77,240,0,51 +BRDA:77,240,1,51 +BRDA:77,249,0,50 +BRDA:77,255,0,49 +BRDA:80,299,0,1 +BRDA:80,299,1,50 +BRDA:80,491,1,30 +BRDA:83,394,0,9 +BRDA:83,394,1,21 +BRDA:83,412,0,4 +BRDA:83,412,1,30 +BRDA:80,491,0,50 +BRDA:95,588,0,13 +BRDA:95,588,1,37 +BRDA:105,697,0,10 +BRDA:105,697,1,27 +BRDA:105,725,0,2 +BRDA:108,770,0,0 +BRDA:108,770,1,2 +BRDA:108,822,0,2 +BRDA:108,822,1,0 +BRDA:105,725,1,35 +BRDA:116,908,0,27 +BRDA:116,942,0,26 +BRDA:116,942,1,1 +BRDA:116,908,1,8 +BRDA:116,968,0,1 +BRDA:118,1015,0,1 +BRDA:77,249,1,1 +BRDA:118,1015,1,1 +BRDA:116,968,1,35 +BRDA:121,1126,0,1 +BRDA:77,255,1,1 +BRDA:121,1126,1,35 +BRDA:123,1247,0,9 +BRDA:123,1247,1,35 +BRDA:137,1568,0,13 +BRDA:137,1568,1,37 +BRDA:137,1612,0,13 +BRDA:137,1612,1,37 +BRDA:149,1723,0,0 +BRDA:149,1723,1,50 +BRDA:150,1820,0,0 +BRDA:150,1833,0,0 +BRDA:150,1833,1,0 +BRDA:150,1820,1,50 +BRDA:150,1862,1,15 +BRDA:150,1862,0,35 +BRDA:152,1897,0,0 +BRDA:152,1897,1,35 +LF:108 +LH:102 BRF:66 BRH:57 FNF:6 FNH:6 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddlewareOptions.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddlewareOptions.cs FN:16,WireMock.Logging.IWireMockLogger WireMock.Owin.WireMockMiddlewareOptions::get_Logger() FNDA:151,WireMock.Logging.IWireMockLogger WireMock.Owin.WireMockMiddlewareOptions::get_Logger() DA:17,151 @@ -4378,7 +4375,7 @@ BRH:0 FNF:11 FNH:11 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinRequestMapper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinRequestMapper.cs FN:58,System.ValueTuple`2 WireMock.Owin.Mappers.OwinRequestMapper::ParseRequest(Microsoft.AspNetCore.Http.HttpRequest) FNDA:46,System.ValueTuple`2 WireMock.Owin.Mappers.OwinRequestMapper::ParseRequest(Microsoft.AspNetCore.Http.HttpRequest) DA:59,46 @@ -4387,7 +4384,7 @@ DA:65,46 DA:66,46 DA:67,46 DA:68,46 -DA:70,46 +DA:70,45 DA:71,46 BRDA:66,47,0,46 BRDA:66,47,1,0 @@ -4403,9 +4400,9 @@ DA:25,46 DA:27,46 DA:29,46 DA:30,46 -DA:31,46 -DA:32,46 -DA:33,262 +DA:31,45 +DA:32,45 +DA:33,260 DA:34,62 DA:35,62 DA:36,62 @@ -4426,7 +4423,7 @@ DA:52,7 DA:53,7 DA:55,46 DA:56,46 -BRDA:30,102,0,46 +BRDA:30,102,0,45 BRDA:33,225,1,62 BRDA:33,225,0,46 BRDA:30,102,1,46 @@ -4447,11 +4444,11 @@ BRH:10 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinResponseMapper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinResponseMapper.cs FN:75,System.Void WireMock.Owin.Mappers.OwinResponseMapper::SetResponseHeaders(WireMock.ResponseMessage,Microsoft.AspNetCore.Http.HttpResponse) -FNDA:52,System.Void WireMock.Owin.Mappers.OwinResponseMapper::SetResponseHeaders(WireMock.ResponseMessage,Microsoft.AspNetCore.Http.HttpResponse) -DA:76,52 -DA:78,202 +FNDA:51,System.Void WireMock.Owin.Mappers.OwinResponseMapper::SetResponseHeaders(WireMock.ResponseMessage,Microsoft.AspNetCore.Http.HttpResponse) +DA:76,51 +DA:78,201 DA:79,23 DA:80,23 DA:81,19 @@ -4493,15 +4490,15 @@ DA:52,51 DA:53,0 DA:54,0 DA:55,0 -DA:56,51 +DA:56,50 DA:57,15 DA:58,15 DA:59,15 DA:60,15 DA:61,15 -DA:62,36 +DA:62,35 DA:63,19 -DA:64,19 +DA:64,18 DA:65,19 DA:67,52 DA:69,52 @@ -4514,16 +4511,16 @@ BRDA:40,29,1,52 BRDA:48,83,0,1 BRDA:48,83,1,51 BRDA:52,125,0,0 -BRDA:52,125,1,51 +BRDA:52,125,1,50 BRDA:56,174,0,15 BRDA:58,216,0,15 BRDA:58,216,1,0 BRDA:60,288,0,0 BRDA:60,288,1,15 -BRDA:56,174,1,36 -BRDA:62,346,0,19 +BRDA:56,174,1,35 +BRDA:62,346,0,18 BRDA:64,362,0,0 -BRDA:64,362,1,19 +BRDA:64,362,1,18 BRDA:62,346,1,52 BRDA:69,435,0,35 BRDA:71,483,0,0 @@ -4536,7 +4533,7 @@ BRH:20 FNF:4 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs FN:13,System.Uri WireMock.Models.UrlDetails::get_Url() FNDA:1203,System.Uri WireMock.Models.UrlDetails::get_Url() DA:14,1203 @@ -4569,7 +4566,7 @@ BRH:0 FNF:5 FNH:5 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\ExactMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\ExactMatcher.cs FN:15,WireMock.Matchers.MatchBehaviour WireMock.Matchers.ExactMatcher::get_MatchBehaviour() FNDA:23,WireMock.Matchers.MatchBehaviour WireMock.Matchers.ExactMatcher::get_MatchBehaviour() DA:16,23 @@ -4606,7 +4603,7 @@ BRH:0 FNF:6 FNH:6 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\ExactObjectMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\ExactObjectMatcher.cs FN:16,WireMock.Matchers.MatchBehaviour WireMock.Matchers.ExactObjectMatcher::get_MatchBehaviour() FNDA:5,WireMock.Matchers.MatchBehaviour WireMock.Matchers.ExactObjectMatcher::get_MatchBehaviour() DA:17,5 @@ -4654,7 +4651,7 @@ BRH:2 FNF:7 FNH:7 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\JsonMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\JsonMatcher.cs FN:13,System.Object WireMock.Matchers.JsonMatcher::get_Value() FNDA:7,System.Object WireMock.Matchers.JsonMatcher::get_Value() DA:14,7 @@ -4732,7 +4729,7 @@ BRH:10 FNF:8 FNH:8 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\JSONPathMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\JSONPathMatcher.cs FN:18,WireMock.Matchers.MatchBehaviour WireMock.Matchers.JsonPathMatcher::get_MatchBehaviour() FNDA:14,WireMock.Matchers.MatchBehaviour WireMock.Matchers.JsonPathMatcher::get_MatchBehaviour() DA:19,14 @@ -4812,7 +4809,7 @@ BRH:9 FNF:8 FNH:8 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\LinqMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\LinqMatcher.cs FN:17,WireMock.Matchers.MatchBehaviour WireMock.Matchers.LinqMatcher::get_MatchBehaviour() FNDA:8,WireMock.Matchers.MatchBehaviour WireMock.Matchers.LinqMatcher::get_MatchBehaviour() DA:18,8 @@ -4878,7 +4875,7 @@ BRH:4 FNF:9 FNH:9 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs FN:17,System.Double WireMock.Matchers.MatchBehaviourHelper::Convert(WireMock.Matchers.MatchBehaviour,System.Double) FNDA:758,System.Double WireMock.Matchers.MatchBehaviourHelper::Convert(WireMock.Matchers.MatchBehaviour,System.Double) DA:18,758 @@ -4898,7 +4895,7 @@ BRH:4 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchScores.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\MatchScores.cs FN:36,System.Double WireMock.Matchers.MatchScores::ToScore(System.Boolean) FNDA:718,System.Double WireMock.Matchers.MatchScores::ToScore(System.Boolean) DA:37,718 @@ -4927,7 +4924,7 @@ BRH:4 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\RegexMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\RegexMatcher.cs FN:19,WireMock.Matchers.MatchBehaviour WireMock.Matchers.RegexMatcher::get_MatchBehaviour() FNDA:370,WireMock.Matchers.MatchBehaviour WireMock.Matchers.RegexMatcher::get_MatchBehaviour() DA:20,370 @@ -4975,20 +4972,20 @@ DA:46,8 DA:47,8 DA:48,8 FN:55,System.Void WireMock.Matchers.RegexMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) -FNDA:408,System.Void WireMock.Matchers.RegexMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) -DA:56,408 +FNDA:407,System.Void WireMock.Matchers.RegexMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) +DA:56,407 DA:57,408 DA:58,408 DA:60,408 DA:61,408 -DA:62,408 +DA:62,407 DA:64,408 DA:65,408 DA:66,64 DA:67,64 DA:68,64 DA:70,818 -DA:71,408 +DA:71,407 BRDA:65,57,0,64 BRDA:65,57,1,408 LF:41 @@ -4998,7 +4995,7 @@ BRH:4 FNF:9 FNH:9 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\SimMetricsMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\SimMetricsMatcher.cs FN:19,WireMock.Matchers.MatchBehaviour WireMock.Matchers.SimMetricsMatcher::get_MatchBehaviour() FNDA:4,WireMock.Matchers.MatchBehaviour WireMock.Matchers.SimMetricsMatcher::get_MatchBehaviour() DA:20,4 @@ -5089,7 +5086,7 @@ BRH:2 FNF:9 FNH:9 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs FN:55,System.String[] WireMock.Matchers.WildcardMatcher::GetPatterns() FNDA:3,System.String[] WireMock.Matchers.WildcardMatcher::GetPatterns() DA:56,3 @@ -5104,23 +5101,23 @@ DA:20,30 DA:21,30 DA:22,30 FN:29,System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String,System.Boolean) -FNDA:266,System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String,System.Boolean) -DA:30,266 -DA:31,266 -DA:32,266 +FNDA:264,System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String,System.Boolean) +DA:30,264 +DA:31,265 +DA:32,265 FN:38,System.Void WireMock.Matchers.WildcardMatcher::.ctor(System.String[],System.Boolean) FNDA:30,System.Void WireMock.Matchers.WildcardMatcher::.ctor(System.String[],System.Boolean) DA:39,30 DA:40,30 DA:41,30 FN:48,System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) -FNDA:603,System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) -DA:49,603 -DA:50,301 -DA:51,301 -DA:52,301 +FNDA:602,System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) +DA:49,602 +DA:50,300 +DA:51,300 +DA:52,300 BRDA:49,9,0,1 -BRDA:49,9,1,301 +BRDA:49,9,1,299 LF:17 LH:17 BRF:2 @@ -5128,7 +5125,7 @@ BRH:2 FNF:6 FNH:6 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\XPathMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\XPathMatcher.cs FN:20,WireMock.Matchers.MatchBehaviour WireMock.Matchers.XPathMatcher::get_MatchBehaviour() FNDA:4,WireMock.Matchers.MatchBehaviour WireMock.Matchers.XPathMatcher::get_MatchBehaviour() DA:21,4 @@ -5178,20 +5175,20 @@ BRH:2 FNF:6 FNH:6 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMatchResult.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMatchResult.cs FN:16,System.Double WireMock.Matchers.Request.RequestMatchResult::get_TotalScore() -FNDA:1824,System.Double WireMock.Matchers.Request.RequestMatchResult::get_TotalScore() -DA:17,1824 +FNDA:1822,System.Double WireMock.Matchers.Request.RequestMatchResult::get_TotalScore() +DA:17,1822 FN:24,System.Int32 WireMock.Matchers.Request.RequestMatchResult::get_TotalNumber() -FNDA:1865,System.Int32 WireMock.Matchers.Request.RequestMatchResult::get_TotalNumber() -DA:25,1865 +FNDA:1863,System.Int32 WireMock.Matchers.Request.RequestMatchResult::get_TotalNumber() +DA:25,1863 FN:32,System.Boolean WireMock.Matchers.Request.RequestMatchResult::get_IsPerfectMatch() -FNDA:316,System.Boolean WireMock.Matchers.Request.RequestMatchResult::get_IsPerfectMatch() -DA:33,316 +FNDA:315,System.Boolean WireMock.Matchers.Request.RequestMatchResult::get_IsPerfectMatch() +DA:33,315 FN:40,System.Double WireMock.Matchers.Request.RequestMatchResult::get_AverageTotalScore() -FNDA:41,System.Double WireMock.Matchers.Request.RequestMatchResult::get_AverageTotalScore() -DA:41,41 -BRDA:41,6,0,41 +FNDA:40,System.Double WireMock.Matchers.Request.RequestMatchResult::get_AverageTotalScore() +DA:41,40 +BRDA:41,6,0,40 BRDA:41,6,1,0 FN:45,System.Collections.Generic.IList`1> WireMock.Matchers.Request.RequestMatchResult::get_MatchDetails() FNDA:751,System.Collections.Generic.IList`1> WireMock.Matchers.Request.RequestMatchResult::get_MatchDetails() @@ -5220,7 +5217,7 @@ BRH:1 FNF:8 FNH:8 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageBodyMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageBodyMatcher.cs FN:14,System.Func`2 WireMock.Matchers.Request.RequestMessageBodyMatcher::get_Func() FNDA:6,System.Func`2 WireMock.Matchers.Request.RequestMessageBodyMatcher::get_Func() DA:15,6 @@ -5347,7 +5344,7 @@ BRH:23 FNF:13 FNH:13 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageClientIPMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageClientIPMatcher.cs FN:16,System.Collections.Generic.IReadOnlyList`1 WireMock.Matchers.Request.RequestMessageClientIPMatcher::get_Matchers() FNDA:7,System.Collections.Generic.IReadOnlyList`1 WireMock.Matchers.Request.RequestMessageClientIPMatcher::get_Matchers() DA:17,7 @@ -5403,7 +5400,7 @@ BRH:4 FNF:7 FNH:7 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCompositeMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCompositeMatcher.cs FN:20,System.Collections.Generic.IEnumerable`1 WireMock.Matchers.Request.RequestMessageCompositeMatcher::get_RequestMatchers() FNDA:657,System.Collections.Generic.IEnumerable`1 WireMock.Matchers.Request.RequestMessageCompositeMatcher::get_RequestMatchers() DA:21,657 @@ -5423,10 +5420,10 @@ BRDA:39,37,1,328 BRDA:44,63,0,327 BRDA:44,63,1,1 FN:27,System.Void WireMock.Matchers.Request.RequestMessageCompositeMatcher::.ctor(System.Collections.Generic.IEnumerable`1,WireMock.Matchers.Request.CompositeMatcherType) -FNDA:315,System.Void WireMock.Matchers.Request.RequestMessageCompositeMatcher::.ctor(System.Collections.Generic.IEnumerable`1,WireMock.Matchers.Request.CompositeMatcherType) -DA:28,315 -DA:29,315 -DA:30,315 +FNDA:314,System.Void WireMock.Matchers.Request.RequestMessageCompositeMatcher::.ctor(System.Collections.Generic.IEnumerable`1,WireMock.Matchers.Request.CompositeMatcherType) +DA:28,314 +DA:29,314 +DA:30,314 DA:32,315 DA:33,315 DA:34,315 @@ -5437,7 +5434,7 @@ BRH:4 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCookieMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCookieMatcher.cs FN:19,System.Func`2,System.Boolean>[] WireMock.Matchers.Request.RequestMessageCookieMatcher::get_Funcs() FNDA:10,System.Func`2,System.Boolean>[] WireMock.Matchers.Request.RequestMessageCookieMatcher::get_Funcs() DA:20,10 @@ -5516,7 +5513,7 @@ BRH:9 FNF:8 FNH:8 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageHeaderMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageHeaderMatcher.cs FN:21,System.Func`2,System.Boolean>[] WireMock.Matchers.Request.RequestMessageHeaderMatcher::get_Funcs() FNDA:49,System.Func`2,System.Boolean>[] WireMock.Matchers.Request.RequestMessageHeaderMatcher::get_Funcs() DA:22,49 @@ -5606,7 +5603,7 @@ BRH:13 FNF:9 FNH:9 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageMethodMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageMethodMatcher.cs FN:17,System.String[] WireMock.Matchers.Request.RequestMessageMethodMatcher::get_Methods() FNDA:287,System.String[] WireMock.Matchers.Request.RequestMessageMethodMatcher::get_Methods() DA:18,287 @@ -5636,7 +5633,7 @@ BRH:0 FNF:4 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageParamMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageParamMatcher.cs FN:19,System.Func`2>,System.Boolean>[] WireMock.Matchers.Request.RequestMessageParamMatcher::get_Funcs() FNDA:11,System.Func`2>,System.Boolean>[] WireMock.Matchers.Request.RequestMessageParamMatcher::get_Funcs() DA:20,11 @@ -5729,7 +5726,7 @@ BRH:17 FNF:9 FNH:9 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessagePathMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessagePathMatcher.cs FN:16,System.Collections.Generic.IReadOnlyList`1 WireMock.Matchers.Request.RequestMessagePathMatcher::get_Matchers() FNDA:593,System.Collections.Generic.IReadOnlyList`1 WireMock.Matchers.Request.RequestMessagePathMatcher::get_Matchers() DA:17,593 @@ -5760,17 +5757,17 @@ BRDA:71,79,0,1 BRDA:71,79,1,0 BRDA:69,65,1,0 FN:28,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[]) -FNDA:395,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[]) -DA:29,395 -DA:30,197 -DA:31,197 +FNDA:392,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[]) +DA:29,392 +DA:30,196 +DA:31,196 FN:36,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.IStringMatcher[]) -FNDA:263,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.IStringMatcher[]) -DA:37,263 -DA:38,263 -DA:39,263 -DA:41,263 -DA:42,263 +FNDA:262,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.IStringMatcher[]) +DA:37,262 +DA:38,262 +DA:39,262 +DA:41,262 +DA:42,262 FN:47,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(System.Func`2[]) FNDA:1,System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(System.Func`2[]) DA:48,1 @@ -5785,7 +5782,7 @@ BRH:4 FNF:7 FNH:7 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageScenarioAndStateMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageScenarioAndStateMatcher.cs FN:35,System.Double WireMock.Matchers.Request.RequestMessageScenarioAndStateMatcher::GetMatchingScore(WireMock.RequestMessage,WireMock.Matchers.Request.RequestMatchResult) FNDA:30,System.Double WireMock.Matchers.Request.RequestMessageScenarioAndStateMatcher::GetMatchingScore(WireMock.RequestMessage,WireMock.Matchers.Request.RequestMatchResult) DA:36,30 @@ -5813,7 +5810,7 @@ BRH:2 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageUrlMatcher.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageUrlMatcher.cs FN:16,System.Collections.Generic.IReadOnlyList`1 WireMock.Matchers.Request.RequestMessageUrlMatcher::get_Matchers() FNDA:5,System.Collections.Generic.IReadOnlyList`1 WireMock.Matchers.Request.RequestMessageUrlMatcher::get_Matchers() DA:17,5 @@ -5869,19 +5866,19 @@ BRH:4 FNF:7 FNH:7 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\LogEntry.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\LogEntry.cs FN:16,System.Guid WireMock.Logging.LogEntry::get_Guid() FNDA:104,System.Guid WireMock.Logging.LogEntry::get_Guid() DA:17,104 FN:24,WireMock.RequestMessage WireMock.Logging.LogEntry::get_RequestMessage() -FNDA:893,WireMock.RequestMessage WireMock.Logging.LogEntry::get_RequestMessage() -DA:25,893 +FNDA:888,WireMock.RequestMessage WireMock.Logging.LogEntry::get_RequestMessage() +DA:25,888 FN:32,WireMock.ResponseMessage WireMock.Logging.LogEntry::get_ResponseMessage() -FNDA:752,WireMock.ResponseMessage WireMock.Logging.LogEntry::get_ResponseMessage() -DA:33,752 +FNDA:747,WireMock.ResponseMessage WireMock.Logging.LogEntry::get_ResponseMessage() +DA:33,747 FN:40,WireMock.Matchers.Request.RequestMatchResult WireMock.Logging.LogEntry::get_RequestMatchResult() -FNDA:279,WireMock.Matchers.Request.RequestMatchResult WireMock.Logging.LogEntry::get_RequestMatchResult() -DA:41,279 +FNDA:277,WireMock.Matchers.Request.RequestMatchResult WireMock.Logging.LogEntry::get_RequestMatchResult() +DA:41,277 FN:48,System.Nullable`1 WireMock.Logging.LogEntry::get_MappingGuid() FNDA:104,System.Nullable`1 WireMock.Logging.LogEntry::get_MappingGuid() DA:49,104 @@ -5895,7 +5892,7 @@ BRH:0 FNF:6 FNH:6 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\WireMockConsoleLogger.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\WireMockConsoleLogger.cs FN:22,System.Void WireMock.Logging.WireMockConsoleLogger::Debug(System.String,System.Object[]) FNDA:0,System.Void WireMock.Logging.WireMockConsoleLogger::Debug(System.String,System.Object[]) DA:23,0 @@ -5943,7 +5940,7 @@ BRH:0 FNF:7 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\WireMockNullLogger.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\WireMockNullLogger.cs FN:12,System.Void WireMock.Logging.WireMockNullLogger::Debug(System.String,System.Object[]) FNDA:44,System.Void WireMock.Logging.WireMockNullLogger::Debug(System.String,System.Object[]) DA:13,44 @@ -5971,7 +5968,7 @@ BRH:0 FNF:5 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Http\HttpClientHelper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Http\HttpClientHelper.cs FN:13,System.Net.Http.HttpClient WireMock.Http.HttpClientHelper::CreateHttpClient(System.String) FNDA:2,System.Net.Http.HttpClient WireMock.Http.HttpClientHelper::CreateHttpClient(System.String) DA:14,2 @@ -6021,7 +6018,7 @@ BRH:3 FNF:2 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Http\HttpRequestMessageHelper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Http\HttpRequestMessageHelper.cs FN:13,System.Net.Http.HttpRequestMessage WireMock.Http.HttpRequestMessageHelper::Create(WireMock.RequestMessage,System.String) FNDA:7,System.Net.Http.HttpRequestMessage WireMock.Http.HttpRequestMessageHelper::Create(WireMock.RequestMessage,System.String) DA:14,7 @@ -6122,7 +6119,7 @@ BRH:34 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Http\HttpResponseMessageHelper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Http\HttpResponseMessageHelper.cs FN:21,System.Boolean WireMock.Http.HttpResponseMessageHelper/<>c::b__0_1(System.Collections.Generic.KeyValuePair`2>) FNDA:0,System.Boolean WireMock.Http.HttpResponseMessageHelper/<>c::b__0_1(System.Collections.Generic.KeyValuePair`2>) DA:22,0 @@ -6195,30 +6192,30 @@ BRH:0 FNF:3 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\HttpsCertificate\ClientCertificateHelper.cs -FN:9,System.Security.Cryptography.X509Certificates.X509Certificate2 WireMock.HttpsCertificate.ClientCertificateHelper::GetCertificate(System.String) +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\HttpsCertificate\ClientCertificateHelper.cs +FN:8,System.Security.Cryptography.X509Certificates.X509Certificate2 WireMock.HttpsCertificate.ClientCertificateHelper::GetCertificate(System.String) FNDA:0,System.Security.Cryptography.X509Certificates.X509Certificate2 WireMock.HttpsCertificate.ClientCertificateHelper::GetCertificate(System.String) +DA:9,0 DA:10,0 -DA:11,0 -DA:13,0 -DA:15,0 +DA:12,0 +DA:14,0 +DA:17,0 DA:18,0 DA:19,0 -DA:20,0 +DA:21,0 DA:22,0 DA:23,0 -DA:24,0 -DA:26,0 -DA:28,0 +DA:25,0 +DA:27,0 DA:30,0 DA:33,0 DA:35,0 DA:39,0 DA:40,0 -BRDA:19,44,0,0 -BRDA:23,73,0,0 -BRDA:23,73,1,0 -BRDA:19,44,1,0 +BRDA:18,44,0,0 +BRDA:22,73,0,0 +BRDA:22,73,1,0 +BRDA:18,44,1,0 LF:17 LH:0 BRF:4 @@ -6226,7 +6223,7 @@ BRH:0 FNF:1 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\HttpsCertificate\PublicCertificateHelper.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\HttpsCertificate\PublicCertificateHelper.cs FN:85,System.Security.Cryptography.X509Certificates.X509Certificate2 WireMock.HttpsCertificate.PublicCertificateHelper::GetX509Certificate2() FNDA:0,System.Security.Cryptography.X509Certificates.X509Certificate2 WireMock.HttpsCertificate.PublicCertificateHelper::GetX509Certificate2() DA:86,0 @@ -6240,7 +6237,7 @@ BRH:0 FNF:1 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Handlers\LocalFileSystemHandler.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Handlers\LocalFileSystemHandler.cs FN:16,System.Boolean WireMock.Handlers.LocalFileSystemHandler::FolderExists(System.String) FNDA:3,System.Boolean WireMock.Handlers.LocalFileSystemHandler::FolderExists(System.String) DA:17,3 @@ -6287,7 +6284,7 @@ BRH:0 FNF:7 FNH:7 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Settings\SettingsModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Settings\SettingsModel.cs FN:10,System.Nullable`1 WireMock.Admin.Settings.SettingsModel::get_GlobalProcessingDelay() FNDA:8,System.Nullable`1 WireMock.Admin.Settings.SettingsModel::get_GlobalProcessingDelay() DA:11,8 @@ -6307,7 +6304,7 @@ BRH:0 FNF:4 FNH:4 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Scenarios\ScenarioStateModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Scenarios\ScenarioStateModel.cs FN:10,System.String WireMock.Admin.Scenarios.ScenarioStateModel::get_Name() FNDA:0,System.String WireMock.Admin.Scenarios.ScenarioStateModel::get_Name() DA:11,0 @@ -6327,10 +6324,10 @@ BRH:0 FNF:4 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogEntryModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogEntryModel.cs FN:12,System.Guid WireMock.Admin.Requests.LogEntryModel::get_Guid() -FNDA:62,System.Guid WireMock.Admin.Requests.LogEntryModel::get_Guid() -DA:13,62 +FNDA:61,System.Guid WireMock.Admin.Requests.LogEntryModel::get_Guid() +DA:13,61 FN:17,WireMock.Admin.Requests.LogRequestModel WireMock.Admin.Requests.LogEntryModel::get_Request() FNDA:78,WireMock.Admin.Requests.LogRequestModel WireMock.Admin.Requests.LogEntryModel::get_Request() DA:18,78 @@ -6353,10 +6350,10 @@ BRH:0 FNF:6 FNH:6 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestMatchModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestMatchModel.cs FN:15,System.Double WireMock.Admin.Requests.LogRequestMatchModel::get_TotalScore() -FNDA:35,System.Double WireMock.Admin.Requests.LogRequestMatchModel::get_TotalScore() -DA:16,35 +FNDA:34,System.Double WireMock.Admin.Requests.LogRequestMatchModel::get_TotalScore() +DA:16,34 FN:23,System.Int32 WireMock.Admin.Requests.LogRequestMatchModel::get_TotalNumber() FNDA:35,System.Int32 WireMock.Admin.Requests.LogRequestMatchModel::get_TotalNumber() DA:24,35 @@ -6376,10 +6373,10 @@ BRH:0 FNF:5 FNH:5 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestModel.cs FN:15,System.String WireMock.Admin.Requests.LogRequestModel::get_ClientIP() -FNDA:62,System.String WireMock.Admin.Requests.LogRequestModel::get_ClientIP() -DA:16,62 +FNDA:61,System.String WireMock.Admin.Requests.LogRequestModel::get_ClientIP() +DA:16,61 FN:20,System.DateTime WireMock.Admin.Requests.LogRequestModel::get_DateTime() FNDA:62,System.DateTime WireMock.Admin.Requests.LogRequestModel::get_DateTime() DA:21,62 @@ -6390,14 +6387,14 @@ FN:30,System.String WireMock.Admin.Requests.LogRequestModel::get_AbsolutePath() FNDA:62,System.String WireMock.Admin.Requests.LogRequestModel::get_AbsolutePath() DA:31,62 FN:35,System.String WireMock.Admin.Requests.LogRequestModel::get_Url() -FNDA:62,System.String WireMock.Admin.Requests.LogRequestModel::get_Url() -DA:36,62 +FNDA:61,System.String WireMock.Admin.Requests.LogRequestModel::get_Url() +DA:36,61 FN:40,System.String WireMock.Admin.Requests.LogRequestModel::get_AbsoluteUrl() -FNDA:62,System.String WireMock.Admin.Requests.LogRequestModel::get_AbsoluteUrl() -DA:41,62 +FNDA:61,System.String WireMock.Admin.Requests.LogRequestModel::get_AbsoluteUrl() +DA:41,61 FN:45,System.Collections.Generic.IDictionary`2> WireMock.Admin.Requests.LogRequestModel::get_Query() -FNDA:58,System.Collections.Generic.IDictionary`2> WireMock.Admin.Requests.LogRequestModel::get_Query() -DA:46,58 +FNDA:57,System.Collections.Generic.IDictionary`2> WireMock.Admin.Requests.LogRequestModel::get_Query() +DA:46,57 FN:50,System.String WireMock.Admin.Requests.LogRequestModel::get_Method() FNDA:66,System.String WireMock.Admin.Requests.LogRequestModel::get_Method() DA:51,66 @@ -6414,11 +6411,11 @@ FN:70,System.Object WireMock.Admin.Requests.LogRequestModel::get_BodyAsJson() FNDA:62,System.Object WireMock.Admin.Requests.LogRequestModel::get_BodyAsJson() DA:71,62 FN:75,System.Byte[] WireMock.Admin.Requests.LogRequestModel::get_BodyAsBytes() -FNDA:58,System.Byte[] WireMock.Admin.Requests.LogRequestModel::get_BodyAsBytes() -DA:76,58 +FNDA:57,System.Byte[] WireMock.Admin.Requests.LogRequestModel::get_BodyAsBytes() +DA:76,57 FN:80,WireMock.Admin.Mappings.EncodingModel WireMock.Admin.Requests.LogRequestModel::get_BodyEncoding() -FNDA:62,WireMock.Admin.Mappings.EncodingModel WireMock.Admin.Requests.LogRequestModel::get_BodyEncoding() -DA:81,62 +FNDA:61,WireMock.Admin.Mappings.EncodingModel WireMock.Admin.Requests.LogRequestModel::get_BodyEncoding() +DA:81,61 LF:14 LH:14 BRF:0 @@ -6426,25 +6423,25 @@ BRH:0 FNF:14 FNH:14 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogResponseModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogResponseModel.cs FN:14,System.Int32 WireMock.Admin.Requests.LogResponseModel::get_StatusCode() -FNDA:120,System.Int32 WireMock.Admin.Requests.LogResponseModel::get_StatusCode() -DA:15,120 +FNDA:118,System.Int32 WireMock.Admin.Requests.LogResponseModel::get_StatusCode() +DA:15,118 FN:19,System.Collections.Generic.IDictionary`2> WireMock.Admin.Requests.LogResponseModel::get_Headers() FNDA:66,System.Collections.Generic.IDictionary`2> WireMock.Admin.Requests.LogResponseModel::get_Headers() DA:20,66 FN:24,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyDestination() -FNDA:58,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyDestination() -DA:25,58 +FNDA:57,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyDestination() +DA:25,57 FN:29,System.String WireMock.Admin.Requests.LogResponseModel::get_Body() -FNDA:58,System.String WireMock.Admin.Requests.LogResponseModel::get_Body() -DA:30,58 +FNDA:57,System.String WireMock.Admin.Requests.LogResponseModel::get_Body() +DA:30,57 FN:34,System.Object WireMock.Admin.Requests.LogResponseModel::get_BodyAsJson() FNDA:66,System.Object WireMock.Admin.Requests.LogResponseModel::get_BodyAsJson() DA:35,66 FN:39,System.Byte[] WireMock.Admin.Requests.LogResponseModel::get_BodyAsBytes() -FNDA:58,System.Byte[] WireMock.Admin.Requests.LogResponseModel::get_BodyAsBytes() -DA:40,58 +FNDA:57,System.Byte[] WireMock.Admin.Requests.LogResponseModel::get_BodyAsBytes() +DA:40,57 FN:44,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyAsFile() FNDA:58,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyAsFile() DA:45,58 @@ -6452,8 +6449,8 @@ FN:49,System.Nullable`1 WireMock.Admin.Requests.LogResponseModel FNDA:58,System.Nullable`1 WireMock.Admin.Requests.LogResponseModel::get_BodyAsFileIsCached() DA:50,58 FN:54,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyOriginal() -FNDA:58,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyOriginal() -DA:55,58 +FNDA:57,System.String WireMock.Admin.Requests.LogResponseModel::get_BodyOriginal() +DA:55,57 FN:59,WireMock.Admin.Mappings.EncodingModel WireMock.Admin.Requests.LogResponseModel::get_BodyEncoding() FNDA:66,WireMock.Admin.Mappings.EncodingModel WireMock.Admin.Requests.LogResponseModel::get_BodyEncoding() DA:60,66 @@ -6464,7 +6461,7 @@ BRH:0 FNF:10 FNH:10 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\BodyModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\BodyModel.cs FN:10,WireMock.Admin.Mappings.MatcherModel WireMock.Admin.Mappings.BodyModel::get_Matcher() FNDA:18,WireMock.Admin.Mappings.MatcherModel WireMock.Admin.Mappings.BodyModel::get_Matcher() DA:11,18 @@ -6475,7 +6472,7 @@ BRH:0 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ClientIPModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ClientIPModel.cs FN:10,WireMock.Admin.Mappings.MatcherModel[] WireMock.Admin.Mappings.ClientIPModel::get_Matchers() FNDA:0,WireMock.Admin.Mappings.MatcherModel[] WireMock.Admin.Mappings.ClientIPModel::get_Matchers() DA:11,0 @@ -6486,7 +6483,7 @@ BRH:0 FNF:1 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\CookieModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\CookieModel.cs FN:12,System.String WireMock.Admin.Mappings.CookieModel::get_Name() FNDA:0,System.String WireMock.Admin.Mappings.CookieModel::get_Name() DA:13,0 @@ -6500,7 +6497,7 @@ BRH:0 FNF:2 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\EncodingModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\EncodingModel.cs FN:10,System.Int32 WireMock.Admin.Mappings.EncodingModel::get_CodePage() FNDA:87,System.Int32 WireMock.Admin.Mappings.EncodingModel::get_CodePage() DA:11,87 @@ -6517,7 +6514,7 @@ BRH:0 FNF:3 FNH:3 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\HeaderModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\HeaderModel.cs FN:12,System.String WireMock.Admin.Mappings.HeaderModel::get_Name() FNDA:0,System.String WireMock.Admin.Mappings.HeaderModel::get_Name() DA:13,0 @@ -6531,7 +6528,7 @@ BRH:0 FNF:2 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\MappingModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\MappingModel.cs FN:12,System.Nullable`1 WireMock.Admin.Mappings.MappingModel::get_Guid() FNDA:25,System.Nullable`1 WireMock.Admin.Mappings.MappingModel::get_Guid() DA:13,25 @@ -6563,7 +6560,7 @@ BRH:0 FNF:8 FNH:8 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\MatcherModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\MatcherModel.cs FN:10,System.String WireMock.Admin.Mappings.MatcherModel::get_Name() FNDA:57,System.String WireMock.Admin.Mappings.MatcherModel::get_Name() DA:11,57 @@ -6586,7 +6583,7 @@ BRH:0 FNF:5 FNH:5 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ParamModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ParamModel.cs FN:10,System.String WireMock.Admin.Mappings.ParamModel::get_Name() FNDA:0,System.String WireMock.Admin.Mappings.ParamModel::get_Name() DA:11,0 @@ -6600,7 +6597,7 @@ BRH:0 FNF:2 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\PathModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\PathModel.cs FN:10,WireMock.Admin.Mappings.MatcherModel[] WireMock.Admin.Mappings.PathModel::get_Matchers() FNDA:42,WireMock.Admin.Mappings.MatcherModel[] WireMock.Admin.Mappings.PathModel::get_Matchers() DA:11,42 @@ -6611,7 +6608,7 @@ BRH:0 FNF:1 FNH:1 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\RequestModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\RequestModel.cs FN:12,System.Object WireMock.Admin.Mappings.RequestModel::get_ClientIP() FNDA:19,System.Object WireMock.Admin.Mappings.RequestModel::get_ClientIP() DA:13,19 @@ -6643,7 +6640,7 @@ BRH:0 FNF:8 FNH:8 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ResponseModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ResponseModel.cs FN:12,System.Nullable`1 WireMock.Admin.Mappings.ResponseModel::get_StatusCode() FNDA:36,System.Nullable`1 WireMock.Admin.Mappings.ResponseModel::get_StatusCode() DA:13,36 @@ -6699,7 +6696,7 @@ BRH:0 FNF:16 FNH:16 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\StatusModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\StatusModel.cs FN:12,System.Nullable`1 WireMock.Admin.Mappings.StatusModel::get_Guid() FNDA:36,System.Nullable`1 WireMock.Admin.Mappings.StatusModel::get_Guid() DA:13,36 @@ -6713,7 +6710,7 @@ BRH:0 FNF:2 FNH:2 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\UrlModel.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\UrlModel.cs FN:10,WireMock.Admin.Mappings.MatcherModel[] WireMock.Admin.Mappings.UrlModel::get_Matchers() FNDA:0,WireMock.Admin.Mappings.MatcherModel[] WireMock.Admin.Mappings.UrlModel::get_Matchers() DA:11,0 @@ -6724,99 +6721,123 @@ BRH:0 FNF:1 FNH:0 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net.StandAlone\SimpleCommandLineParser.cs -FN:9,System.Collections.Generic.IDictionary`2 WireMock.Net.StandAlone.SimpleCommandLineParser::get_Arguments() -FNDA:0,System.Collections.Generic.IDictionary`2 WireMock.Net.StandAlone.SimpleCommandLineParser::get_Arguments() -DA:10,0 -FN:12,System.Void WireMock.Net.StandAlone.SimpleCommandLineParser::Parse(System.String[]) -FNDA:0,System.Void WireMock.Net.StandAlone.SimpleCommandLineParser::Parse(System.String[]) -DA:13,0 -DA:14,0 -DA:16,0 -DA:17,0 -DA:18,0 -DA:19,0 -DA:20,0 -DA:21,0 -DA:22,0 -DA:23,0 -DA:24,0 -DA:26,0 -DA:27,0 -DA:28,0 -DA:29,0 -DA:30,0 -DA:31,0 -DA:32,0 -DA:34,0 -DA:35,0 -DA:36,0 -DA:37,0 -DA:39,0 -DA:40,0 -DA:41,0 -DA:42,0 -DA:43,0 -BRDA:17,155,1,0 -BRDA:19,41,0,0 -BRDA:21,57,0,0 -BRDA:21,57,1,0 -BRDA:19,41,1,0 -BRDA:29,109,0,0 -BRDA:29,109,1,0 -BRDA:17,155,0,0 -BRDA:39,173,0,0 -BRDA:39,173,1,0 -FN:45,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::Contains(System.String) -FNDA:0,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::Contains(System.String) -DA:46,0 -DA:47,0 -DA:48,0 -FN:50,System.String[] WireMock.Net.StandAlone.SimpleCommandLineParser::GetValues(System.String,System.String[]) -FNDA:0,System.String[] WireMock.Net.StandAlone.SimpleCommandLineParser::GetValues(System.String,System.String[]) -DA:51,0 -DA:52,0 -DA:53,0 -BRDA:52,8,0,0 -BRDA:52,8,1,0 -FN:55,T WireMock.Net.StandAlone.SimpleCommandLineParser::GetValue(System.String,System.Func`2,T) -FNDA:0,T WireMock.Net.StandAlone.SimpleCommandLineParser::GetValue(System.String,System.Func`2,T) +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net.StandAlone\SimpleCommandLineParser.cs +FN:18,System.Collections.Generic.IDictionary`2 WireMock.Net.StandAlone.SimpleCommandLineParser::get_Arguments() +FNDA:47,System.Collections.Generic.IDictionary`2 WireMock.Net.StandAlone.SimpleCommandLineParser::get_Arguments() +DA:19,47 +FN:21,System.Void WireMock.Net.StandAlone.SimpleCommandLineParser::Parse(System.String[]) +FNDA:5,System.Void WireMock.Net.StandAlone.SimpleCommandLineParser::Parse(System.String[]) +DA:22,5 +DA:23,5 +DA:24,5 +DA:26,5 +DA:27,67 +DA:28,26 +DA:29,26 +DA:30,7 +DA:31,7 +DA:33,7 +DA:34,6 +DA:35,6 +DA:36,6 +DA:38,7 +DA:39,7 +DA:40,7 +DA:42,19 +DA:43,6 +DA:44,6 +DA:46,6 +DA:47,2 +DA:48,2 +DA:49,2 +DA:51,6 +DA:52,6 +DA:53,6 +DA:54,13 +DA:55,0 DA:56,0 DA:57,0 -DA:58,0 -BRDA:57,8,0,0 -BRDA:57,8,1,0 -FN:60,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::GetBoolValue(System.String,System.Boolean) -FNDA:0,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::GetBoolValue(System.String,System.Boolean) -DA:61,0 -DA:62,0 -DA:63,0 -DA:64,0 -DA:65,0 -DA:66,0 -DA:67,0 -FN:69,System.Nullable`1 WireMock.Net.StandAlone.SimpleCommandLineParser::GetIntValue(System.String,System.Nullable`1) -FNDA:0,System.Nullable`1 WireMock.Net.StandAlone.SimpleCommandLineParser::GetIntValue(System.String,System.Nullable`1) -DA:70,0 -DA:71,0 -DA:72,0 -DA:73,0 -DA:74,0 -DA:75,0 -DA:76,0 -FN:78,System.String WireMock.Net.StandAlone.SimpleCommandLineParser::GetStringValue(System.String,System.String) -FNDA:0,System.String WireMock.Net.StandAlone.SimpleCommandLineParser::GetStringValue(System.String,System.String) -DA:79,0 -DA:80,0 -DA:81,0 -LF:54 -LH:0 -BRF:20 -BRH:0 +DA:59,13 +DA:60,13 +DA:61,7 +DA:62,7 +DA:63,7 +DA:65,6 +DA:66,6 +DA:67,6 +DA:68,13 +DA:69,26 +DA:71,5 +DA:72,5 +DA:73,5 +DA:74,5 +DA:75,5 +BRDA:27,301,1,26 +BRDA:29,45,0,7 +BRDA:33,63,0,6 +BRDA:33,63,1,7 +BRDA:29,45,1,19 +BRDA:42,133,0,6 +BRDA:46,151,0,2 +BRDA:46,151,1,6 +BRDA:42,133,1,13 +BRDA:54,212,0,0 +BRDA:54,212,1,13 +BRDA:60,247,0,7 +BRDA:60,247,1,6 +BRDA:27,301,0,5 +BRDA:71,319,0,5 +BRDA:71,319,1,5 +FN:77,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::Contains(System.String) +FNDA:16,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::Contains(System.String) +DA:78,16 +DA:79,16 +DA:80,16 +FN:82,System.String[] WireMock.Net.StandAlone.SimpleCommandLineParser::GetValues(System.String,System.String[]) +FNDA:0,System.String[] WireMock.Net.StandAlone.SimpleCommandLineParser::GetValues(System.String,System.String[]) +DA:83,0 +DA:84,0 +DA:85,0 +BRDA:84,8,0,0 +BRDA:84,8,1,0 +FN:87,T WireMock.Net.StandAlone.SimpleCommandLineParser::GetValue(System.String,System.Func`2,T) +FNDA:16,T WireMock.Net.StandAlone.SimpleCommandLineParser::GetValue(System.String,System.Func`2,T) +DA:88,16 +DA:89,16 +DA:90,16 +BRDA:89,8,0,3 +BRDA:89,8,1,13 +FN:92,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::GetBoolValue(System.String,System.Boolean) +FNDA:3,System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::GetBoolValue(System.String,System.Boolean) +DA:93,3 +DA:94,3 +DA:95,5 +DA:96,5 +DA:97,5 +DA:98,5 +DA:99,3 +FN:101,System.Nullable`1 WireMock.Net.StandAlone.SimpleCommandLineParser::GetIntValue(System.String,System.Nullable`1) +FNDA:4,System.Nullable`1 WireMock.Net.StandAlone.SimpleCommandLineParser::GetIntValue(System.String,System.Nullable`1) +DA:102,4 +DA:103,4 +DA:104,6 +DA:105,6 +DA:106,6 +DA:107,6 +DA:108,4 +FN:110,System.String WireMock.Net.StandAlone.SimpleCommandLineParser::GetStringValue(System.String,System.String) +FNDA:9,System.String WireMock.Net.StandAlone.SimpleCommandLineParser::GetStringValue(System.String,System.String) +DA:111,9 +DA:112,18 +DA:113,9 +LF:72 +LH:66 +BRF:26 +BRH:20 FNF:8 -FNH:0 +FNH:7 end_of_record -SF:C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net.StandAlone\StandAloneApp.cs +SF:C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net.StandAlone\StandAloneApp.cs FN:20,WireMock.Server.FluentMockServer WireMock.Net.StandAlone.StandAloneApp::Start(WireMock.Settings.IFluentMockServerSettings) FNDA:0,WireMock.Server.FluentMockServer WireMock.Net.StandAlone.StandAloneApp::Start(WireMock.Settings.IFluentMockServerSettings) DA:21,0 diff --git a/report/coverage.opencover.xml b/report/coverage.opencover.xml index 2b226f78..4f9192e4 100644 --- a/report/coverage.opencover.xml +++ b/report/coverage.opencover.xml @@ -1,107 +1,107 @@  - + - - C:\Users\azureuser\Documents\Github\WireMock.Net\test\WireMock.Net.Tests\bin\Debug\netcoreapp2.1\WireMock.Net.dll - 2018-09-26T09:51:43 + + C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\test\WireMock.Net.Tests\bin\Debug\netcoreapp2.1\WireMock.Net.dll + 2018-10-09T10:23:34 WireMock.Net - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -125,10 +125,10 @@ System.String WireMock.Mapping::get_Title() - + - + @@ -136,10 +136,10 @@ System.String WireMock.Mapping::get_Path() - + - + @@ -147,10 +147,10 @@ System.Int32 WireMock.Mapping::get_Priority() - + - + @@ -158,10 +158,10 @@ System.String WireMock.Mapping::get_Scenario() - + - + @@ -169,10 +169,10 @@ System.String WireMock.Mapping::get_ExecutionConditionState() - + - + @@ -180,10 +180,10 @@ System.String WireMock.Mapping::get_NextState() - + - + @@ -191,10 +191,10 @@ WireMock.Matchers.Request.IRequestMatcher WireMock.Mapping::get_RequestMatcher() - + - + @@ -202,10 +202,10 @@ WireMock.ResponseProviders.IResponseProvider WireMock.Mapping::get_Provider() - + - + @@ -213,40 +213,17 @@ System.Boolean WireMock.Mapping::get_IsStartState() - + - - - - - - + + + + + + - - - - - - WireMock.Matchers.Request.RequestMatchResult WireMock.Mapping::GetRequestMatchResult(WireMock.RequestMessage,System.String) - - - - - - - - - - - - - - - - - - + @@ -254,15 +231,38 @@ System.Boolean WireMock.Mapping::get_IsAdminInterface() - + - - - - + + + + - + + + + + + WireMock.Matchers.Request.RequestMatchResult WireMock.Mapping::GetRequestMatchResult(WireMock.RequestMessage,System.String) + + + + + + + + + + + + + + + + + + @@ -270,43 +270,43 @@ System.Void WireMock.Mapping::.ctor(System.Guid,System.String,System.String,WireMock.Matchers.Request.IRequestMatcher,WireMock.ResponseProviders.IResponseProvider,System.Int32,System.String,System.String,System.String) - - - - - - - - - - - - + + + + + + + + + + + + - + - WireMock.Mapping/<ResponseToAsync>d__31 + WireMock.Mapping/<ResponseToAsync>d__33 - System.Void WireMock.Mapping/<ResponseToAsync>d__31::MoveNext() + System.Void WireMock.Mapping/<ResponseToAsync>d__33::MoveNext() - - - + + + - - + + - + @@ -331,7 +331,7 @@ System.String WireMock.RequestMessage::get_Url() - + @@ -342,7 +342,7 @@ System.String WireMock.RequestMessage::get_AbsoluteUrl() - + @@ -364,7 +364,7 @@ System.String WireMock.RequestMessage::get_Path() - + @@ -419,7 +419,7 @@ System.Collections.Generic.IDictionary`2<System.String,WireMock.Util.WireMockList`1<System.String>> WireMock.RequestMessage::get_Headers() - + @@ -441,7 +441,7 @@ System.Collections.Generic.IDictionary`2<System.String,WireMock.Util.WireMockList`1<System.String>> WireMock.RequestMessage::get_Query() - + @@ -474,7 +474,7 @@ System.Object WireMock.RequestMessage::get_BodyAsJson() - + @@ -485,7 +485,7 @@ System.Byte[] WireMock.RequestMessage::get_BodyAsBytes() - + @@ -630,7 +630,7 @@ - + @@ -638,8 +638,8 @@ - - + + @@ -679,7 +679,7 @@ System.Collections.Generic.IDictionary`2<System.String,WireMock.Util.WireMockList`1<System.String>> WireMock.ResponseMessage::get_Headers() - + @@ -690,7 +690,7 @@ System.Int32 WireMock.ResponseMessage::get_StatusCode() - + @@ -701,7 +701,7 @@ System.String WireMock.ResponseMessage::get_BodyOriginal() - + @@ -723,7 +723,7 @@ System.String WireMock.ResponseMessage::get_Body() - + @@ -734,7 +734,7 @@ System.Object WireMock.ResponseMessage::get_BodyAsJson() - + @@ -756,7 +756,7 @@ System.Byte[] WireMock.ResponseMessage::get_BodyAsBytes() - + @@ -767,7 +767,7 @@ System.String WireMock.ResponseMessage::get_BodyAsFile() - + @@ -789,7 +789,7 @@ System.Text.Encoding WireMock.ResponseMessage::get_BodyEncoding() - + @@ -951,17 +951,17 @@ T WireMock.Validation.Check::NotNull(T,System.String) - - + + - - + + - + @@ -992,9 +992,9 @@ System.Collections.Generic.IList`1<T> WireMock.Validation.Check::NotNullOrEmpty(System.Collections.Generic.IList`1<T>,System.String) - - - + + + @@ -2241,8 +2241,8 @@ - - + + @@ -4077,7 +4077,7 @@ - + WireMock.Server.FluentMockServer @@ -4086,13 +4086,13 @@ System.Boolean WireMock.Server.FluentMockServer::get_IsStarted() - + - - + + - + @@ -4100,10 +4100,10 @@ System.Collections.Generic.List`1<System.Int32> WireMock.Server.FluentMockServer::get_Ports() - + - + @@ -4111,10 +4111,10 @@ System.String[] WireMock.Server.FluentMockServer::get_Urls() - + - + @@ -4122,10 +4122,10 @@ System.Collections.Generic.IEnumerable`1<WireMock.IMapping> WireMock.Server.FluentMockServer::get_Mappings() - + - + @@ -4133,10 +4133,10 @@ System.Collections.Concurrent.ConcurrentDictionary`2<System.String,WireMock.ScenarioState> WireMock.Server.FluentMockServer::get_Scenarios() - + - + @@ -4144,13 +4144,13 @@ System.Void WireMock.Server.FluentMockServer::Dispose() - - - - + + + + - + @@ -4158,18 +4158,18 @@ System.Void WireMock.Server.FluentMockServer::Dispose(System.Boolean) - - - - - - + + + + + + - - + + - + @@ -4177,13 +4177,13 @@ WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(WireMock.Settings.IFluentMockServerSettings) - - - - + + + + - + @@ -4191,16 +4191,16 @@ WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.Nullable`1<System.Int32>,System.Boolean) - - - - - - - + + + + + + + - + @@ -4208,16 +4208,16 @@ WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::Start(System.String[]) - - - - - - - + + + + + + + - + @@ -4225,17 +4225,17 @@ WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.Nullable`1<System.Int32>,System.Boolean) - - - - - - - - + + + + + + + + - + @@ -4243,17 +4243,17 @@ WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterface(System.String[]) - - - - - - - - + + + + + + + + - + @@ -4261,18 +4261,18 @@ WireMock.Server.FluentMockServer WireMock.Server.FluentMockServer::StartWithAdminInterfaceAndReadStaticMappings(System.String[]) - - - - - - - - - + + + + + + + + + - + @@ -4280,18 +4280,18 @@ System.Void WireMock.Server.FluentMockServer::Stop() - - - - + + + + - - - - + + + + - + @@ -4299,18 +4299,18 @@ System.Void WireMock.Server.FluentMockServer::AddCatchAllMapping() - - - - - - + + + + + + - - + + - + @@ -4318,13 +4318,13 @@ System.Void WireMock.Server.FluentMockServer::Reset() - - - - + + + + - + @@ -4332,20 +4332,20 @@ System.Void WireMock.Server.FluentMockServer::ResetMappings() - - - - - - + + + + + + - - - - + + + + - + @@ -4353,18 +4353,18 @@ System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.Guid) - - - - - - + + + + + + - - + + - + @@ -4372,13 +4372,13 @@ System.Boolean WireMock.Server.FluentMockServer::DeleteMapping(System.String) - - - - + + + + - + @@ -4386,12 +4386,12 @@ System.Void WireMock.Server.FluentMockServer::AddGlobalProcessingDelay(System.TimeSpan) - - - + + + - + @@ -4399,13 +4399,13 @@ System.Void WireMock.Server.FluentMockServer::AllowPartialMapping(System.Boolean) - - - - + + + + - + @@ -4413,15 +4413,15 @@ System.Void WireMock.Server.FluentMockServer::SetBasicAuthentication(System.String,System.String) - - - - - - + + + + + + - + @@ -4429,12 +4429,12 @@ System.Void WireMock.Server.FluentMockServer::RemoveBasicAuthentication() - - - + + + - + @@ -4442,12 +4442,12 @@ System.Void WireMock.Server.FluentMockServer::SetMaxRequestLogCount(System.Nullable`1<System.Int32>) - - - + + + - + @@ -4455,12 +4455,12 @@ System.Void WireMock.Server.FluentMockServer::SetRequestLogExpirationDuration(System.Nullable`1<System.Int32>) - - - + + + - + @@ -4468,12 +4468,12 @@ System.Void WireMock.Server.FluentMockServer::ResetScenarios() - - - + + + - + @@ -4481,12 +4481,12 @@ WireMock.Server.IRespondWithAProvider WireMock.Server.FluentMockServer::Given(WireMock.Matchers.Request.IRequestMatcher) - - - + + + - + @@ -4494,134 +4494,134 @@ System.Void WireMock.Server.FluentMockServer::RegisterMapping(WireMock.IMapping) - - - - - - - - - + + + + + + + + + - - + + - + - - + + System.Void WireMock.Server.FluentMockServer::.ctor(WireMock.Settings.IFluentMockServerSettings) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -4745,7 +4745,7 @@ System.Guid WireMock.Server.RespondWithAProvider::get_Guid() - + @@ -4824,10 +4824,10 @@ WireMock.Server.IRespondWithAProvider WireMock.Server.RespondWithAProvider::AtPriority(System.Int32) - - - - + + + + @@ -4913,75 +4913,75 @@ WireMock.Admin.Requests.LogEntryModel WireMock.Serialization.LogEntryMapper::Map(WireMock.Logging.LogEntry) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -6181,8 +6181,8 @@ WireMock.RequestBuilders.IRequestBuilder WireMock.RequestBuilders.Request::WithPath(System.String[]) - - + + @@ -6196,7 +6196,7 @@ - + @@ -6775,7 +6775,7 @@ - + WireMock.Owin.AspNetCoreSelfHost @@ -6784,7 +6784,7 @@ System.Boolean WireMock.Owin.AspNetCoreSelfHost::get_IsStarted() - + @@ -6811,19 +6811,19 @@ - - + + System.Exception WireMock.Owin.AspNetCoreSelfHost::get_RunningException() - + - + - + System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::StartAsync() @@ -6877,39 +6877,36 @@ - - - - + - + - - + + - System.Void WireMock.Owin.AspNetCoreSelfHost::StartServers() + System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::RunHost(System.Threading.CancellationToken) - - - - - - - - - + + + + + + + + + - - - - + + + + - + @@ -6917,14 +6914,14 @@ System.Threading.Tasks.Task WireMock.Owin.AspNetCoreSelfHost::StopAsync() - - - - - + + + + + - + @@ -6981,7 +6978,7 @@ - + @@ -7046,11 +7043,11 @@ - + WireMock.Owin.MappingMatcher - + System.ValueTuple`2<WireMock.IMapping,WireMock.Matchers.Request.RequestMatchResult> WireMock.Owin.MappingMatcher::Match(WireMock.RequestMessage) @@ -7073,11 +7070,10 @@ - - - - - + + + + @@ -7087,23 +7083,23 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + @@ -7133,7 +7129,7 @@ - + WireMock.Owin.WireMockMiddleware @@ -7142,12 +7138,12 @@ System.Threading.Tasks.Task WireMock.Owin.WireMockMiddleware::Invoke(Microsoft.AspNetCore.Http.HttpContext) - - - + + + - + @@ -7155,52 +7151,52 @@ System.Void WireMock.Owin.WireMockMiddleware::LogRequest(WireMock.Logging.LogEntry,System.Boolean) - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - + - + System.Void WireMock.Owin.WireMockMiddleware::.ctor(Microsoft.AspNetCore.Http.RequestDelegate,WireMock.Owin.IWireMockMiddlewareOptions,WireMock.Owin.Mappers.IOwinRequestMapper,WireMock.Owin.Mappers.IOwinResponseMapper,WireMock.Owin.IMappingMatcher) @@ -7210,14 +7206,15 @@ - + + - + @@ -7242,13 +7239,13 @@ System.Boolean WireMock.Owin.WireMockMiddleware/<>c::<InvokeInternal>b__7_0(WireMock.IMapping) - + - - + + - + @@ -7262,127 +7259,127 @@ System.Void WireMock.Owin.WireMockMiddleware/<InvokeInternal>d__7::MoveNext() - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -7529,7 +7526,7 @@ - + @@ -7568,9 +7565,9 @@ - - - + + + @@ -7593,7 +7590,7 @@ - + @@ -7622,8 +7619,8 @@ System.Void WireMock.Owin.Mappers.OwinResponseMapper::SetResponseHeaders(WireMock.ResponseMessage,Microsoft.AspNetCore.Http.HttpResponse) - - + + @@ -7696,15 +7693,15 @@ - + - + - + @@ -7719,16 +7716,16 @@ - + - - + + - + @@ -8621,19 +8618,19 @@ System.Void WireMock.Matchers.RegexMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) - + - + - + @@ -8852,9 +8849,9 @@ System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String,System.Boolean) - - - + + + @@ -8878,14 +8875,14 @@ System.Void WireMock.Matchers.WildcardMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[],System.Boolean) - - - - + + + + - + @@ -8998,7 +8995,7 @@ System.Double WireMock.Matchers.Request.RequestMatchResult::get_TotalScore() - + @@ -9009,7 +9006,7 @@ System.Int32 WireMock.Matchers.Request.RequestMatchResult::get_TotalNumber() - + @@ -9020,7 +9017,7 @@ System.Boolean WireMock.Matchers.Request.RequestMatchResult::get_IsPerfectMatch() - + @@ -9031,10 +9028,10 @@ System.Double WireMock.Matchers.Request.RequestMatchResult::get_AverageTotalScore() - + - + @@ -9479,9 +9476,9 @@ System.Void WireMock.Matchers.Request.RequestMessageCompositeMatcher::.ctor(System.Collections.Generic.IEnumerable`1<WireMock.Matchers.Request.IRequestMatcher>,WireMock.Matchers.Request.CompositeMatcherType) - - - + + + @@ -10096,9 +10093,9 @@ System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.MatchBehaviour,System.String[]) - - - + + + @@ -10109,11 +10106,11 @@ System.Void WireMock.Matchers.Request.RequestMessagePathMatcher::.ctor(WireMock.Matchers.IStringMatcher[]) - - - - - + + + + + @@ -10318,7 +10315,7 @@ WireMock.RequestMessage WireMock.Logging.LogEntry::get_RequestMessage() - + @@ -10329,7 +10326,7 @@ WireMock.ResponseMessage WireMock.Logging.LogEntry::get_ResponseMessage() - + @@ -10340,7 +10337,7 @@ WireMock.Matchers.Request.RequestMatchResult WireMock.Logging.LogEntry::get_RequestMatchResult() - + @@ -10830,18 +10827,18 @@ System.Security.Cryptography.X509Certificates.X509Certificate2 WireMock.HttpsCertificate.ClientCertificateHelper::GetCertificate(System.String) - - - - - - - - - - - - + + + + + + + + + + + + @@ -10849,12 +10846,12 @@ - - - - + + + + - + @@ -11089,7 +11086,7 @@ System.Guid WireMock.Admin.Requests.LogEntryModel::get_Guid() - + @@ -11161,7 +11158,7 @@ System.Double WireMock.Admin.Requests.LogRequestMatchModel::get_TotalScore() - + @@ -11222,7 +11219,7 @@ System.String WireMock.Admin.Requests.LogRequestModel::get_ClientIP() - + @@ -11266,7 +11263,7 @@ System.String WireMock.Admin.Requests.LogRequestModel::get_Url() - + @@ -11277,7 +11274,7 @@ System.String WireMock.Admin.Requests.LogRequestModel::get_AbsoluteUrl() - + @@ -11288,7 +11285,7 @@ System.Collections.Generic.IDictionary`2<System.String,WireMock.Util.WireMockList`1<System.String>> WireMock.Admin.Requests.LogRequestModel::get_Query() - + @@ -11354,7 +11351,7 @@ System.Byte[] WireMock.Admin.Requests.LogRequestModel::get_BodyAsBytes() - + @@ -11365,7 +11362,7 @@ WireMock.Admin.Mappings.EncodingModel WireMock.Admin.Requests.LogRequestModel::get_BodyEncoding() - + @@ -11382,7 +11379,7 @@ System.Int32 WireMock.Admin.Requests.LogResponseModel::get_StatusCode() - + @@ -11404,7 +11401,7 @@ System.String WireMock.Admin.Requests.LogResponseModel::get_BodyDestination() - + @@ -11415,7 +11412,7 @@ System.String WireMock.Admin.Requests.LogResponseModel::get_Body() - + @@ -11437,7 +11434,7 @@ System.Byte[] WireMock.Admin.Requests.LogResponseModel::get_BodyAsBytes() - + @@ -11470,7 +11467,7 @@ System.String WireMock.Admin.Requests.LogResponseModel::get_BodyOriginal() - + @@ -12140,90 +12137,114 @@ - - C:\Users\azureuser\Documents\Github\WireMock.Net\test\WireMock.Net.Tests\bin\Debug\netcoreapp2.1\WireMock.Net.StandAlone.dll - 2018-09-26T09:51:43 + + C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\test\WireMock.Net.Tests\bin\Debug\netcoreapp2.1\WireMock.Net.StandAlone.dll + 2018-10-09T10:23:34 WireMock.Net.StandAlone - - + + - + WireMock.Net.StandAlone.SimpleCommandLineParser - - + + System.Collections.Generic.IDictionary`2<System.String,System.String[]> WireMock.Net.StandAlone.SimpleCommandLineParser::get_Arguments() - + - + - - + + System.Void WireMock.Net.StandAlone.SimpleCommandLineParser::Parse(System.String[]) - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + - + - - + + System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::Contains(System.String) - - - + + + - + @@ -12231,94 +12252,94 @@ System.String[] WireMock.Net.StandAlone.SimpleCommandLineParser::GetValues(System.String,System.String[]) - - - + + + - - + + - + - - + + T WireMock.Net.StandAlone.SimpleCommandLineParser::GetValue(System.String,System.Func`2<System.String[],T>,T) - - - + + + - - + + - + - - + + System.Boolean WireMock.Net.StandAlone.SimpleCommandLineParser::GetBoolValue(System.String,System.Boolean) - - - - - - - + + + + + + + - + - - + + System.Nullable`1<System.Int32> WireMock.Net.StandAlone.SimpleCommandLineParser::GetIntValue(System.String,System.Nullable`1<System.Int32>) - - - - - - - + + + + + + + - + - - + + System.String WireMock.Net.StandAlone.SimpleCommandLineParser::GetStringValue(System.String,System.String) - - - + + + - + - - WireMock.Net.StandAlone.SimpleCommandLineParser/<>c__DisplayClass7_0 + + WireMock.Net.StandAlone.SimpleCommandLineParser/<>c__DisplayClass10_0 - - WireMock.Net.StandAlone.SimpleCommandLineParser/<>c__DisplayClass8_0 + + WireMock.Net.StandAlone.SimpleCommandLineParser/<>c__DisplayClass11_0 - - WireMock.Net.StandAlone.SimpleCommandLineParser/<>c__DisplayClass9_0 + + WireMock.Net.StandAlone.SimpleCommandLineParser/<>c__DisplayClass12_0 diff --git a/report/coverlet/WireMock.Net.StandAlone_SimpleCommandLineParser.htm b/report/coverlet/WireMock.Net.StandAlone_SimpleCommandLineParser.htm index d9f17212..82d16e7d 100644 --- a/report/coverlet/WireMock.Net.StandAlone_SimpleCommandLineParser.htm +++ b/report/coverlet/WireMock.Net.StandAlone_SimpleCommandLineParser.htm @@ -16,30 +16,30 @@ Class:WireMock.Net.StandAlone.SimpleCommandLineParser Assembly:WireMock.Net.StandAlone -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net.StandAlone\SimpleCommandLineParser.cs -Covered lines:0 -Uncovered lines:54 -Coverable lines:54 -Total lines:83 -Line coverage:0% -Branch coverage:0% +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net.StandAlone\SimpleCommandLineParser.cs +Covered lines:66 +Uncovered lines:6 +Coverable lines:72 +Total lines:115 +Line coverage:91.6% +Branch coverage:85%

Metrics

- - + + - - - - + + + +
MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
Parse(...)0000
Contains(...)0000
Parse(...)000.9330.938
Contains(...)0010
GetValues(...)0000
GetValue(...)0000
GetBoolValue(...)0000
GetIntValue(...)0000
GetStringValue(...)0000
GetValue(...)0011
GetBoolValue(...)0010
GetIntValue(...)0010
GetStringValue(...)0010

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net.StandAlone\SimpleCommandLineParser.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net.StandAlone\SimpleCommandLineParser.cs

@@ -52,94 +52,126 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#LineLine coverage
 7    // Based on http://blog.gauffin.org/2014/12/simple-command-line-parser/
 8    internal class SimpleCommandLineParser
 9    {
 010        private IDictionary<string, string[]> Arguments { get; } = new Dictionary<string, string[]>();
 11
 12        public void Parse(string[] args)
 013        {
 014            string currentName = null;
 15
 016            var values = new List<string>();
 017            foreach (string arg in args)
 018            {
 019                if (arg.StartsWith("--"))
 020                {
 021                    if (!string.IsNullOrEmpty(currentName))
 022                    {
 023                        Arguments[currentName] = values.ToArray();
 024                    }
 10        private const string Sigil = "--";
 11        private const string SigilAzureServiceFabric = "'--";
 12
 13        private enum SigilType
 14        {
 15            Normal,
 16            AzureServiceFabric
 17        }
 18
 4719        private IDictionary<string, string[]> Arguments { get; } = new Dictionary<string, string[]>();
 20
 21        public void Parse(string[] args)
 522        {
 523            SigilType sigil = SigilType.Normal;
 524            string currentName = null;
 25
 026                    values.Clear();
 027                    currentName = arg.Substring(2);
 028                }
 029                else if (string.IsNullOrEmpty(currentName))
 030                {
 031                    Arguments[arg] = new string[0];
 032                }
 33                else
 034                {
 035                    values.Add(arg);
 036                }
 037            }
 38
 039            if (!string.IsNullOrEmpty(currentName))
 040            {
 041                Arguments[currentName] = values.ToArray();
 042            }
 043        }
 44
 45        public bool Contains(string name)
 046        {
 047            return Arguments.ContainsKey(name);
 048        }
 49
 50        public string[] GetValues(string name, string[] defaultValue = null)
 051        {
 052            return Contains(name) ? Arguments[name] : defaultValue;
 053        }
 54
 55        public T GetValue<T>(string name, Func<string[], T> func, T defaultValue = default(T))
 056        {
 057            return Contains(name) ? func(Arguments[name]) : defaultValue;
 058        }
 59
 60        public bool GetBoolValue(string name, bool defaultValue = false)
 061        {
 062            return GetValue(name, values =>
 063            {
 064                string value = values.FirstOrDefault();
 065                return !string.IsNullOrEmpty(value) ? bool.Parse(value) : defaultValue;
 066            }, defaultValue);
 067        }
 68
 69        public int? GetIntValue(string name, int? defaultValue = null)
 070        {
 071            return GetValue(name, values =>
 072            {
 073                string value = values.FirstOrDefault();
 074                return !string.IsNullOrEmpty(value) ? int.Parse(value) : defaultValue;
 075            }, defaultValue);
 076        }
 77
 78        public string GetStringValue(string name, string defaultValue = null)
 079        {
 080            return GetValue(name, values => values.FirstOrDefault() ?? defaultValue, defaultValue);
 081        }
 82    }
 83}
 526            var values = new List<string>();
 6727            foreach (string arg in args)
 2628            {
 2629                if (arg.StartsWith(Sigil))
 730                {
 731                    sigil = SigilType.Normal;
 32
 733                    if (!string.IsNullOrEmpty(currentName))
 634                    {
 635                        Arguments[currentName] = values.ToArray();
 636                    }
 37
 738                    values.Clear();
 739                    currentName = arg.Substring(Sigil.Length);
 740                }
 41                // Azure Service Fabric passes the command line parameter surrounded with single quotes. (https://github
 1942                else if (arg.StartsWith(SigilAzureServiceFabric))
 643                {
 644                    sigil = SigilType.AzureServiceFabric;
 45
 646                    if (!string.IsNullOrEmpty(currentName))
 247                    {
 248                        Arguments[currentName] = values.ToArray();
 249                    }
 50
 651                    values.Clear();
 652                    currentName = arg.Substring(SigilAzureServiceFabric.Length);
 653                }
 1354                else if (string.IsNullOrEmpty(currentName))
 055                {
 056                    Arguments[arg] = new string[0];
 057                }
 58                else
 1359                {
 1360                    if (sigil == SigilType.Normal)
 761                    {
 762                        values.Add(arg);
 763                    }
 64                    else
 665                    {
 666                        values.Add(arg.Substring(0, arg.Length - 1));
 667                    }
 1368                }
 2669            }
 70
 571            if (!string.IsNullOrEmpty(currentName))
 572            {
 573                Arguments[currentName] = values.ToArray();
 574            }
 575        }
 76
 77        public bool Contains(string name)
 1678        {
 1679            return Arguments.ContainsKey(name);
 1680        }
 81
 82        public string[] GetValues(string name, string[] defaultValue = null)
 083        {
 084            return Contains(name) ? Arguments[name] : defaultValue;
 085        }
 86
 87        public T GetValue<T>(string name, Func<string[], T> func, T defaultValue = default(T))
 1688        {
 1689            return Contains(name) ? func(Arguments[name]) : defaultValue;
 1690        }
 91
 92        public bool GetBoolValue(string name, bool defaultValue = false)
 393        {
 394            return GetValue(name, values =>
 595            {
 596                string value = values.FirstOrDefault();
 597                return !string.IsNullOrEmpty(value) ? bool.Parse(value) : defaultValue;
 598            }, defaultValue);
 399        }
 100
 101        public int? GetIntValue(string name, int? defaultValue = null)
 4102        {
 4103            return GetValue(name, values =>
 6104            {
 6105                string value = values.FirstOrDefault();
 6106                return !string.IsNullOrEmpty(value) ? int.Parse(value) : defaultValue;
 6107            }, defaultValue);
 4108        }
 109
 110        public string GetStringValue(string name, string defaultValue = null)
 9111        {
 18112            return GetValue(name, values => values.FirstOrDefault() ?? defaultValue, defaultValue);
 9113        }
 114    }
 115}
- + diff --git a/report/coverlet/WireMock.Net.StandAlone_StandAloneApp.htm b/report/coverlet/WireMock.Net.StandAlone_StandAloneApp.htm index 5209e0c3..e030df8a 100644 --- a/report/coverlet/WireMock.Net.StandAlone_StandAloneApp.htm +++ b/report/coverlet/WireMock.Net.StandAlone_StandAloneApp.htm @@ -16,7 +16,7 @@ Class:WireMock.Net.StandAlone.StandAloneApp Assembly:WireMock.Net.StandAlone -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net.StandAlone\StandAloneApp.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net.StandAlone\StandAloneApp.cs Covered lines:0 Uncovered lines:48 Coverable lines:48 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net.StandAlone\StandAloneApp.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net.StandAlone\StandAloneApp.cs

@@ -86,7 +86,7 @@ - + @@ -130,7 +130,7 @@
#LineLine coverage
 046                StartAdminInterface = parser.GetBoolValue("StartAdminInterface", true),
 047                ReadStaticMappings = parser.GetBoolValue("ReadStaticMappings"),
 048                WatchStaticMappings = parser.GetBoolValue("WatchStaticMappings"),
 049                AllowPartialMapping = parser.GetBoolValue("AllowPartialMapping", true),
 049                AllowPartialMapping = parser.GetBoolValue("AllowPartialMapping", false),
 050                AdminUsername = parser.GetStringValue("AdminUsername"),
 051                AdminPassword = parser.GetStringValue("AdminPassword"),
 052                MaxRequestLogCount = parser.GetIntValue("MaxRequestLogCount"),
 90}
- +

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_AspNetCoreSelfHost.htm b/report/coverlet/WireMock.Net_AspNetCoreSelfHost.htm index 0bbee9d7..8b6bf530 100644 --- a/report/coverlet/WireMock.Net_AspNetCoreSelfHost.htm +++ b/report/coverlet/WireMock.Net_AspNetCoreSelfHost.htm @@ -16,12 +16,12 @@ Class:WireMock.Owin.AspNetCoreSelfHost Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\AspNetCoreSelfHost.cs -Covered lines:88 -Uncovered lines:5 -Coverable lines:93 -Total lines:157 -Line coverage:94.6% +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\AspNetCoreSelfHost.cs +Covered lines:83 +Uncovered lines:7 +Coverable lines:90 +Total lines:159 +Line coverage:92.2% Branch coverage:75% @@ -30,13 +30,13 @@ MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage StartAsync()0010 -StartServers()000.6880 +RunHost(...)000.6250 StopAsync()0010 .ctor(...)0010.75

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\AspNetCoreSelfHost.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\AspNetCoreSelfHost.cs

@@ -68,13 +68,13 @@ - + - + @@ -145,18 +145,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -165,41 +165,43 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#LineLine coverage
 26
 27        private IWebHost _host;
 28
 53129        public bool IsStarted { get; private set; }
 9629        public bool IsStarted { get; private set; }
 30
 9431        public List<string> Urls { get; } = new List<string>();
 32
 14133        public List<int> Ports { get; } = new List<int>();
 34
 43335        public Exception RunningException => _runningException;
 035        public Exception RunningException => _runningException;
 36
 4737        public AspNetCoreSelfHost([NotNull] IWireMockMiddlewareOptions options, [NotNull] params string[] uriPrefixes)
 4738        {
 47103#endif
 47104                .Build();
 105
 47106            return Task.Run(() =>
 94107            {
 94108                StartServers();
 49109            }, _cts.Token);
 47110        }
 111
 112        private void StartServers()
 47113        {
 114            try
 47115            {
 47116                var appLifetime = (IApplicationLifetime)_host.Services.GetService(typeof(IApplicationLifetime));
 94117                appLifetime.ApplicationStarted.Register(() => IsStarted = true);
 47106            return RunHost(_cts.Token);
 47107        }
 108
 109        private Task RunHost(CancellationToken token)
 47110        {
 111            try
 47112            {
 47113                var appLifetime = (IApplicationLifetime)_host.Services.GetService(typeof(IApplicationLifetime));
 47114                appLifetime.ApplicationStarted.Register(() =>
 94115                {
 94116                    IsStarted = true;
 94117                });
 118
 119#if NETSTANDARD1_3
 120                _logger.Info("WireMock.Net server using netstandard1.3");
 123#elif NET46
 124                _logger.Info("WireMock.Net server using .net 4.6.1 or higher");
 125#endif
 126
 127#if NETSTANDARD1_3
 128                _host.Run(_cts.Token);
 129#else
 47130                _host.RunAsync(_cts.Token).Wait();
 131#endif
 2132            }
 0133            catch (Exception e)
 0134            {
 0135                _runningException = e;
 0136                _logger.Error(e.ToString());
 0137            }
 138            finally
 2139            {
 2140                IsStarted = false;
 2141            }
 2142        }
 143
 144        public Task StopAsync()
 2145        {
 2146            _cts.Cancel();
 147
 2148            IsStarted = false;
 149#if NETSTANDARD1_3
 150            return Task.FromResult(true);
 151#else
 2152            return _host.StopAsync();
 153#endif
 2154        }
 155    }
 156}
 157#endif
 126#if NETSTANDARD1_3
 127                return Task.Run(() =>
 128                {
 129                    _host.Run(token);
 130                });
 131#else
 47132                return _host.RunAsync(token);
 133#endif
 134            }
 0135            catch (Exception e)
 0136            {
 0137                _runningException = e;
 0138                _logger.Error(e.ToString());
 139
 0140                IsStarted = false;
 141
 0142                return Task.CompletedTask;
 143            }
 47144        }
 145
 146        public Task StopAsync()
 2147        {
 2148            _cts.Cancel();
 149
 2150            IsStarted = false;
 151#if NETSTANDARD1_3
 152            return Task.FromResult(true);
 153#else
 2154            return _host.StopAsync();
 155#endif
 2156        }
 157    }
 158}
 159#endif
-
+
diff --git a/report/coverlet/WireMock.Net_BodyData.htm b/report/coverlet/WireMock.Net_BodyData.htm index a10e1dc9..ad2d6bcb 100644 --- a/report/coverlet/WireMock.Net_BodyData.htm +++ b/report/coverlet/WireMock.Net_BodyData.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.BodyData Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyData.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\BodyData.cs Covered lines:4 Uncovered lines:0 Coverable lines:4 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyData.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\BodyData.cs

@@ -61,7 +61,7 @@
#LineLine coverage
 30}
- +

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_BodyModel.htm b/report/coverlet/WireMock.Net_BodyModel.htm index af77c359..8e012c90 100644 --- a/report/coverlet/WireMock.Net_BodyModel.htm +++ b/report/coverlet/WireMock.Net_BodyModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.BodyModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\BodyModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\BodyModel.cs Covered lines:1 Uncovered lines:0 Coverable lines:1 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\BodyModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\BodyModel.cs

@@ -44,7 +44,7 @@
#LineLine coverage
 13}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_BodyParser.htm b/report/coverlet/WireMock.Net_BodyParser.htm index 372fc9d5..b68c847a 100644 --- a/report/coverlet/WireMock.Net_BodyParser.htm +++ b/report/coverlet/WireMock.Net_BodyParser.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.BodyParser Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyParser.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\BodyParser.cs Covered lines:39 Uncovered lines:17 Coverable lines:56 @@ -36,7 +36,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\BodyParser.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\BodyParser.cs

@@ -130,7 +130,7 @@
#LineLine coverage
 88}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_Check.htm b/report/coverlet/WireMock.Net_Check.htm index 98b95002..c96c3ac4 100644 --- a/report/coverlet/WireMock.Net_Check.htm +++ b/report/coverlet/WireMock.Net_Check.htm @@ -16,7 +16,7 @@ Class:WireMock.Validation.Check Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Validation\Check.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\Check.cs Covered lines:39 Uncovered lines:32 Coverable lines:71 @@ -40,7 +40,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Validation\Check.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\Check.cs

@@ -79,16 +79,16 @@ - - + + - - + + @@ -106,10 +106,10 @@ - - + + - + @@ -185,7 +185,7 @@
#LineLine coverage
 33
 34        [ContractAnnotation("value:null => halt")]
 35        public static T NotNull<T>([NoEnumeration] T value, [InvokerParameterName] [NotNull] string parameterName)
 400436        {
 400437            if (ReferenceEquals(value, null))
 405236        {
 405337            if (ReferenceEquals(value, null))
 238            {
 239                NotNullOrEmpty(parameterName, nameof(parameterName));
 40
 241                throw new ArgumentNullException(parameterName);
 42            }
 43
 400244            return value;
 400245        }
 405044            return value;
 405145        }
 46
 47        [ContractAnnotation("value:null => halt")]
 48        public static T NotNull<T>([NoEnumeration] T value, [InvokerParameterName] [NotNull] string parameterName, [NotN
 60
 61        [ContractAnnotation("value:null => halt")]
 62        public static IList<T> NotNullOrEmpty<T>(IList<T> value, [InvokerParameterName] [NotNull] string parameterName)
 45663        {
 45664            NotNull(value, parameterName);
 45563        {
 45564            NotNull(value, parameterName);
 65
 45666            if (value.Count == 0)
 45566            if (value.Count == 0)
 067            {
 068                NotNullOrEmpty(parameterName, nameof(parameterName));
 69
 139}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ClientCertificateHelper.htm b/report/coverlet/WireMock.Net_ClientCertificateHelper.htm index dfde38f1..d292889c 100644 --- a/report/coverlet/WireMock.Net_ClientCertificateHelper.htm +++ b/report/coverlet/WireMock.Net_ClientCertificateHelper.htm @@ -16,7 +16,7 @@ Class:WireMock.HttpsCertificate.ClientCertificateHelper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\HttpsCertificate\ClientCertificateHelper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\HttpsCertificate\ClientCertificateHelper.cs Covered lines:0 Uncovered lines:17 Coverable lines:17 @@ -33,38 +33,38 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\HttpsCertificate\ClientCertificateHelper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\HttpsCertificate\ClientCertificateHelper.cs

- - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -81,11 +81,11 @@
#LineLine coverage
 1using System;
 2using System.IO;
 3using System.Security.Cryptography.X509Certificates;
 4
 5namespace WireMock.HttpsCertificate
 6{
 7    internal static class ClientCertificateHelper
 8    {
 9        public static X509Certificate2 GetCertificate(string thumbprintOrSubjectName)
 010        {
 011            X509Store certStore = new X509Store(StoreName.My, StoreLocation.LocalMachine);
 12            try
 013            {
 14                // Certificate must be in the local machine store
 015                certStore.Open(OpenFlags.ReadOnly);
 16
 17                // Attempt to find by thumbprint first
 018                var matchingCertificates = certStore.Certificates.Find(X509FindType.FindByThumbprint, thumbprintOrSubjec
 019                if (matchingCertificates.Count == 0)
 020                {
 21                    // Fallback to subject name
 022                    matchingCertificates = certStore.Certificates.Find(X509FindType.FindBySubjectName, thumbprintOrSubje
 023                    if (matchingCertificates.Count == 0)
 024                    {
 25                        // No certificates matched the search criteria.
 026                        throw new FileNotFoundException("No certificate found with specified Thumbprint or SubjectName."
 27                    }
 028                }
 1using System.IO;
 2using System.Security.Cryptography.X509Certificates;
 3
 4namespace WireMock.HttpsCertificate
 5{
 6    internal static class ClientCertificateHelper
 7    {
 8        public static X509Certificate2 GetCertificate(string thumbprintOrSubjectName)
 09        {
 010            X509Store certStore = new X509Store(StoreName.My, StoreLocation.LocalMachine);
 11            try
 012            {
 13                // Certificate must be in the local machine store
 014                certStore.Open(OpenFlags.ReadOnly);
 15
 16                // Attempt to find by thumbprint first
 017                var matchingCertificates = certStore.Certificates.Find(X509FindType.FindByThumbprint, thumbprintOrSubjec
 018                if (matchingCertificates.Count == 0)
 019                {
 20                    // Fallback to subject name
 021                    matchingCertificates = certStore.Certificates.Find(X509FindType.FindBySubjectName, thumbprintOrSubje
 022                    if (matchingCertificates.Count == 0)
 023                    {
 24                        // No certificates matched the search criteria.
 025                        throw new FileNotFoundException("No certificate found with specified Thumbprint or SubjectName."
 26                    }
 027                }
 28
 29                // Use the first matching certificate.
 030                return matchingCertificates[0];
 31            }
 42}
-
+
diff --git a/report/coverlet/WireMock.Net_ClientIPModel.htm b/report/coverlet/WireMock.Net_ClientIPModel.htm index f67f283b..d840f7db 100644 --- a/report/coverlet/WireMock.Net_ClientIPModel.htm +++ b/report/coverlet/WireMock.Net_ClientIPModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.ClientIPModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ClientIPModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ClientIPModel.cs Covered lines:0 Uncovered lines:1 Coverable lines:1 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ClientIPModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ClientIPModel.cs

@@ -44,7 +44,7 @@
#LineLine coverage
 13}
- +

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ConcurentObservableCollection_1.htm b/report/coverlet/WireMock.Net_ConcurentObservableCollection_1.htm index 4e604a2f..75734c57 100644 --- a/report/coverlet/WireMock.Net_ConcurentObservableCollection_1.htm +++ b/report/coverlet/WireMock.Net_ConcurentObservableCollection_1.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.ConcurentObservableCollection`1 Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\ConcurentObservableCollection.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\ConcurentObservableCollection.cs Covered lines:20 Uncovered lines:14 Coverable lines:34 @@ -39,7 +39,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\ConcurentObservableCollection.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\ConcurentObservableCollection.cs

@@ -122,7 +122,7 @@
#LineLine coverage
 77}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_CookieModel.htm b/report/coverlet/WireMock.Net_CookieModel.htm index 20719bfd..8aa842d4 100644 --- a/report/coverlet/WireMock.Net_CookieModel.htm +++ b/report/coverlet/WireMock.Net_CookieModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.CookieModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\CookieModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\CookieModel.cs Covered lines:0 Uncovered lines:2 Coverable lines:2 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\CookieModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\CookieModel.cs

@@ -51,7 +51,7 @@
#LineLine coverage
 20}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_CoreStrings.htm b/report/coverlet/WireMock.Net_CoreStrings.htm index 629dcda8..0b74396c 100644 --- a/report/coverlet/WireMock.Net_CoreStrings.htm +++ b/report/coverlet/WireMock.Net_CoreStrings.htm @@ -16,7 +16,7 @@ Class:WireMock.Validation.CoreStrings Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs Covered lines:0 Uncovered lines:12 Coverable lines:12 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Validation\CoreStrings.cs

@@ -82,7 +82,7 @@
#LineLine coverage
 41}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_DictionaryExtensions.htm b/report/coverlet/WireMock.Net_DictionaryExtensions.htm index 51408467..4e0a32e5 100644 --- a/report/coverlet/WireMock.Net_DictionaryExtensions.htm +++ b/report/coverlet/WireMock.Net_DictionaryExtensions.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.DictionaryExtensions Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\DictionaryExtensions.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\DictionaryExtensions.cs Covered lines:0 Uncovered lines:10 Coverable lines:10 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\DictionaryExtensions.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\DictionaryExtensions.cs

@@ -72,7 +72,7 @@
#LineLine coverage
 33}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_DynamicAsyncResponseProvider.htm b/report/coverlet/WireMock.Net_DynamicAsyncResponseProvider.htm index e75d38c1..0d3336b5 100644 --- a/report/coverlet/WireMock.Net_DynamicAsyncResponseProvider.htm +++ b/report/coverlet/WireMock.Net_DynamicAsyncResponseProvider.htm @@ -16,7 +16,7 @@ Class:WireMock.ResponseProviders.DynamicAsyncResponseProvider Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicAsyncResponseProvider.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicAsyncResponseProvider.cs Covered lines:0 Uncovered lines:8 Coverable lines:8 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicAsyncResponseProvider.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicAsyncResponseProvider.cs

@@ -63,7 +63,7 @@
#LineLine coverage
 24}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_DynamicResponseProvider.htm b/report/coverlet/WireMock.Net_DynamicResponseProvider.htm index f6193c66..ddc2f59e 100644 --- a/report/coverlet/WireMock.Net_DynamicResponseProvider.htm +++ b/report/coverlet/WireMock.Net_DynamicResponseProvider.htm @@ -16,7 +16,7 @@ Class:WireMock.ResponseProviders.DynamicResponseProvider Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicResponseProvider.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicResponseProvider.cs Covered lines:8 Uncovered lines:0 Coverable lines:8 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicResponseProvider.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\DynamicResponseProvider.cs

@@ -63,7 +63,7 @@
#LineLine coverage
 24}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_EncodingModel.htm b/report/coverlet/WireMock.Net_EncodingModel.htm index ff93b067..5fd25f97 100644 --- a/report/coverlet/WireMock.Net_EncodingModel.htm +++ b/report/coverlet/WireMock.Net_EncodingModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.EncodingModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\EncodingModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\EncodingModel.cs Covered lines:3 Uncovered lines:0 Coverable lines:3 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\EncodingModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\EncodingModel.cs

@@ -54,7 +54,7 @@
#LineLine coverage
 23}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_EnhancedFileSystemWatcher.htm b/report/coverlet/WireMock.Net_EnhancedFileSystemWatcher.htm index d2cfa41b..993b6f05 100644 --- a/report/coverlet/WireMock.Net_EnhancedFileSystemWatcher.htm +++ b/report/coverlet/WireMock.Net_EnhancedFileSystemWatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.EnhancedFileSystemWatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\EnhancedFileSystemWatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\EnhancedFileSystemWatcher.cs Covered lines:0 Uncovered lines:87 Coverable lines:87 @@ -45,7 +45,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\EnhancedFileSystemWatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\EnhancedFileSystemWatcher.cs

@@ -305,7 +305,7 @@
#LineLine coverage
 254}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ExactMatcher.htm b/report/coverlet/WireMock.Net_ExactMatcher.htm index e7338b87..e44590b5 100644 --- a/report/coverlet/WireMock.Net_ExactMatcher.htm +++ b/report/coverlet/WireMock.Net_ExactMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.ExactMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\ExactMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\ExactMatcher.cs Covered lines:17 Uncovered lines:0 Coverable lines:17 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\ExactMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\ExactMatcher.cs

@@ -95,7 +95,7 @@
#LineLine coverage
 54}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ExactObjectMatcher.htm b/report/coverlet/WireMock.Net_ExactObjectMatcher.htm index 827484a1..79119ca7 100644 --- a/report/coverlet/WireMock.Net_ExactObjectMatcher.htm +++ b/report/coverlet/WireMock.Net_ExactObjectMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.ExactObjectMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\ExactObjectMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\ExactObjectMatcher.cs Covered lines:24 Uncovered lines:0 Coverable lines:24 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\ExactObjectMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\ExactObjectMatcher.cs

@@ -114,7 +114,7 @@
#LineLine coverage
 71}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_FileHelper.htm b/report/coverlet/WireMock.Net_FileHelper.htm index 9466a26c..47891669 100644 --- a/report/coverlet/WireMock.Net_FileHelper.htm +++ b/report/coverlet/WireMock.Net_FileHelper.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.FileHelper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\FileHelper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\FileHelper.cs Covered lines:14 Uncovered lines:0 Coverable lines:14 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\FileHelper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\FileHelper.cs

@@ -73,7 +73,7 @@
#LineLine coverage
 34}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_FluentMockServer.htm b/report/coverlet/WireMock.Net_FluentMockServer.htm index 39839947..ebabe8ef 100644 --- a/report/coverlet/WireMock.Net_FluentMockServer.htm +++ b/report/coverlet/WireMock.Net_FluentMockServer.htm @@ -16,13 +16,13 @@ Class:WireMock.Server.FluentMockServer Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.Admin.cs
C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.cs
C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.LogEntries.cs -Covered lines:397 -Uncovered lines:339 +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.Admin.cs
C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.cs
C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.LogEntries.cs +Covered lines:392 +Uncovered lines:344 Coverable lines:736 -Total lines:1316 -Line coverage:53.9% -Branch coverage:54.5% +Total lines:1317 +Line coverage:53.2% +Branch coverage:53.2%

Metrics

@@ -85,7 +85,7 @@ ResetScenarios()0000 Given(...)0010 RegisterMapping(...)0011 -.ctor(...)000.8090.735 +.ctor(...)000.7350.647 add_LogEntriesChanged(...)0010 remove_LogEntriesChanged(...)0000 FindLogEntries(...)0000 @@ -94,7 +94,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.Admin.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.Admin.cs

@@ -885,7 +885,7 @@
#LineLine coverage
 785}
-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.cs

@@ -896,447 +896,448 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#LineLine coverage
 5using System.Linq;
 6using System.Text;
 7using System.Threading;
 8using Newtonsoft.Json;
 9using WireMock.Handlers;
 10using WireMock.Logging;
 11using WireMock.Matchers;
 12using WireMock.Matchers.Request;
 13using WireMock.Owin;
 14using WireMock.RequestBuilders;
 15using WireMock.ResponseProviders;
 16using WireMock.Settings;
 17using WireMock.Util;
 18using WireMock.Validation;
 19
 20namespace WireMock.Server
 21{
 22    /// <summary>
 23    /// The fluent mock server.
 24    /// </summary>
 25    public partial class FluentMockServer : IDisposable
 26    {
 27        private readonly IWireMockLogger _logger;
 28        private readonly IFileSystemHandler _fileSystemHandler;
 8using System.Threading.Tasks;
 9using Newtonsoft.Json;
 10using WireMock.Handlers;
 11using WireMock.Logging;
 12using WireMock.Matchers;
 13using WireMock.Matchers.Request;
 14using WireMock.Owin;
 15using WireMock.RequestBuilders;
 16using WireMock.ResponseProviders;
 17using WireMock.Settings;
 18using WireMock.Util;
 19using WireMock.Validation;
 20
 21namespace WireMock.Server
 22{
 23    /// <summary>
 24    /// The fluent mock server.
 25    /// </summary>
 26    public partial class FluentMockServer : IDisposable
 27    {
 28        private const int ServerStartDelayInMs = 100;
 29
 30        private const int ServerStartDelay = 100;
 31        private readonly IOwinSelfHost _httpServer;
 4732        private readonly IWireMockMiddlewareOptions _options = new WireMockMiddlewareOptions();
 33
 34        /// <summary>
 35        /// Gets a value indicating whether this server is started.
 36        /// </summary>
 37        [PublicAPI]
 038        public bool IsStarted => _httpServer != null && _httpServer.IsStarted;
 39
 40        /// <summary>
 41        /// Gets the ports.
 42        /// </summary>
 43        [PublicAPI]
 2044        public List<int> Ports { get; }
 45
 46        /// <summary>
 47        /// Gets the urls.
 48        /// </summary>
 49        [PublicAPI]
 6450        public string[] Urls { get; }
 51
 52        /// <summary>
 53        /// Gets the mappings.
 54        /// </summary>
 55        [PublicAPI]
 1856        public IEnumerable<IMapping> Mappings => _options.Mappings.Values.ToArray();
 57
 58        /// <summary>
 59        /// Gets the scenarios.
 60        /// </summary>
 61        [PublicAPI]
 1362        public ConcurrentDictionary<string, ScenarioState> Scenarios => new ConcurrentDictionary<string, ScenarioState>(
 63
 64        #region IDisposable Members
 65        /// <summary>
 66        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 67        /// </summary>
 68        public void Dispose()
 069        {
 070            Dispose(true);
 071            GC.SuppressFinalize(this);
 072        }
 73
 74        /// <summary>
 75        /// Releases unmanaged and - optionally - managed resources.
 76        /// </summary>
 77        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release
 78        protected virtual void Dispose(bool disposing)
 079        {
 080            if (_httpServer != null)
 081            {
 082                _httpServer.StopAsync();
 083            }
 084        }
 85        #endregion
 86
 87        #region Start/Stop
 88        /// <summary>
 89        /// Starts the specified settings.
 90        /// </summary>
 91        /// <param name="settings">The FluentMockServerSettings.</param>
 92        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 93        [PublicAPI]
 94        public static FluentMockServer Start(IFluentMockServerSettings settings)
 1695        {
 1696            Check.NotNull(settings, nameof(settings));
 97
 1698            return new FluentMockServer(settings);
 1699        }
 100
 101        /// <summary>
 102        /// Start this FluentMockServer.
 103        /// </summary>
 104        /// <param name="port">The port.</param>
 105        /// <param name="ssl">The SSL support.</param>
 106        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 107        [PublicAPI]
 108        public static FluentMockServer Start([CanBeNull] int? port = 0, bool ssl = false)
 26109        {
 26110            return new FluentMockServer(new FluentMockServerSettings
 26111            {
 26112                Port = port,
 26113                UseSSL = ssl
 26114            });
 26115        }
 116
 117        /// <summary>
 118        /// Start this FluentMockServer.
 119        /// </summary>
 120        /// <param name="urls">The urls to listen on.</param>
 121        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 122        [PublicAPI]
 123        public static FluentMockServer Start(params string[] urls)
 1124        {
 1125            Check.NotNullOrEmpty(urls, nameof(urls));
 126
 1127            return new FluentMockServer(new FluentMockServerSettings
 1128            {
 1129                Urls = urls
 1130            });
 1131        }
 132
 133        /// <summary>
 134        /// Start this FluentMockServer with the admin interface.
 135        /// </summary>
 136        /// <param name="port">The port.</param>
 137        /// <param name="ssl">The SSL support.</param>
 138        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 139        [PublicAPI]
 140        public static FluentMockServer StartWithAdminInterface(int? port = 0, bool ssl = false)
 4141        {
 4142            return new FluentMockServer(new FluentMockServerSettings
 4143            {
 4144                Port = port,
 4145                UseSSL = ssl,
 4146                StartAdminInterface = true
 4147            });
 4148        }
 149
 150        /// <summary>
 151        /// Start this FluentMockServer with the admin interface.
 152        /// </summary>
 153        /// <param name="urls">The urls.</param>
 154        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 155        [PublicAPI]
 156        public static FluentMockServer StartWithAdminInterface(params string[] urls)
 0157        {
 0158            Check.NotNullOrEmpty(urls, nameof(urls));
 159
 0160            return new FluentMockServer(new FluentMockServerSettings
 0161            {
 0162                Urls = urls,
 0163                StartAdminInterface = true
 0164            });
 0165        }
 166
 167        /// <summary>
 168        /// Start this FluentMockServer with the admin interface and read static mappings.
 169        /// </summary>
 170        /// <param name="urls">The urls.</param>
 171        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 172        [PublicAPI]
 173        public static FluentMockServer StartWithAdminInterfaceAndReadStaticMappings(params string[] urls)
 0174        {
 0175            Check.NotNullOrEmpty(urls, nameof(urls));
 176
 0177            return new FluentMockServer(new FluentMockServerSettings
 0178            {
 0179                Urls = urls,
 0180                StartAdminInterface = true,
 0181                ReadStaticMappings = true
 0182            });
 0183        }
 184
 47185        private FluentMockServer(IFluentMockServerSettings settings)
 47186        {
 47187            settings.Logger = settings.Logger ?? new WireMockConsoleLogger();
 188
 47189            _logger = settings.Logger;
 47190            _fileSystemHandler = settings.FileSystemHandler ?? new LocalFileSystemHandler();
 191
 47192            _logger.Info("WireMock.Net by Stef Heyenrath (https://github.com/WireMock-Net/WireMock.Net)");
 47193            _logger.Debug("WireMock.Net server settings {0}", JsonConvert.SerializeObject(settings, Formatting.Indented)
 194
 47195            if (settings.Urls != null)
 1196            {
 1197                Urls = settings.Urls.ToArray();
 1198            }
 199            else
 46200            {
 46201                int port = settings.Port > 0 ? settings.Port.Value : PortUtils.FindFreeTcpPort();
 46202                Urls = new[] { $"{(settings.UseSSL == true ? "https" : "http")}://localhost:{port}" };
 46203            }
 204
 47205            _options.PreWireMockMiddlewareInit = settings.PreWireMockMiddlewareInit;
 47206            _options.PostWireMockMiddlewareInit = settings.PostWireMockMiddlewareInit;
 47207            _options.Logger = _logger;
 208
 209#if USE_ASPNETCORE
 47210            _httpServer = new AspNetCoreSelfHost(_options, Urls);
 211#else
 212            _httpServer = new OwinSelfHost(_options, Urls);
 213#endif
 47214            Ports = _httpServer.Ports;
 215
 47216            _httpServer.StartAsync();
 217
 47218            using (var ctsStartTimeout = new CancellationTokenSource(settings.StartTimeout))
 47219            {
 480220                while (!_httpServer.IsStarted)
 433221                {
 222                    // Throw out exception if service start fails
 433223                    if (_httpServer.RunningException != null)
 0224                    {
 0225                        throw new Exception($"Service start failed with error: {_httpServer.RunningException.Message}", 
 226                    }
 227
 228                    // Respect start timeout setting by throwing TimeoutException
 433229                    if (ctsStartTimeout.IsCancellationRequested)
 0230                    {
 0231                        throw new TimeoutException($"Service start timed out after {TimeSpan.FromMilliseconds(settings.S
 232                    }
 233
 433234                    ctsStartTimeout.Token.WaitHandle.WaitOne(ServerStartDelay);
 433235                }
 47236            }
 237
 47238            if (settings.AllowPartialMapping == true)
 1239            {
 1240                AllowPartialMapping();
 1241            }
 242
 47243            if (settings.StartAdminInterface == true)
 11244            {
 11245                if (!string.IsNullOrEmpty(settings.AdminUsername) && !string.IsNullOrEmpty(settings.AdminPassword))
 1246                {
 1247                    SetBasicAuthentication(settings.AdminUsername, settings.AdminPassword);
 1248                }
 249
 11250                InitAdmin();
 11251            }
 252
 47253            if (settings.ReadStaticMappings == true)
 0254            {
 0255                ReadStaticMappings();
 0256            }
 257
 47258            if (settings.WatchStaticMappings == true)
 0259            {
 0260                WatchStaticMappings();
 0261            }
 262
 47263            if (settings.ProxyAndRecordSettings != null)
 2264            {
 2265                InitProxyAndRecord(settings);
 2266            }
 267
 47268            if (settings.RequestLogExpirationDuration != null)
 1269            {
 1270                SetRequestLogExpirationDuration(settings.RequestLogExpirationDuration);
 1271            }
 272
 47273            if (settings.MaxRequestLogCount != null)
 0274            {
 0275                SetMaxRequestLogCount(settings.MaxRequestLogCount);
 0276            }
 47277        }
 278
 279        /// <summary>
 280        /// Stop this server.
 281        /// </summary>
 282        [PublicAPI]
 283        public void Stop()
 2284        {
 2285            var result = _httpServer?.StopAsync();
 2286            result?.Wait(); // wait for stop to actually happen
 2287        }
 288        #endregion
 289
 290        /// <summary>
 291        /// Adds the catch all mapping.
 292        /// </summary>
 293        [PublicAPI]
 294        public void AddCatchAllMapping()
 0295        {
 0296            Given(Request.Create().WithPath("/*").UsingAnyMethod())
 0297                .WithGuid(Guid.Parse("90008000-0000-4444-a17e-669cd84f1f05"))
 0298                .AtPriority(1000)
 0299                .RespondWith(new DynamicResponseProvider(request => ResponseMessageBuilder.Create("No matching mapping f
 0300        }
 301
 302        /// <summary>
 303        /// Resets LogEntries and Mappings.
 304        /// </summary>
 305        [PublicAPI]
 306        public void Reset()
 0307        {
 0308            ResetLogEntries();
 309
 0310            ResetMappings();
 0311        }
 312
 313        /// <summary>
 314        /// Resets the Mappings.
 315        /// </summary>
 316        [PublicAPI]
 317        public void ResetMappings()
 2318        {
 18319            foreach (var nonAdmin in _options.Mappings.ToArray().Where(m => !m.Value.IsAdminInterface))
 4320            {
 4321                _options.Mappings.TryRemove(nonAdmin.Key, out _);
 4322            }
 2323        }
 324
 325        /// <summary>
 326        /// Deletes the mapping.
 327        /// </summary>
 328        /// <param name="guid">The unique identifier.</param>
 329        [PublicAPI]
 330        public bool DeleteMapping(Guid guid)
 0331        {
 332            // Check a mapping exists with the same GUID, if so, remove it.
 0333            if (_options.Mappings.ContainsKey(guid))
 0334            {
 0335                return _options.Mappings.TryRemove(guid, out _);
 336            }
 337
 0338            return false;
 0339        }
 340
 341        private bool DeleteMapping(string path)
 0342        {
 343            // Check a mapping exists with the same path, if so, remove it.
 0344            var mapping = _options.Mappings.ToArray().FirstOrDefault(entry => string.Equals(entry.Value.Path, path, Stri
 0345            return DeleteMapping(mapping.Key);
 0346        }
 347
 348        /// <summary>
 349        /// The add request processing delay.
 350        /// </summary>
 351        /// <param name="delay">The delay.</param>
 352        [PublicAPI]
 353        public void AddGlobalProcessingDelay(TimeSpan delay)
 1354        {
 1355            _options.RequestProcessingDelay = delay;
 1356        }
 357
 358        /// <summary>
 359        /// Allows the partial mapping.
 360        /// </summary>
 361        [PublicAPI]
 362        public void AllowPartialMapping(bool allow = true)
 1363        {
 1364            _logger.Info("AllowPartialMapping is set to {0}", allow);
 1365            _options.AllowPartialMapping = allow;
 1366        }
 367
 368        /// <summary>
 369        /// Sets the basic authentication.
 370        /// </summary>
 371        /// <param name="username">The username.</param>
 372        /// <param name="password">The password.</param>
 373        [PublicAPI]
 374        public void SetBasicAuthentication([NotNull] string username, [NotNull] string password)
 3375        {
 3376            Check.NotNull(username, nameof(username));
 3377            Check.NotNull(password, nameof(password));
 378
 3379            string authorization = Convert.ToBase64String(Encoding.GetEncoding("ISO-8859-1").GetBytes(username + ":" + p
 3380            _options.AuthorizationMatcher = new RegexMatcher(MatchBehaviour.AcceptOnMatch, "^(?i)BASIC " + authorization
 3381        }
 382
 383        /// <summary>
 384        /// Removes the basic authentication.
 385        /// </summary>
 386        [PublicAPI]
 387        public void RemoveBasicAuthentication()
 1388        {
 1389            _options.AuthorizationMatcher = null;
 1390        }
 391
 392        /// <summary>
 393        /// Sets the maximum RequestLog count.
 394        /// </summary>
 395        /// <param name="maxRequestLogCount">The maximum RequestLog count.</param>
 396        [PublicAPI]
 397        public void SetMaxRequestLogCount([CanBeNull] int? maxRequestLogCount)
 1398        {
 1399            _options.MaxRequestLogCount = maxRequestLogCount;
 1400        }
 401
 402        /// <summary>
 403        /// Sets RequestLog expiration in hours.
 404        /// </summary>
 405        /// <param name="requestLogExpirationDuration">The RequestLog expiration in hours.</param>
 406        [PublicAPI]
 407        public void SetRequestLogExpirationDuration([CanBeNull] int? requestLogExpirationDuration)
 1408        {
 1409            _options.RequestLogExpirationDuration = requestLogExpirationDuration;
 1410        }
 411
 412        /// <summary>
 413        /// Resets the Scenarios.
 414        /// </summary>
 415        [PublicAPI]
 416        public void ResetScenarios()
 0417        {
 0418            _options.Scenarios.Clear();
 0419        }
 420
 421        /// <summary>
 422        /// The given.
 423        /// </summary>
 424        /// <param name="requestMatcher">The request matcher.</param>
 425        /// <returns>The <see cref="IRespondWithAProvider"/>.</returns>
 426        [PublicAPI]
 427        public IRespondWithAProvider Given(IRequestMatcher requestMatcher)
 249428        {
 249429            return new RespondWithAProvider(RegisterMapping, requestMatcher);
 249430        }
 431
 432        private void RegisterMapping(IMapping mapping)
 249433        {
 434            // Check a mapping exists with the same Guid, if so, replace it.
 249435            if (_options.Mappings.ContainsKey(mapping.Guid))
 1436            {
 1437                _options.Mappings[mapping.Guid] = mapping;
 1438            }
 439            else
 248440            {
 248441                _options.Mappings.TryAdd(mapping.Guid, mapping);
 248442            }
 249443        }
 444    }
 445}
 30        private readonly IWireMockLogger _logger;
 31        private readonly IFileSystemHandler _fileSystemHandler;
 32        private readonly IOwinSelfHost _httpServer;
 4733        private readonly IWireMockMiddlewareOptions _options = new WireMockMiddlewareOptions();
 34
 35        /// <summary>
 36        /// Gets a value indicating whether this server is started.
 37        /// </summary>
 38        [PublicAPI]
 039        public bool IsStarted => _httpServer != null && _httpServer.IsStarted;
 40
 41        /// <summary>
 42        /// Gets the ports.
 43        /// </summary>
 44        [PublicAPI]
 2045        public List<int> Ports { get; }
 46
 47        /// <summary>
 48        /// Gets the urls.
 49        /// </summary>
 50        [PublicAPI]
 6451        public string[] Urls { get; }
 52
 53        /// <summary>
 54        /// Gets the mappings.
 55        /// </summary>
 56        [PublicAPI]
 1857        public IEnumerable<IMapping> Mappings => _options.Mappings.Values.ToArray();
 58
 59        /// <summary>
 60        /// Gets the scenarios.
 61        /// </summary>
 62        [PublicAPI]
 1363        public ConcurrentDictionary<string, ScenarioState> Scenarios => new ConcurrentDictionary<string, ScenarioState>(
 64
 65        #region IDisposable Members
 66        /// <summary>
 67        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 68        /// </summary>
 69        public void Dispose()
 070        {
 071            Dispose(true);
 072            GC.SuppressFinalize(this);
 073        }
 74
 75        /// <summary>
 76        /// Releases unmanaged and - optionally - managed resources.
 77        /// </summary>
 78        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release
 79        protected virtual void Dispose(bool disposing)
 080        {
 081            if (_httpServer != null)
 082            {
 083                _httpServer.StopAsync();
 084            }
 085        }
 86        #endregion
 87
 88        #region Start/Stop
 89        /// <summary>
 90        /// Starts the specified settings.
 91        /// </summary>
 92        /// <param name="settings">The FluentMockServerSettings.</param>
 93        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 94        [PublicAPI]
 95        public static FluentMockServer Start(IFluentMockServerSettings settings)
 1696        {
 1697            Check.NotNull(settings, nameof(settings));
 98
 1699            return new FluentMockServer(settings);
 16100        }
 101
 102        /// <summary>
 103        /// Start this FluentMockServer.
 104        /// </summary>
 105        /// <param name="port">The port.</param>
 106        /// <param name="ssl">The SSL support.</param>
 107        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 108        [PublicAPI]
 109        public static FluentMockServer Start([CanBeNull] int? port = 0, bool ssl = false)
 26110        {
 26111            return new FluentMockServer(new FluentMockServerSettings
 26112            {
 26113                Port = port,
 26114                UseSSL = ssl
 26115            });
 25116        }
 117
 118        /// <summary>
 119        /// Start this FluentMockServer.
 120        /// </summary>
 121        /// <param name="urls">The urls to listen on.</param>
 122        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 123        [PublicAPI]
 124        public static FluentMockServer Start(params string[] urls)
 1125        {
 1126            Check.NotNullOrEmpty(urls, nameof(urls));
 127
 1128            return new FluentMockServer(new FluentMockServerSettings
 1129            {
 1130                Urls = urls
 1131            });
 1132        }
 133
 134        /// <summary>
 135        /// Start this FluentMockServer with the admin interface.
 136        /// </summary>
 137        /// <param name="port">The port.</param>
 138        /// <param name="ssl">The SSL support.</param>
 139        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 140        [PublicAPI]
 141        public static FluentMockServer StartWithAdminInterface(int? port = 0, bool ssl = false)
 4142        {
 4143            return new FluentMockServer(new FluentMockServerSettings
 4144            {
 4145                Port = port,
 4146                UseSSL = ssl,
 4147                StartAdminInterface = true
 4148            });
 4149        }
 150
 151        /// <summary>
 152        /// Start this FluentMockServer with the admin interface.
 153        /// </summary>
 154        /// <param name="urls">The urls.</param>
 155        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 156        [PublicAPI]
 157        public static FluentMockServer StartWithAdminInterface(params string[] urls)
 0158        {
 0159            Check.NotNullOrEmpty(urls, nameof(urls));
 160
 0161            return new FluentMockServer(new FluentMockServerSettings
 0162            {
 0163                Urls = urls,
 0164                StartAdminInterface = true
 0165            });
 0166        }
 167
 168        /// <summary>
 169        /// Start this FluentMockServer with the admin interface and read static mappings.
 170        /// </summary>
 171        /// <param name="urls">The urls.</param>
 172        /// <returns>The <see cref="FluentMockServer"/>.</returns>
 173        [PublicAPI]
 174        public static FluentMockServer StartWithAdminInterfaceAndReadStaticMappings(params string[] urls)
 0175        {
 0176            Check.NotNullOrEmpty(urls, nameof(urls));
 177
 0178            return new FluentMockServer(new FluentMockServerSettings
 0179            {
 0180                Urls = urls,
 0181                StartAdminInterface = true,
 0182                ReadStaticMappings = true
 0183            });
 0184        }
 185
 47186        private FluentMockServer(IFluentMockServerSettings settings)
 47187        {
 47188            settings.Logger = settings.Logger ?? new WireMockConsoleLogger();
 189
 47190            _logger = settings.Logger;
 47191            _fileSystemHandler = settings.FileSystemHandler ?? new LocalFileSystemHandler();
 192
 47193            _logger.Info("WireMock.Net by Stef Heyenrath (https://github.com/WireMock-Net/WireMock.Net)");
 47194            _logger.Debug("WireMock.Net server settings {0}", JsonConvert.SerializeObject(settings, Formatting.Indented)
 195
 47196            if (settings.Urls != null)
 1197            {
 1198                Urls = settings.Urls.ToArray();
 1199            }
 200            else
 46201            {
 46202                int port = settings.Port > 0 ? settings.Port.Value : PortUtils.FindFreeTcpPort();
 46203                Urls = new[] { $"{(settings.UseSSL == true ? "https" : "http")}://localhost:{port}" };
 46204            }
 205
 47206            _options.PreWireMockMiddlewareInit = settings.PreWireMockMiddlewareInit;
 47207            _options.PostWireMockMiddlewareInit = settings.PostWireMockMiddlewareInit;
 47208            _options.Logger = _logger;
 209
 210#if USE_ASPNETCORE
 47211            _httpServer = new AspNetCoreSelfHost(_options, Urls);
 212#else
 213            _httpServer = new OwinSelfHost(_options, Urls);
 214#endif
 47215            Ports = _httpServer.Ports;
 216
 47217            _httpServer.StartAsync();
 218
 47219            using (var ctsStartTimeout = new CancellationTokenSource(settings.StartTimeout))
 47220            {
 47221                while (!_httpServer.IsStarted)
 0222                {
 223                    // Throw out exception if service start fails
 0224                    if (_httpServer.RunningException != null)
 0225                    {
 0226                        throw new Exception($"Service start failed with error: {_httpServer.RunningException.Message}", 
 227                    }
 228
 229                    // Respect start timeout setting by throwing TimeoutException
 0230                    if (ctsStartTimeout.IsCancellationRequested)
 0231                    {
 0232                        throw new TimeoutException($"Service start timed out after {TimeSpan.FromMilliseconds(settings.S
 233                    }
 234
 0235                    ctsStartTimeout.Token.WaitHandle.WaitOne(ServerStartDelayInMs);
 0236                }
 47237            }
 238
 47239            if (settings.AllowPartialMapping == true)
 1240            {
 1241                AllowPartialMapping();
 1242            }
 243
 47244            if (settings.StartAdminInterface == true)
 11245            {
 11246                if (!string.IsNullOrEmpty(settings.AdminUsername) && !string.IsNullOrEmpty(settings.AdminPassword))
 1247                {
 1248                    SetBasicAuthentication(settings.AdminUsername, settings.AdminPassword);
 1249                }
 250
 11251                InitAdmin();
 11252            }
 253
 47254            if (settings.ReadStaticMappings == true)
 0255            {
 0256                ReadStaticMappings();
 0257            }
 258
 47259            if (settings.WatchStaticMappings == true)
 0260            {
 0261                WatchStaticMappings();
 0262            }
 263
 47264            if (settings.ProxyAndRecordSettings != null)
 2265            {
 2266                InitProxyAndRecord(settings);
 2267            }
 268
 47269            if (settings.RequestLogExpirationDuration != null)
 1270            {
 1271                SetRequestLogExpirationDuration(settings.RequestLogExpirationDuration);
 1272            }
 273
 47274            if (settings.MaxRequestLogCount != null)
 0275            {
 0276                SetMaxRequestLogCount(settings.MaxRequestLogCount);
 0277            }
 46278        }
 279
 280        /// <summary>
 281        /// Stop this server.
 282        /// </summary>
 283        [PublicAPI]
 284        public void Stop()
 2285        {
 2286            var result = _httpServer?.StopAsync();
 2287            result?.Wait(); // wait for stop to actually happen
 2288        }
 289        #endregion
 290
 291        /// <summary>
 292        /// Adds the catch all mapping.
 293        /// </summary>
 294        [PublicAPI]
 295        public void AddCatchAllMapping()
 0296        {
 0297            Given(Request.Create().WithPath("/*").UsingAnyMethod())
 0298                .WithGuid(Guid.Parse("90008000-0000-4444-a17e-669cd84f1f05"))
 0299                .AtPriority(1000)
 0300                .RespondWith(new DynamicResponseProvider(request => ResponseMessageBuilder.Create("No matching mapping f
 0301        }
 302
 303        /// <summary>
 304        /// Resets LogEntries and Mappings.
 305        /// </summary>
 306        [PublicAPI]
 307        public void Reset()
 0308        {
 0309            ResetLogEntries();
 310
 0311            ResetMappings();
 0312        }
 313
 314        /// <summary>
 315        /// Resets the Mappings.
 316        /// </summary>
 317        [PublicAPI]
 318        public void ResetMappings()
 2319        {
 18320            foreach (var nonAdmin in _options.Mappings.ToArray().Where(m => !m.Value.IsAdminInterface))
 4321            {
 4322                _options.Mappings.TryRemove(nonAdmin.Key, out _);
 4323            }
 2324        }
 325
 326        /// <summary>
 327        /// Deletes the mapping.
 328        /// </summary>
 329        /// <param name="guid">The unique identifier.</param>
 330        [PublicAPI]
 331        public bool DeleteMapping(Guid guid)
 0332        {
 333            // Check a mapping exists with the same GUID, if so, remove it.
 0334            if (_options.Mappings.ContainsKey(guid))
 0335            {
 0336                return _options.Mappings.TryRemove(guid, out _);
 337            }
 338
 0339            return false;
 0340        }
 341
 342        private bool DeleteMapping(string path)
 0343        {
 344            // Check a mapping exists with the same path, if so, remove it.
 0345            var mapping = _options.Mappings.ToArray().FirstOrDefault(entry => string.Equals(entry.Value.Path, path, Stri
 0346            return DeleteMapping(mapping.Key);
 0347        }
 348
 349        /// <summary>
 350        /// The add request processing delay.
 351        /// </summary>
 352        /// <param name="delay">The delay.</param>
 353        [PublicAPI]
 354        public void AddGlobalProcessingDelay(TimeSpan delay)
 1355        {
 1356            _options.RequestProcessingDelay = delay;
 1357        }
 358
 359        /// <summary>
 360        /// Allows the partial mapping.
 361        /// </summary>
 362        [PublicAPI]
 363        public void AllowPartialMapping(bool allow = true)
 1364        {
 1365            _logger.Info("AllowPartialMapping is set to {0}", allow);
 1366            _options.AllowPartialMapping = allow;
 1367        }
 368
 369        /// <summary>
 370        /// Sets the basic authentication.
 371        /// </summary>
 372        /// <param name="username">The username.</param>
 373        /// <param name="password">The password.</param>
 374        [PublicAPI]
 375        public void SetBasicAuthentication([NotNull] string username, [NotNull] string password)
 3376        {
 3377            Check.NotNull(username, nameof(username));
 3378            Check.NotNull(password, nameof(password));
 379
 3380            string authorization = Convert.ToBase64String(Encoding.GetEncoding("ISO-8859-1").GetBytes(username + ":" + p
 3381            _options.AuthorizationMatcher = new RegexMatcher(MatchBehaviour.AcceptOnMatch, "^(?i)BASIC " + authorization
 3382        }
 383
 384        /// <summary>
 385        /// Removes the basic authentication.
 386        /// </summary>
 387        [PublicAPI]
 388        public void RemoveBasicAuthentication()
 1389        {
 1390            _options.AuthorizationMatcher = null;
 1391        }
 392
 393        /// <summary>
 394        /// Sets the maximum RequestLog count.
 395        /// </summary>
 396        /// <param name="maxRequestLogCount">The maximum RequestLog count.</param>
 397        [PublicAPI]
 398        public void SetMaxRequestLogCount([CanBeNull] int? maxRequestLogCount)
 1399        {
 1400            _options.MaxRequestLogCount = maxRequestLogCount;
 1401        }
 402
 403        /// <summary>
 404        /// Sets RequestLog expiration in hours.
 405        /// </summary>
 406        /// <param name="requestLogExpirationDuration">The RequestLog expiration in hours.</param>
 407        [PublicAPI]
 408        public void SetRequestLogExpirationDuration([CanBeNull] int? requestLogExpirationDuration)
 1409        {
 1410            _options.RequestLogExpirationDuration = requestLogExpirationDuration;
 1411        }
 412
 413        /// <summary>
 414        /// Resets the Scenarios.
 415        /// </summary>
 416        [PublicAPI]
 417        public void ResetScenarios()
 0418        {
 0419            _options.Scenarios.Clear();
 0420        }
 421
 422        /// <summary>
 423        /// The given.
 424        /// </summary>
 425        /// <param name="requestMatcher">The request matcher.</param>
 426        /// <returns>The <see cref="IRespondWithAProvider"/>.</returns>
 427        [PublicAPI]
 428        public IRespondWithAProvider Given(IRequestMatcher requestMatcher)
 249429        {
 249430            return new RespondWithAProvider(RegisterMapping, requestMatcher);
 249431        }
 432
 433        private void RegisterMapping(IMapping mapping)
 249434        {
 435            // Check a mapping exists with the same Guid, if so, replace it.
 249436            if (_options.Mappings.ContainsKey(mapping.Guid))
 1437            {
 1438                _options.Mappings[mapping.Guid] = mapping;
 1439            }
 440            else
 248441            {
 248442                _options.Mappings.TryAdd(mapping.Guid, mapping);
 248443            }
 249444        }
 445    }
 446}
-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.LogEntries.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\FluentMockServer.LogEntries.cs

@@ -1428,7 +1429,7 @@
#LineLine coverage
 86}
-
+

Methods/Properties

@@ -1465,35 +1466,35 @@ ToJson(T,System.Boolean)
ToEncoding(WireMock.Admin.Mappings.EncodingModel)
DeserializeObject(WireMock.RequestMessage)
-.ctor(WireMock.Settings.IFluentMockServerSettings)
-IsStarted()
-Ports()
-Urls()
-Mappings()
-Scenarios()
-Dispose()
-Dispose(System.Boolean)
-Start(WireMock.Settings.IFluentMockServerSettings)
-Start(System.Nullable`1<System.Int32>,System.Boolean)
-Start(System.String[])
-StartWithAdminInterface(System.Nullable`1<System.Int32>,System.Boolean)
-StartWithAdminInterface(System.String[])
-StartWithAdminInterfaceAndReadStaticMappings(System.String[])
-Stop()
-AddCatchAllMapping()
-Reset()
-ResetMappings()
-DeleteMapping(System.Guid)
-DeleteMapping(System.String)
-AddGlobalProcessingDelay(System.TimeSpan)
-AllowPartialMapping(System.Boolean)
-SetBasicAuthentication(System.String,System.String)
-RemoveBasicAuthentication()
-SetMaxRequestLogCount(System.Nullable`1<System.Int32>)
-SetRequestLogExpirationDuration(System.Nullable`1<System.Int32>)
-ResetScenarios()
-Given(WireMock.Matchers.Request.IRequestMatcher)
-RegisterMapping(WireMock.IMapping)
+.ctor(WireMock.Settings.IFluentMockServerSettings)
+IsStarted()
+Ports()
+Urls()
+Mappings()
+Scenarios()
+Dispose()
+Dispose(System.Boolean)
+Start(WireMock.Settings.IFluentMockServerSettings)
+Start(System.Nullable`1<System.Int32>,System.Boolean)
+Start(System.String[])
+StartWithAdminInterface(System.Nullable`1<System.Int32>,System.Boolean)
+StartWithAdminInterface(System.String[])
+StartWithAdminInterfaceAndReadStaticMappings(System.String[])
+Stop()
+AddCatchAllMapping()
+Reset()
+ResetMappings()
+DeleteMapping(System.Guid)
+DeleteMapping(System.String)
+AddGlobalProcessingDelay(System.TimeSpan)
+AllowPartialMapping(System.Boolean)
+SetBasicAuthentication(System.String,System.String)
+RemoveBasicAuthentication()
+SetMaxRequestLogCount(System.Nullable`1<System.Int32>)
+SetRequestLogExpirationDuration(System.Nullable`1<System.Int32>)
+ResetScenarios()
+Given(WireMock.Matchers.Request.IRequestMatcher)
+RegisterMapping(WireMock.IMapping)
add_LogEntriesChanged(System.Collections.Specialized.NotifyCollectionChangedEventHandler)
remove_LogEntriesChanged(System.Collections.Specialized.NotifyCollectionChangedEventHandler)
LogEntries()
diff --git a/report/coverlet/WireMock.Net_FluentMockServerSettings.htm b/report/coverlet/WireMock.Net_FluentMockServerSettings.htm index b8a72649..8a0377d0 100644 --- a/report/coverlet/WireMock.Net_FluentMockServerSettings.htm +++ b/report/coverlet/WireMock.Net_FluentMockServerSettings.htm @@ -16,7 +16,7 @@ Class:WireMock.Settings.FluentMockServerSettings Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Settings\FluentMockServerSettings.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Settings\FluentMockServerSettings.cs Covered lines:17 Uncovered lines:0 Coverable lines:17 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Settings\FluentMockServerSettings.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Settings\FluentMockServerSettings.cs

@@ -118,7 +118,7 @@
#LineLine coverage
 87}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_GlobalExceptionMiddleware.htm b/report/coverlet/WireMock.Net_GlobalExceptionMiddleware.htm index 3fb7e647..c1a58944 100644 --- a/report/coverlet/WireMock.Net_GlobalExceptionMiddleware.htm +++ b/report/coverlet/WireMock.Net_GlobalExceptionMiddleware.htm @@ -16,7 +16,7 @@ Class:WireMock.Owin.GlobalExceptionMiddleware Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\GlobalExceptionMiddleware.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\GlobalExceptionMiddleware.cs Covered lines:17 Uncovered lines:5 Coverable lines:22 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\GlobalExceptionMiddleware.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\GlobalExceptionMiddleware.cs

@@ -94,7 +94,7 @@ - + @@ -112,7 +112,7 @@
#LineLine coverage
 53#endif
 4654        {
 4655            return InvokeInternal(ctx);
 4656        }
 4556        }
 57
 58        private async Task InvokeInternal(IContext ctx)
 4659        {
 71}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_HandleBarsJsonPath.htm b/report/coverlet/WireMock.Net_HandleBarsJsonPath.htm index 771b4a65..44960aa6 100644 --- a/report/coverlet/WireMock.Net_HandleBarsJsonPath.htm +++ b/report/coverlet/WireMock.Net_HandleBarsJsonPath.htm @@ -16,7 +16,7 @@ Class:WireMock.Transformers.HandleBarsJsonPath Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsJsonPath.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsJsonPath.cs Covered lines:44 Uncovered lines:1 Coverable lines:45 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsJsonPath.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsJsonPath.cs

@@ -113,7 +113,7 @@
#LineLine coverage
 73}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_HandleBarsLinq.htm b/report/coverlet/WireMock.Net_HandleBarsLinq.htm index 96e99602..222d255f 100644 --- a/report/coverlet/WireMock.Net_HandleBarsLinq.htm +++ b/report/coverlet/WireMock.Net_HandleBarsLinq.htm @@ -16,7 +16,7 @@ Class:WireMock.Transformers.HandleBarsLinq Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsLinq.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsLinq.cs Covered lines:48 Uncovered lines:0 Coverable lines:48 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsLinq.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsLinq.cs

@@ -127,7 +127,7 @@
#LineLine coverage
 86}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_HandleBarsRegex.htm b/report/coverlet/WireMock.Net_HandleBarsRegex.htm index c72a7fb1..098c10f5 100644 --- a/report/coverlet/WireMock.Net_HandleBarsRegex.htm +++ b/report/coverlet/WireMock.Net_HandleBarsRegex.htm @@ -16,7 +16,7 @@ Class:WireMock.Transformers.HandleBarsRegex Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsRegex.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsRegex.cs Covered lines:43 Uncovered lines:0 Coverable lines:43 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsRegex.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsRegex.cs

@@ -106,7 +106,7 @@
#LineLine coverage
 66}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_HandlebarsHelpers.htm b/report/coverlet/WireMock.Net_HandlebarsHelpers.htm index 9e934adc..33fd3a31 100644 --- a/report/coverlet/WireMock.Net_HandlebarsHelpers.htm +++ b/report/coverlet/WireMock.Net_HandlebarsHelpers.htm @@ -16,7 +16,7 @@ Class:WireMock.Transformers.HandlebarsHelpers Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsHelpers.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsHelpers.cs Covered lines:5 Uncovered lines:0 Coverable lines:5 @@ -32,7 +32,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsHelpers.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\HandleBarsHelpers.cs

@@ -52,7 +52,7 @@
#LineLine coverage
 14}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_HeaderModel.htm b/report/coverlet/WireMock.Net_HeaderModel.htm index 2cee6ef3..ab43cb3a 100644 --- a/report/coverlet/WireMock.Net_HeaderModel.htm +++ b/report/coverlet/WireMock.Net_HeaderModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.HeaderModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\HeaderModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\HeaderModel.cs Covered lines:0 Uncovered lines:2 Coverable lines:2 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\HeaderModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\HeaderModel.cs

@@ -51,7 +51,7 @@
#LineLine coverage
 20}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_HttpClientHelper.htm b/report/coverlet/WireMock.Net_HttpClientHelper.htm index c8869a9c..778a8b28 100644 --- a/report/coverlet/WireMock.Net_HttpClientHelper.htm +++ b/report/coverlet/WireMock.Net_HttpClientHelper.htm @@ -16,7 +16,7 @@ Class:WireMock.Http.HttpClientHelper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Http\HttpClientHelper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Http\HttpClientHelper.cs Covered lines:14 Uncovered lines:14 Coverable lines:28 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Http\HttpClientHelper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Http\HttpClientHelper.cs

@@ -111,14 +111,14 @@ - +
#LineLine coverage
 71            // Call the URL
 072            var httpResponseMessage = await client.SendAsync(httpRequestMessage, HttpCompletionOption.ResponseContentRea
 73
 74            // Parse httpResponseMessage
 74            // Create ResponseMessage
 075            return await HttpResponseMessageHelper.Create(httpResponseMessage, requiredUri, originalUri);
 076        }
 77    }
 78}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_HttpRequestMessageHelper.htm b/report/coverlet/WireMock.Net_HttpRequestMessageHelper.htm index acd7d32a..a15853a4 100644 --- a/report/coverlet/WireMock.Net_HttpRequestMessageHelper.htm +++ b/report/coverlet/WireMock.Net_HttpRequestMessageHelper.htm @@ -16,7 +16,7 @@ Class:WireMock.Http.HttpRequestMessageHelper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Http\HttpRequestMessageHelper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Http\HttpRequestMessageHelper.cs Covered lines:50 Uncovered lines:5 Coverable lines:55 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Http\HttpRequestMessageHelper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Http\HttpRequestMessageHelper.cs

@@ -125,7 +125,7 @@
#LineLine coverage
 86}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_JsonMatcher.htm b/report/coverlet/WireMock.Net_JsonMatcher.htm index c0ec6995..6adb8c3f 100644 --- a/report/coverlet/WireMock.Net_JsonMatcher.htm +++ b/report/coverlet/WireMock.Net_JsonMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.JsonMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\JsonMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\JsonMatcher.cs Covered lines:37 Uncovered lines:5 Coverable lines:42 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\JsonMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\JsonMatcher.cs

@@ -148,7 +148,7 @@
#LineLine coverage
 105}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_JsonPathMatcher.htm b/report/coverlet/WireMock.Net_JsonPathMatcher.htm index 6f0642df..ce9fa071 100644 --- a/report/coverlet/WireMock.Net_JsonPathMatcher.htm +++ b/report/coverlet/WireMock.Net_JsonPathMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.JsonPathMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\JSONPathMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\JSONPathMatcher.cs Covered lines:43 Uncovered lines:3 Coverable lines:46 @@ -38,7 +38,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\JSONPathMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\JSONPathMatcher.cs

@@ -146,7 +146,7 @@
#LineLine coverage
 102}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_JsonUtils.htm b/report/coverlet/WireMock.Net_JsonUtils.htm index 890157c3..7723f6fa 100644 --- a/report/coverlet/WireMock.Net_JsonUtils.htm +++ b/report/coverlet/WireMock.Net_JsonUtils.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.JsonUtils Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\JsonUtils.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\JsonUtils.cs Covered lines:84 Uncovered lines:0 Coverable lines:84 @@ -38,7 +38,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\JsonUtils.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\JsonUtils.cs

@@ -191,7 +191,7 @@
#LineLine coverage
 147}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LinqMatcher.htm b/report/coverlet/WireMock.Net_LinqMatcher.htm index 02d96630..5bf121d3 100644 --- a/report/coverlet/WireMock.Net_LinqMatcher.htm +++ b/report/coverlet/WireMock.Net_LinqMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.LinqMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\LinqMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\LinqMatcher.cs Covered lines:36 Uncovered lines:0 Coverable lines:36 @@ -39,7 +39,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\LinqMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\LinqMatcher.cs

@@ -152,7 +152,7 @@
#LineLine coverage
 107}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LocalFileSystemHandler.htm b/report/coverlet/WireMock.Net_LocalFileSystemHandler.htm index 1b508826..9897aea8 100644 --- a/report/coverlet/WireMock.Net_LocalFileSystemHandler.htm +++ b/report/coverlet/WireMock.Net_LocalFileSystemHandler.htm @@ -16,7 +16,7 @@ Class:WireMock.Handlers.LocalFileSystemHandler Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Handlers\LocalFileSystemHandler.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Handlers\LocalFileSystemHandler.cs Covered lines:20 Uncovered lines:5 Coverable lines:25 @@ -38,7 +38,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Handlers\LocalFileSystemHandler.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Handlers\LocalFileSystemHandler.cs

@@ -106,7 +106,7 @@
#LineLine coverage
 62}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LogEntry.htm b/report/coverlet/WireMock.Net_LogEntry.htm index 7616a56d..a346e7da 100644 --- a/report/coverlet/WireMock.Net_LogEntry.htm +++ b/report/coverlet/WireMock.Net_LogEntry.htm @@ -16,7 +16,7 @@ Class:WireMock.Logging.LogEntry Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\LogEntry.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\LogEntry.cs Covered lines:6 Uncovered lines:0 Coverable lines:6 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\LogEntry.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\LogEntry.cs

@@ -53,7 +53,7 @@ - + @@ -61,7 +61,7 @@ - + @@ -69,7 +69,7 @@ - + @@ -90,7 +90,7 @@
#LineLine coverage
 22        /// <value>
 23        /// The request message.
 24        /// </value>
 89325        public RequestMessage RequestMessage { get; set; }
 88825        public RequestMessage RequestMessage { get; set; }
 26
 27        /// <summary>
 28        /// Gets or sets the response message.
 30        /// <value>
 31        /// The response message.
 32        /// </value>
 75233        public ResponseMessage ResponseMessage { get; set; }
 74733        public ResponseMessage ResponseMessage { get; set; }
 34
 35        /// <summary>
 36        /// Gets or sets the request match result.
 38        /// <value>
 39        /// The request match result.
 40        /// </value>
 27941        public RequestMatchResult RequestMatchResult { get; set; }
 27741        public RequestMatchResult RequestMatchResult { get; set; }
 42
 43        /// <summary>
 44        /// Gets or sets the mapping unique identifier.
 59}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LogEntryMapper.htm b/report/coverlet/WireMock.Net_LogEntryMapper.htm index 325206ab..4007cb7c 100644 --- a/report/coverlet/WireMock.Net_LogEntryMapper.htm +++ b/report/coverlet/WireMock.Net_LogEntryMapper.htm @@ -16,7 +16,7 @@ Class:WireMock.Serialization.LogEntryMapper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\LogEntryMapper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\LogEntryMapper.cs Covered lines:60 Uncovered lines:0 Coverable lines:60 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\LogEntryMapper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\LogEntryMapper.cs

@@ -47,71 +47,71 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#LineLine coverage
 8    internal static class LogEntryMapper
 9    {
 10        public static LogEntryModel Map(LogEntry logEntry)
 5411        {
 5412            return new LogEntryModel
 5413            {
 5414                Guid = logEntry.Guid,
 5415                Request = new LogRequestModel
 5416                {
 5417                    DateTime = logEntry.RequestMessage.DateTime,
 5418                    ClientIP = logEntry.RequestMessage.ClientIP,
 5419                    Path = logEntry.RequestMessage.Path,
 5420                    AbsolutePath = logEntry.RequestMessage.AbsolutePath,
 5421                    Url = logEntry.RequestMessage.Url,
 5422                    AbsoluteUrl = logEntry.RequestMessage.AbsoluteUrl,
 5423                    Query = logEntry.RequestMessage.Query,
 5424                    Method = logEntry.RequestMessage.Method,
 5425                    Body = logEntry.RequestMessage.Body,
 5426                    BodyAsJson = logEntry.RequestMessage.BodyAsJson,
 5427                    BodyAsBytes = logEntry.RequestMessage.BodyAsBytes,
 5428                    Headers = logEntry.RequestMessage.Headers,
 5429                    Cookies = logEntry.RequestMessage.Cookies,
 5430                    BodyEncoding = logEntry.RequestMessage.BodyEncoding != null ? new EncodingModel
 5431                    {
 5432                        EncodingName = logEntry.RequestMessage.BodyEncoding.EncodingName,
 5433                        CodePage = logEntry.RequestMessage.BodyEncoding.CodePage,
 5434                        WebName = logEntry.RequestMessage.BodyEncoding.WebName
 5435                    } : null
 5436                },
 5437                Response = new LogResponseModel
 5438                {
 5439                    StatusCode = logEntry.ResponseMessage.StatusCode,
 5440                    BodyDestination = logEntry.ResponseMessage.BodyDestination,
 5441                    Body = logEntry.ResponseMessage.Body,
 5442                    BodyAsJson = logEntry.ResponseMessage.BodyAsJson,
 5443                    BodyAsBytes = logEntry.ResponseMessage.BodyAsBytes,
 5444                    BodyOriginal = logEntry.ResponseMessage.BodyOriginal,
 5445                    BodyAsFile = logEntry.ResponseMessage.BodyAsFile,
 5446                    BodyAsFileIsCached = logEntry.ResponseMessage.BodyAsFileIsCached,
 5447                    Headers = logEntry.ResponseMessage.Headers,
 5448                    BodyEncoding = logEntry.ResponseMessage.BodyEncoding != null ? new EncodingModel
 5449                    {
 5450                        EncodingName = logEntry.ResponseMessage.BodyEncoding.EncodingName,
 5451                        CodePage = logEntry.ResponseMessage.BodyEncoding.CodePage,
 5452                        WebName = logEntry.ResponseMessage.BodyEncoding.WebName
 5453                    } : null
 5454                },
 5455                MappingGuid = logEntry.MappingGuid,
 5456                MappingTitle = logEntry.MappingTitle,
 5457                RequestMatchResult = logEntry.RequestMatchResult != null ? new LogRequestMatchModel
 5458                {
 5459                    TotalScore = logEntry.RequestMatchResult.TotalScore,
 5460                    TotalNumber = logEntry.RequestMatchResult.TotalNumber,
 5461                    IsPerfectMatch = logEntry.RequestMatchResult.IsPerfectMatch,
 5462                    AverageTotalScore = logEntry.RequestMatchResult.AverageTotalScore,
 13463                    MatchDetails = logEntry.RequestMatchResult.MatchDetails.Select(x => new
 13464                    {
 13465                        Name = x.Key.Name.Replace("RequestMessage", string.Empty),
 13466                        Score = x.Value
 13467                    } as object).ToList()
 5468                } : null
 5469            };
 5311        {
 5312            return new LogEntryModel
 5313            {
 5314                Guid = logEntry.Guid,
 5315                Request = new LogRequestModel
 5316                {
 5317                    DateTime = logEntry.RequestMessage.DateTime,
 5318                    ClientIP = logEntry.RequestMessage.ClientIP,
 5319                    Path = logEntry.RequestMessage.Path,
 5320                    AbsolutePath = logEntry.RequestMessage.AbsolutePath,
 5321                    Url = logEntry.RequestMessage.Url,
 5322                    AbsoluteUrl = logEntry.RequestMessage.AbsoluteUrl,
 5323                    Query = logEntry.RequestMessage.Query,
 5324                    Method = logEntry.RequestMessage.Method,
 5325                    Body = logEntry.RequestMessage.Body,
 5326                    BodyAsJson = logEntry.RequestMessage.BodyAsJson,
 5327                    BodyAsBytes = logEntry.RequestMessage.BodyAsBytes,
 5328                    Headers = logEntry.RequestMessage.Headers,
 5329                    Cookies = logEntry.RequestMessage.Cookies,
 5330                    BodyEncoding = logEntry.RequestMessage.BodyEncoding != null ? new EncodingModel
 5331                    {
 5332                        EncodingName = logEntry.RequestMessage.BodyEncoding.EncodingName,
 5333                        CodePage = logEntry.RequestMessage.BodyEncoding.CodePage,
 5334                        WebName = logEntry.RequestMessage.BodyEncoding.WebName
 5335                    } : null
 5336                },
 5337                Response = new LogResponseModel
 5338                {
 5339                    StatusCode = logEntry.ResponseMessage.StatusCode,
 5340                    BodyDestination = logEntry.ResponseMessage.BodyDestination,
 5341                    Body = logEntry.ResponseMessage.Body,
 5342                    BodyAsJson = logEntry.ResponseMessage.BodyAsJson,
 5343                    BodyAsBytes = logEntry.ResponseMessage.BodyAsBytes,
 5344                    BodyOriginal = logEntry.ResponseMessage.BodyOriginal,
 5345                    BodyAsFile = logEntry.ResponseMessage.BodyAsFile,
 5346                    BodyAsFileIsCached = logEntry.ResponseMessage.BodyAsFileIsCached,
 5347                    Headers = logEntry.ResponseMessage.Headers,
 5348                    BodyEncoding = logEntry.ResponseMessage.BodyEncoding != null ? new EncodingModel
 5349                    {
 5350                        EncodingName = logEntry.ResponseMessage.BodyEncoding.EncodingName,
 5351                        CodePage = logEntry.ResponseMessage.BodyEncoding.CodePage,
 5352                        WebName = logEntry.ResponseMessage.BodyEncoding.WebName
 5353                    } : null
 5354                },
 5355                MappingGuid = logEntry.MappingGuid,
 5356                MappingTitle = logEntry.MappingTitle,
 5357                RequestMatchResult = logEntry.RequestMatchResult != null ? new LogRequestMatchModel
 5358                {
 5359                    TotalScore = logEntry.RequestMatchResult.TotalScore,
 5360                    TotalNumber = logEntry.RequestMatchResult.TotalNumber,
 5361                    IsPerfectMatch = logEntry.RequestMatchResult.IsPerfectMatch,
 5362                    AverageTotalScore = logEntry.RequestMatchResult.AverageTotalScore,
 13363                    MatchDetails = logEntry.RequestMatchResult.MatchDetails.Select(x => new
 13364                    {
 13365                        Name = x.Key.Name.Replace("RequestMessage", string.Empty),
 13366                        Score = x.Value
 13367                    } as object).ToList()
 5368                } : null
 5369            };
 5470        }
 71    }
 72}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LogEntryModel.htm b/report/coverlet/WireMock.Net_LogEntryModel.htm index 838c7626..10c9cc7e 100644 --- a/report/coverlet/WireMock.Net_LogEntryModel.htm +++ b/report/coverlet/WireMock.Net_LogEntryModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Requests.LogEntryModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogEntryModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogEntryModel.cs Covered lines:6 Uncovered lines:0 Coverable lines:6 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogEntryModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogEntryModel.cs

@@ -41,7 +41,7 @@ - + @@ -71,7 +71,7 @@
#LineLine coverage
 10        /// <summary>
 11        /// The unique identifier.
 12        /// </summary>
 6213        public Guid Guid { get; set; }
 6113        public Guid Guid { get; set; }
 14
 15        /// <summary>
 16        /// The request.
 40}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LogRequestMatchModel.htm b/report/coverlet/WireMock.Net_LogRequestMatchModel.htm index 4bda3d2f..ec89cb8c 100644 --- a/report/coverlet/WireMock.Net_LogRequestMatchModel.htm +++ b/report/coverlet/WireMock.Net_LogRequestMatchModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Requests.LogRequestMatchModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestMatchModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestMatchModel.cs Covered lines:5 Uncovered lines:0 Coverable lines:5 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestMatchModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestMatchModel.cs

@@ -44,7 +44,7 @@ - + @@ -81,7 +81,7 @@
#LineLine coverage
 13        /// <value>
 14        /// The match-score.
 15        /// </value>
 3516        public double TotalScore { get; set; }
 3416        public double TotalScore { get; set; }
 17
 18        /// <summary>
 19        /// Gets or sets the total number of matches.
 50}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LogRequestModel.htm b/report/coverlet/WireMock.Net_LogRequestModel.htm index 407bfa7f..0fb77e08 100644 --- a/report/coverlet/WireMock.Net_LogRequestModel.htm +++ b/report/coverlet/WireMock.Net_LogRequestModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Requests.LogRequestModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestModel.cs Covered lines:14 Uncovered lines:0 Coverable lines:14 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogRequestModel.cs

@@ -44,7 +44,7 @@ - + @@ -64,17 +64,17 @@ - + - + - + @@ -104,17 +104,17 @@ - + - +
#LineLine coverage
 13        /// <summary>
 14        /// The Client IP Address.
 15        /// </summary>
 6216        public string ClientIP { get; set; }
 6116        public string ClientIP { get; set; }
 17
 18        /// <summary>
 19        /// The DateTime.
 33        /// <summary>
 34        /// Gets the url (relative).
 35        /// </summary>
 6236        public string Url { get; set; }
 6136        public string Url { get; set; }
 37
 38        /// <summary>
 39        /// The absolete URL.
 40        /// </summary>
 6241        public string AbsoluteUrl { get; set; }
 6141        public string AbsoluteUrl { get; set; }
 42
 43        /// <summary>
 44        /// The query.
 45        /// </summary>
 5846        public IDictionary<string, WireMockList<string>> Query { get; set; }
 5746        public IDictionary<string, WireMockList<string>> Query { get; set; }
 47
 48        /// <summary>
 49        /// The method.
 73        /// <summary>
 74        /// The body (as bytearray).
 75        /// </summary>
 5876        public byte[] BodyAsBytes { get; set; }
 5776        public byte[] BodyAsBytes { get; set; }
 77
 78        /// <summary>
 79        /// The body encoding.
 80        /// </summary>
 6281        public EncodingModel BodyEncoding { get; set; }
 6181        public EncodingModel BodyEncoding { get; set; }
 82    }
 83}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_LogResponseModel.htm b/report/coverlet/WireMock.Net_LogResponseModel.htm index a123f0b6..a23b9e4b 100644 --- a/report/coverlet/WireMock.Net_LogResponseModel.htm +++ b/report/coverlet/WireMock.Net_LogResponseModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Requests.LogResponseModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogResponseModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogResponseModel.cs Covered lines:10 Uncovered lines:0 Coverable lines:10 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Requests\LogResponseModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Requests\LogResponseModel.cs

@@ -43,7 +43,7 @@ - + @@ -53,12 +53,12 @@ - + - + @@ -68,7 +68,7 @@ - + @@ -83,7 +83,7 @@ - + @@ -93,7 +93,7 @@
#LineLine coverage
 12        /// <summary>
 13        /// Gets or sets the status code.
 14        /// </summary>
 12015        public int StatusCode { get; set; } = 200;
 11815        public int StatusCode { get; set; } = 200;
 16
 17        /// <summary>
 18        /// Gets the headers.
 22        /// <summary>
 23        /// Gets or sets the body destination (SameAsSource, String or Bytes).
 24        /// </summary>
 5825        public string BodyDestination { get; set; }
 5725        public string BodyDestination { get; set; }
 26
 27        /// <summary>
 28        /// The body (as string).
 29        /// </summary>
 5830        public string Body { get; set; }
 5730        public string Body { get; set; }
 31
 32        /// <summary>
 33        /// The body (as JSON object).
 37        /// <summary>
 38        /// The body (as bytearray).
 39        /// </summary>
 5840        public byte[] BodyAsBytes { get; set; }
 5740        public byte[] BodyAsBytes { get; set; }
 41
 42        /// <summary>
 43        /// Gets or sets the body as file.
 52        /// <summary>
 53        /// Gets or sets the original body.
 54        /// </summary>
 5855        public string BodyOriginal { get; set; }
 5755        public string BodyOriginal { get; set; }
 56
 57        /// <summary>
 58        /// Gets or sets the body.
 62}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_Mapping.htm b/report/coverlet/WireMock.Net_Mapping.htm index 9bded425..7502d71b 100644 --- a/report/coverlet/WireMock.Net_Mapping.htm +++ b/report/coverlet/WireMock.Net_Mapping.htm @@ -16,11 +16,11 @@ Class:WireMock.Mapping Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Mapping.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Mapping.cs Covered lines:36 Uncovered lines:0 Coverable lines:36 -Total lines:138 +Total lines:105 Line coverage:100% Branch coverage:92.8% @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Mapping.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Mapping.cs

@@ -55,148 +55,115 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#LineLine coverage
 14        /// <inheritdoc cref="IMapping.Guid" />
 54115        public Guid Guid { get; }
 16
 17        /// <summary>
 18        /// Gets the unique title.
 19        /// </summary>
 4220        public string Title { get; }
 21
 22        /// <summary>
 23        /// The full filename path for this mapping (only defined for static mappings).
 24        /// </summary>
 25025        public string Path { get; set; }
 26
 27        /// <summary>
 28        /// Gets the priority.
 29        /// </summary>
 11830        public int Priority { get; }
 31
 32        /// <summary>
 33        /// Scenario.
 34        /// </summary>
 17        /// <inheritdoc cref="IMapping.Title" />
 4218        public string Title { get; }
 19
 20        /// <inheritdoc cref="IMapping.Path" />
 25021        public string Path { get; set; }
 22
 23        /// <inheritdoc cref="IMapping.Priority" />
 11824        public int Priority { get; }
 25
 26        /// <inheritdoc cref="IMapping.Scenario" />
 27        [CanBeNull]
 101628        public string Scenario { get; }
 29
 30        /// <inheritdoc cref="IMapping.ExecutionConditionState" />
 31        [CanBeNull]
 3732        public string ExecutionConditionState { get; }
 33
 34        /// <inheritdoc cref="IMapping.NextState" />
 35        [CanBeNull]
 101436        public string Scenario { get; }
 2936        public string NextState { get; }
 37
 38        /// <summary>
 39        /// Execution state condition for the current mapping.
 40        /// </summary>
 41        [CanBeNull]
 3742        public string ExecutionConditionState { get; }
 38        /// <inheritdoc cref="IMapping.RequestMatcher" />
 28439        public IRequestMatcher RequestMatcher { get; }
 40
 41        /// <inheritdoc cref="IMapping.Provider" />
 32342        public IResponseProvider Provider { get; }
 43
 44        /// <summary>
 45        /// The next state which will be signaled after the current mapping execution.
 46        /// In case the value is null, state will not be changed.
 47        /// </summary>
 48        [CanBeNull]
 2849        public string NextState { get; }
 50
 51        /// <summary>
 52        /// The Request matcher.
 53        /// </summary>
 28454        public IRequestMatcher RequestMatcher { get; }
 55
 56        /// <summary>
 57        /// The Provider.
 58        /// </summary>
 32359        public IResponseProvider Provider { get; }
 60
 61        /// <summary>
 62        /// Is State started ?
 63        /// </summary>
 864        public bool IsStartState => Scenario == null || Scenario != null && NextState != null && ExecutionConditionState
 65
 66        /// <summary>
 67        /// Initializes a new instance of the <see cref="Mapping"/> class.
 68        /// </summary>
 69        /// <param name="guid">The unique identifier.</param>
 70        /// <param name="title">The unique title (can be null).</param>
 71        /// <param name="path">The full file path from this mapping title (can be null).</param>
 72        /// <param name="requestMatcher">The request matcher.</param>
 73        /// <param name="provider">The provider.</param>
 74        /// <param name="priority">The priority for this mapping.</param>
 75        /// <param name="scenario">The scenario. [Optional]</param>
 76        /// <param name="executionConditionState">State in which the current mapping can occur. [Optional]</param>
 77        /// <param name="nextState">The next state which will occur after the current mapping execution. [Optional]</par
 25078        public Mapping(Guid guid, [CanBeNull] string title, [CanBeNull] string path, IRequestMatcher requestMatcher, IRe
 25079        {
 25080            Guid = guid;
 25081            Title = title;
 25082            Path = path;
 25083            RequestMatcher = requestMatcher;
 25084            Provider = provider;
 25085            Priority = priority;
 25086            Scenario = scenario;
 25087            ExecutionConditionState = executionConditionState;
 25088            NextState = nextState;
 25089        }
 90
 91        /// <summary>
 92        /// The response to.
 93        /// </summary>
 94        /// <param name="requestMessage">The request message.</param>
 95        /// <returns>The <see cref="ResponseMessage"/>.</returns>
 96        public async Task<ResponseMessage> ResponseToAsync(RequestMessage requestMessage)
 3597        {
 3598            return await Provider.ProvideResponseAsync(requestMessage);
 3599        }
 100
 101        /// <summary>
 102        /// Gets the RequestMatchResult based on the RequestMessage.
 103        /// </summary>
 104        /// <param name="requestMessage">The request message.</param>
 105        /// <param name="nextState">The Next State.</param>
 106        /// <returns>The <see cref="RequestMatchResult"/>.</returns>
 107        public RequestMatchResult GetRequestMatchResult(RequestMessage requestMessage, [CanBeNull] string nextState)
 279108        {
 279109            var result = new RequestMatchResult();
 110
 279111            RequestMatcher.GetMatchingScore(requestMessage, result);
 112
 113            // Only check state if Scenario is defined
 279114            if (Scenario != null)
 30115            {
 30116                var matcher = new RequestMessageScenarioAndStateMatcher(nextState, ExecutionConditionState);
 30117                matcher.GetMatchingScore(requestMessage, result);
 118                //// If ExecutionConditionState is null, this means that request is the start from a scenario. So just r
 119                //if (ExecutionConditionState != null)
 120                //{
 121                //    // ExecutionConditionState is not null, so get score for matching with the nextState.
 122                //    var matcher = new RequestMessageScenarioAndStateMatcher(nextState, ExecutionConditionState);
 123                //    matcher.GetMatchingScore(requestMessage, result);
 124                //}
 30125            }
 126
 279127            return result;
 279128        }
 129
 130        /// <summary>
 131        /// Gets a value indicating whether this mapping is an Admin Interface.
 132        /// </summary>
 133        /// <value>
 134        /// <c>true</c> if this mapping is an Admin Interface; otherwise, <c>false</c>.
 135        /// </value>
 110136        public bool IsAdminInterface => Provider is DynamicResponseProvider || Provider is DynamicAsyncResponseProvider 
 137    }
 138}
 44        /// <inheritdoc cref="IMapping.IsStartState" />
 945        public bool IsStartState => Scenario == null || Scenario != null && NextState != null && ExecutionConditionState
 46
 47        /// <inheritdoc cref="IMapping.IsAdminInterface" />
 11048        public bool IsAdminInterface => Provider is DynamicResponseProvider || Provider is DynamicAsyncResponseProvider 
 49
 50        /// <summary>
 51        /// Initializes a new instance of the <see cref="Mapping"/> class.
 52        /// </summary>
 53        /// <param name="guid">The unique identifier.</param>
 54        /// <param name="title">The unique title (can be null).</param>
 55        /// <param name="path">The full file path from this mapping title (can be null).</param>
 56        /// <param name="requestMatcher">The request matcher.</param>
 57        /// <param name="provider">The provider.</param>
 58        /// <param name="priority">The priority for this mapping.</param>
 59        /// <param name="scenario">The scenario. [Optional]</param>
 60        /// <param name="executionConditionState">State in which the current mapping can occur. [Optional]</param>
 61        /// <param name="nextState">The next state which will occur after the current mapping execution. [Optional]</par
 25062        public Mapping(Guid guid, [CanBeNull] string title, [CanBeNull] string path, IRequestMatcher requestMatcher, IRe
 25063        {
 25064            Guid = guid;
 25065            Title = title;
 25066            Path = path;
 25067            RequestMatcher = requestMatcher;
 25068            Provider = provider;
 25069            Priority = priority;
 25070            Scenario = scenario;
 25071            ExecutionConditionState = executionConditionState;
 25072            NextState = nextState;
 25073        }
 74
 75        /// <inheritdoc cref="IMapping.ResponseToAsync" />
 76        public async Task<ResponseMessage> ResponseToAsync(RequestMessage requestMessage)
 3577        {
 3578            return await Provider.ProvideResponseAsync(requestMessage);
 3579        }
 80
 81        /// <inheritdoc cref="IMapping.GetRequestMatchResult" />
 82        public RequestMatchResult GetRequestMatchResult(RequestMessage requestMessage, [CanBeNull] string nextState)
 27983        {
 27984            var result = new RequestMatchResult();
 85
 27986            RequestMatcher.GetMatchingScore(requestMessage, result);
 87
 88            // Only check state if Scenario is defined
 27989            if (Scenario != null)
 3090            {
 3091                var matcher = new RequestMessageScenarioAndStateMatcher(nextState, ExecutionConditionState);
 3092                matcher.GetMatchingScore(requestMessage, result);
 93                //// If ExecutionConditionState is null, this means that request is the start from a scenario. So just r
 94                //if (ExecutionConditionState != null)
 95                //{
 96                //    // ExecutionConditionState is not null, so get score for matching with the nextState.
 97                //    var matcher = new RequestMessageScenarioAndStateMatcher(nextState, ExecutionConditionState);
 98                //    matcher.GetMatchingScore(requestMessage, result);
 99                //}
 30100            }
 101
 279102            return result;
 279103        }
 104    }
 105}
-
+
diff --git a/report/coverlet/WireMock.Net_MappingConverter.htm b/report/coverlet/WireMock.Net_MappingConverter.htm index 6d1585a4..79425dd4 100644 --- a/report/coverlet/WireMock.Net_MappingConverter.htm +++ b/report/coverlet/WireMock.Net_MappingConverter.htm @@ -16,7 +16,7 @@ Class:WireMock.Serialization.MappingConverter Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\MappingConverter.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\MappingConverter.cs Covered lines:87 Uncovered lines:29 Coverable lines:116 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\MappingConverter.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\MappingConverter.cs

@@ -182,7 +182,7 @@
#LineLine coverage
 142}
- +

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_MappingMatcher.htm b/report/coverlet/WireMock.Net_MappingMatcher.htm index 2b3b8130..d4dcdba5 100644 --- a/report/coverlet/WireMock.Net_MappingMatcher.htm +++ b/report/coverlet/WireMock.Net_MappingMatcher.htm @@ -16,11 +16,11 @@ Class:WireMock.Owin.MappingMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\MappingMatcher.cs -Covered lines:28 +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\MappingMatcher.cs +Covered lines:27 Uncovered lines:0 -Coverable lines:28 -Total lines:50 +Coverable lines:27 +Total lines:48 Line coverage:100% Branch coverage:90.9% @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\MappingMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\MappingMatcher.cs

@@ -77,20 +77,18 @@ - - - - - - - - - - - + + + + + + + + +
#LineLine coverage
 37
 138                return (bestPartialMatch?.Mapping, bestPartialMatch?.MatchResult);
 39            }
 40            else
 4841            {
 4842                var perfectMatch = mappings
 8543                    .OrderBy(m => m.Mapping.Priority)
 32944                    .FirstOrDefault(m => m.MatchResult.IsPerfectMatch);
 45
 4846                return (perfectMatch?.Mapping, perfectMatch?.MatchResult);
 47            }
 4948        }
 49    }
 50}
 40
 4841            var perfectMatch = mappings
 8542                .OrderBy(m => m.Mapping.Priority)
 32943                .FirstOrDefault(m => m.MatchResult.IsPerfectMatch);
 44
 4845            return (perfectMatch?.Mapping, perfectMatch?.MatchResult);
 4946        }
 47    }
 48}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_MappingModel.htm b/report/coverlet/WireMock.Net_MappingModel.htm index facb78af..a1145b91 100644 --- a/report/coverlet/WireMock.Net_MappingModel.htm +++ b/report/coverlet/WireMock.Net_MappingModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.MappingModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\MappingModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\MappingModel.cs Covered lines:8 Uncovered lines:0 Coverable lines:8 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\MappingModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\MappingModel.cs

@@ -82,7 +82,7 @@
#LineLine coverage
 51}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_MatchBehaviourHelper.htm b/report/coverlet/WireMock.Net_MatchBehaviourHelper.htm index 4430a7f8..29ebe1ee 100644 --- a/report/coverlet/WireMock.Net_MatchBehaviourHelper.htm +++ b/report/coverlet/WireMock.Net_MatchBehaviourHelper.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.MatchBehaviourHelper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs Covered lines:6 Uncovered lines:0 Coverable lines:6 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs

@@ -66,7 +66,7 @@
#LineLine coverage
 27}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_MatchScores.htm b/report/coverlet/WireMock.Net_MatchScores.htm index d1beb6c0..88735ad6 100644 --- a/report/coverlet/WireMock.Net_MatchScores.htm +++ b/report/coverlet/WireMock.Net_MatchScores.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.MatchScores Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchScores.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\MatchScores.cs Covered lines:9 Uncovered lines:0 Coverable lines:9 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchScores.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\MatchScores.cs

@@ -102,7 +102,7 @@
#LineLine coverage
 61}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_MatcherMapper.htm b/report/coverlet/WireMock.Net_MatcherMapper.htm index e877f30a..cc859945 100644 --- a/report/coverlet/WireMock.Net_MatcherMapper.htm +++ b/report/coverlet/WireMock.Net_MatcherMapper.htm @@ -16,7 +16,7 @@ Class:WireMock.Serialization.MatcherMapper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\MatcherMapper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\MatcherMapper.cs Covered lines:43 Uncovered lines:3 Coverable lines:46 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Serialization\MatcherMapper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Serialization\MatcherMapper.cs

@@ -137,7 +137,7 @@
#LineLine coverage
 96}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_MatcherModel.htm b/report/coverlet/WireMock.Net_MatcherModel.htm index 5550a644..6ae20cb2 100644 --- a/report/coverlet/WireMock.Net_MatcherModel.htm +++ b/report/coverlet/WireMock.Net_MatcherModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.MatcherModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\MatcherModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\MatcherModel.cs Covered lines:5 Uncovered lines:0 Coverable lines:5 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\MatcherModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\MatcherModel.cs

@@ -64,7 +64,7 @@
#LineLine coverage
 33}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_OwinRequestMapper.htm b/report/coverlet/WireMock.Net_OwinRequestMapper.htm index 6791a4be..a5cb26b6 100644 --- a/report/coverlet/WireMock.Net_OwinRequestMapper.htm +++ b/report/coverlet/WireMock.Net_OwinRequestMapper.htm @@ -16,7 +16,7 @@ Class:WireMock.Owin.Mappers.OwinRequestMapper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinRequestMapper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinRequestMapper.cs Covered lines:32 Uncovered lines:7 Coverable lines:39 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinRequestMapper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinRequestMapper.cs

@@ -69,9 +69,9 @@ - - - + + + @@ -108,7 +108,7 @@ - + @@ -130,7 +130,7 @@
#LineLine coverage
 28
 4629            Dictionary<string, string[]> headers = null;
 4630            if (request.Headers.Any())
 4631            {
 4632                headers = new Dictionary<string, string[]>();
 26233                foreach (var header in request.Headers)
 4531            {
 4532                headers = new Dictionary<string, string[]>();
 26033                foreach (var header in request.Headers)
 6234                {
 6235                    headers.Add(header.Key, header.Value);
 6236                }
 4667                ? connection.RemoteIpAddress.MapToIPv4().ToString()
 4668                : connection.RemoteIpAddress.ToString();
 69#endif
 4670            return (urldetails, clientIP);
 4570            return (urldetails, clientIP);
 4671        }
 72
 73        private bool ShouldParseBody(string method)
 89}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_OwinResponseMapper.htm b/report/coverlet/WireMock.Net_OwinResponseMapper.htm index 8fbeb1c4..1444546b 100644 --- a/report/coverlet/WireMock.Net_OwinResponseMapper.htm +++ b/report/coverlet/WireMock.Net_OwinResponseMapper.htm @@ -16,7 +16,7 @@ Class:WireMock.Owin.Mappers.OwinResponseMapper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinResponseMapper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinResponseMapper.cs Covered lines:44 Uncovered lines:3 Coverable lines:47 @@ -36,7 +36,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinResponseMapper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\Mappers\OwinResponseMapper.cs

@@ -95,15 +95,15 @@ - + - + - + @@ -115,9 +115,9 @@ - + - + @@ -142,7 +142,7 @@
#LineLine coverage
 053            {
 054                bytes = File.ReadAllBytes(responseMessage.BodyAsFile);
 055            }
 5156            else if (responseMessage.BodyAsJson != null)
 5056            else if (responseMessage.BodyAsJson != null)
 1557            {
 1558                Formatting formatting = responseMessage.BodyAsJsonIndented == true ? Formatting.Indented : Formatting.No
 1559                string jsonBody = JsonConvert.SerializeObject(responseMessage.BodyAsJson, new JsonSerializerSettings { F
 1560                bytes = (responseMessage.BodyEncoding ?? _utf8NoBom).GetBytes(jsonBody);
 1561            }
 3662            else if (responseMessage.Body != null)
 3562            else if (responseMessage.Body != null)
 1963            {
 1964                bytes = (responseMessage.BodyEncoding ?? _utf8NoBom).GetBytes(responseMessage.Body);
 1864                bytes = (responseMessage.BodyEncoding ?? _utf8NoBom).GetBytes(responseMessage.Body);
 1965            }
 66
 5267            SetResponseHeaders(responseMessage, response);
 5373        }
 74
 75        private void SetResponseHeaders(ResponseMessage responseMessage, IResponse response)
 5276        {
 5176        {
 77            // Set headers
 20278            foreach (var pair in responseMessage.Headers)
 20178            foreach (var pair in responseMessage.Headers)
 2379            {
 2380                if (ResponseHeadersToFix.ContainsKey(pair.Key))
 1981                {
 100}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ParamModel.htm b/report/coverlet/WireMock.Net_ParamModel.htm index 92a5d9e8..fea223dd 100644 --- a/report/coverlet/WireMock.Net_ParamModel.htm +++ b/report/coverlet/WireMock.Net_ParamModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.ParamModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ParamModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ParamModel.cs Covered lines:0 Uncovered lines:2 Coverable lines:2 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ParamModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ParamModel.cs

@@ -49,7 +49,7 @@
#LineLine coverage
 18}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_PathModel.htm b/report/coverlet/WireMock.Net_PathModel.htm index fdab3201..3f82fc57 100644 --- a/report/coverlet/WireMock.Net_PathModel.htm +++ b/report/coverlet/WireMock.Net_PathModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.PathModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\PathModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\PathModel.cs Covered lines:1 Uncovered lines:0 Coverable lines:1 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\PathModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\PathModel.cs

@@ -44,7 +44,7 @@
#LineLine coverage
 13}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_PortUtils.htm b/report/coverlet/WireMock.Net_PortUtils.htm index 0bccb7b0..dfa324fd 100644 --- a/report/coverlet/WireMock.Net_PortUtils.htm +++ b/report/coverlet/WireMock.Net_PortUtils.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.PortUtils Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\PortUtils.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\PortUtils.cs Covered lines:23 Uncovered lines:0 Coverable lines:23 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\PortUtils.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\PortUtils.cs

@@ -96,7 +96,7 @@
#LineLine coverage
 55}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ProxyAndRecordSettings.htm b/report/coverlet/WireMock.Net_ProxyAndRecordSettings.htm index 05cc180d..6ed2dcf9 100644 --- a/report/coverlet/WireMock.Net_ProxyAndRecordSettings.htm +++ b/report/coverlet/WireMock.Net_ProxyAndRecordSettings.htm @@ -16,7 +16,7 @@ Class:WireMock.Settings.ProxyAndRecordSettings Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Settings\ProxyAndRecordSettings.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Settings\ProxyAndRecordSettings.cs Covered lines:5 Uncovered lines:0 Coverable lines:5 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Settings\ProxyAndRecordSettings.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Settings\ProxyAndRecordSettings.cs

@@ -61,7 +61,7 @@
#LineLine coverage
 30}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ProxyAsyncResponseProvider.htm b/report/coverlet/WireMock.Net_ProxyAsyncResponseProvider.htm index a5e18390..c3455b49 100644 --- a/report/coverlet/WireMock.Net_ProxyAsyncResponseProvider.htm +++ b/report/coverlet/WireMock.Net_ProxyAsyncResponseProvider.htm @@ -16,7 +16,7 @@ Class:WireMock.ResponseProviders.ProxyAsyncResponseProvider Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs Covered lines:7 Uncovered lines:3 Coverable lines:10 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseProviders\ProxyAsyncResponseProvider.cs

@@ -67,7 +67,7 @@
#LineLine coverage
 28}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_PublicCertificateHelper.htm b/report/coverlet/WireMock.Net_PublicCertificateHelper.htm index 6a8d4256..1ecef335 100644 --- a/report/coverlet/WireMock.Net_PublicCertificateHelper.htm +++ b/report/coverlet/WireMock.Net_PublicCertificateHelper.htm @@ -16,7 +16,7 @@ Class:WireMock.HttpsCertificate.PublicCertificateHelper Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\HttpsCertificate\PublicCertificateHelper.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\HttpsCertificate\PublicCertificateHelper.cs Covered lines:0 Uncovered lines:4 Coverable lines:4 @@ -32,7 +32,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\HttpsCertificate\PublicCertificateHelper.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\HttpsCertificate\PublicCertificateHelper.cs

@@ -129,7 +129,7 @@
#LineLine coverage
 91}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RegexMatcher.htm b/report/coverlet/WireMock.Net_RegexMatcher.htm index a1eb5d9f..4cf1e4f6 100644 --- a/report/coverlet/WireMock.Net_RegexMatcher.htm +++ b/report/coverlet/WireMock.Net_RegexMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.RegexMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\RegexMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\RegexMatcher.cs Covered lines:38 Uncovered lines:3 Coverable lines:41 @@ -38,7 +38,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\RegexMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\RegexMatcher.cs

@@ -97,13 +97,13 @@ - + - + @@ -112,7 +112,7 @@ - + @@ -148,7 +148,7 @@
#LineLine coverage
 53        /// <param name="matchBehaviour">The match behaviour.</param>
 54        /// <param name="patterns">The patterns.</param>
 55        /// <param name="ignoreCase">Ignore the case from the pattern.</param>
 40856        public RegexMatcher(MatchBehaviour matchBehaviour, [NotNull, RegexPattern] string[] patterns, bool ignoreCase = 
 40756        public RegexMatcher(MatchBehaviour matchBehaviour, [NotNull, RegexPattern] string[] patterns, bool ignoreCase = 
 40857        {
 40858            Check.NotNull(patterns, nameof(patterns));
 59
 40860            _patterns = patterns;
 40861            IgnoreCase = ignoreCase;
 40862            MatchBehaviour = matchBehaviour;
 40762            MatchBehaviour = matchBehaviour;
 63
 40864            RegexOptions options = RegexOptions.Compiled;
 40865            if (ignoreCase)
 6468            }
 69
 81870            _expressions = patterns.Select(p => new Regex(p, options)).ToArray();
 40871        }
 40771        }
 72
 73        /// <inheritdoc cref="IStringMatcher.IsMatch"/>
 74        public double IsMatch(string input)
 104}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RegexUtils.htm b/report/coverlet/WireMock.Net_RegexUtils.htm index 11781a5b..461f5ae9 100644 --- a/report/coverlet/WireMock.Net_RegexUtils.htm +++ b/report/coverlet/WireMock.Net_RegexUtils.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.RegexUtils Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\RegexUtils.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\RegexUtils.cs Covered lines:12 Uncovered lines:0 Coverable lines:12 @@ -33,7 +33,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\RegexUtils.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\RegexUtils.cs

@@ -63,7 +63,7 @@
#LineLine coverage
 24}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_Request.htm b/report/coverlet/WireMock.Net_Request.htm index 80a2d543..2c268bee 100644 --- a/report/coverlet/WireMock.Net_Request.htm +++ b/report/coverlet/WireMock.Net_Request.htm @@ -16,7 +16,7 @@ Class:WireMock.RequestBuilders.Request Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs Covered lines:208 Uncovered lines:6 Coverable lines:214 @@ -81,7 +81,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs

@@ -185,8 +185,8 @@ - - + + @@ -194,7 +194,7 @@ - + @@ -505,7 +505,7 @@
#LineLine coverage
 98
 99        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithPath(string[])"/>
 100        public IRequestBuilder WithPath(params string[] paths)
 197101        {
 197102            return WithPath(MatchBehaviour.AcceptOnMatch, paths);
 196101        {
 196102            return WithPath(MatchBehaviour.AcceptOnMatch, paths);
 197103        }
 104
 105        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithPath(MatchBehaviour, string[])"/>
 197107        {
 197108            Check.NotNullOrEmpty(paths, nameof(paths));
 109
 197110            _requestMatchers.Add(new RequestMessagePathMatcher(matchBehaviour, paths));
 196110            _requestMatchers.Add(new RequestMessagePathMatcher(matchBehaviour, paths));
 197111            return this;
 197112        }
 113
 418}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMatchResult.htm b/report/coverlet/WireMock.Net_RequestMatchResult.htm index 1b3185a9..e31d5c1b 100644 --- a/report/coverlet/WireMock.Net_RequestMatchResult.htm +++ b/report/coverlet/WireMock.Net_RequestMatchResult.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMatchResult Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMatchResult.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMatchResult.cs Covered lines:16 Uncovered lines:0 Coverable lines:16 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMatchResult.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMatchResult.cs

@@ -55,7 +55,7 @@ - + @@ -63,7 +63,7 @@ - + @@ -71,7 +71,7 @@ - + @@ -79,7 +79,7 @@ - + @@ -123,7 +123,7 @@
#LineLine coverage
 14        /// <value>
 15        /// The match-score.
 16        /// </value>
 182417        public double TotalScore { get; private set; }
 182217        public double TotalScore { get; private set; }
 18
 19        /// <summary>
 20        /// Gets or sets the total number of matches.
 22        /// <value>
 23        /// The total number of matches.
 24        /// </value>
 186525        public int TotalNumber { get; private set; }
 186325        public int TotalNumber { get; private set; }
 26
 27        /// <summary>
 28        /// Gets or sets a value indicating whether this instance is perfect match.
 30        /// <value>
 31        /// <c>true</c> if this instance is perfect match; otherwise, <c>false</c>.
 32        /// </value>
 31633        public bool IsPerfectMatch => Math.Abs(TotalScore - TotalNumber) < MatchScores.Tolerance;
 31533        public bool IsPerfectMatch => Math.Abs(TotalScore - TotalNumber) < MatchScores.Tolerance;
 34
 35        /// <summary>
 36        /// Gets the match percentage.
 38        /// <value>
 39        /// The match percentage.
 40        /// </value>
 4141        public double AverageTotalScore => TotalNumber == 0 ? 0.0 : TotalScore / TotalNumber;
 4041        public double AverageTotalScore => TotalNumber == 0 ? 0.0 : TotalScore / TotalNumber;
 42
 43        /// <summary>
 44        /// Gets the match details.
 82}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessage.htm b/report/coverlet/WireMock.Net_RequestMessage.htm index a7ddad1a..6e078738 100644 --- a/report/coverlet/WireMock.Net_RequestMessage.htm +++ b/report/coverlet/WireMock.Net_RequestMessage.htm @@ -16,7 +16,7 @@ Class:WireMock.RequestMessage Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\RequestMessage.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestMessage.cs Covered lines:81 Uncovered lines:0 Coverable lines:81 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\RequestMessage.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestMessage.cs

@@ -64,12 +64,12 @@ - + - + @@ -79,7 +79,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -129,12 +129,12 @@ - + - + @@ -185,7 +185,7 @@ - + @@ -196,8 +196,8 @@ - - + + @@ -253,7 +253,7 @@
#LineLine coverage
 23        /// <summary>
 24        /// Gets the url (relative).
 25        /// </summary>
 6126        public string Url { get; }
 6026        public string Url { get; }
 27
 28        /// <summary>
 29        /// Gets the AbsoluteUrl.
 30        /// </summary>
 5531        public string AbsoluteUrl { get; }
 5431        public string AbsoluteUrl { get; }
 32
 33        /// <summary>
 34        /// Gets the DateTime.
 38        /// <summary>
 39        /// Gets the path (relative).
 40        /// </summary>
 61641        public string Path { get; }
 61541        public string Path { get; }
 42
 43        /// <summary>
 44        /// Gets the AbsolutePath.
 63        /// <summary>
 64        /// Gets the headers.
 65        /// </summary>
 18966        public IDictionary<string, WireMockList<string>> Headers { get; }
 18866        public IDictionary<string, WireMockList<string>> Headers { get; }
 67
 68        /// <summary>
 69        /// Gets the cookies.
 73        /// <summary>
 74        /// Gets the query.
 75        /// </summary>
 10476        public IDictionary<string, WireMockList<string>> Query { get; }
 10376        public IDictionary<string, WireMockList<string>> Query { get; }
 77
 78        /// <summary>
 79        /// Gets the raw query.
 88        /// <summary>
 89        /// The body (as JSON object).
 90        /// </summary>
 30291        public object BodyAsJson { get; set; }
 30091        public object BodyAsJson { get; set; }
 92
 93        /// <summary>
 94        /// The body (as bytearray).
 95        /// </summary>
 27196        public byte[] BodyAsBytes { get; set; }
 27096        public byte[] BodyAsBytes { get; set; }
 97
 98        /// <summary>
 99        /// Gets the Host
 144
 200145            AbsolutePath = WebUtility.UrlDecode(urlDetails.AbsoluteUrl.AbsolutePath);
 200146            Path = WebUtility.UrlDecode(urlDetails.Url.AbsolutePath);
 199147            PathSegments = Path.Split('/').Skip(1).ToArray();
 200147            PathSegments = Path.Split('/').Skip(1).ToArray();
 200148            AbsolutePathSegments = AbsolutePath.Split('/').Skip(1).ToArray();
 149
 200150            Method = method;
 200155            BodyAsJson = body?.BodyAsJson;
 200156            BodyAsBytes = body?.BodyAsBytes;
 157
 365158            Headers = headers?.ToDictionary(header => header.Key, header => new WireMockList<string>(header.Value));
 199159            Cookies = cookies;
 366158            Headers = headers?.ToDictionary(header => header.Key, header => new WireMockList<string>(header.Value));
 200159            Cookies = cookies;
 200160            RawQuery = WebUtility.UrlDecode(urlDetails.Url.Query);
 200161            Query = ParseQuery(RawQuery);
 200162        }
 212}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageBodyMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageBodyMatcher.htm index 2351a28c..8c84285c 100644 --- a/report/coverlet/WireMock.Net_RequestMessageBodyMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageBodyMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageBodyMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageBodyMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageBodyMatcher.cs Covered lines:67 Uncovered lines:0 Coverable lines:67 @@ -41,7 +41,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageBodyMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageBodyMatcher.cs

@@ -205,7 +205,7 @@
#LineLine coverage
 158}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageClientIPMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageClientIPMatcher.htm index 5a5c8794..5c13d8da 100644 --- a/report/coverlet/WireMock.Net_RequestMessageClientIPMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageClientIPMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageClientIPMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageClientIPMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageClientIPMatcher.cs Covered lines:27 Uncovered lines:1 Coverable lines:28 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageClientIPMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageClientIPMatcher.cs

@@ -118,7 +118,7 @@
#LineLine coverage
 75}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageCompositeMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageCompositeMatcher.htm index 692de636..5d436d7f 100644 --- a/report/coverlet/WireMock.Net_RequestMessageCompositeMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageCompositeMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageCompositeMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCompositeMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCompositeMatcher.cs Covered lines:16 Uncovered lines:0 Coverable lines:16 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCompositeMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCompositeMatcher.cs

@@ -65,9 +65,9 @@ - - - + + + @@ -92,7 +92,7 @@
#LineLine coverage
 25        /// </summary>
 26        /// <param name="requestMatchers">The request matchers.</param>
 27        /// <param name="type">The CompositeMatcherType type (Defaults to 'And')</param>
 31528        protected RequestMessageCompositeMatcher([NotNull] IEnumerable<IRequestMatcher> requestMatchers, CompositeMatche
 31529        {
 31530            Check.NotNull(requestMatchers, nameof(requestMatchers));
 31428        protected RequestMessageCompositeMatcher([NotNull] IEnumerable<IRequestMatcher> requestMatchers, CompositeMatche
 31429        {
 31430            Check.NotNull(requestMatchers, nameof(requestMatchers));
 31
 31532            _type = type;
 31533            RequestMatchers = requestMatchers;
 52}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageCookieMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageCookieMatcher.htm index aa7bd5e7..c01793ef 100644 --- a/report/coverlet/WireMock.Net_RequestMessageCookieMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageCookieMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageCookieMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCookieMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCookieMatcher.cs Covered lines:43 Uncovered lines:2 Coverable lines:45 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCookieMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageCookieMatcher.cs

@@ -154,7 +154,7 @@
#LineLine coverage
 111}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageHeaderMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageHeaderMatcher.htm index 9c50e8da..0db7c718 100644 --- a/report/coverlet/WireMock.Net_RequestMessageHeaderMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageHeaderMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageHeaderMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageHeaderMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageHeaderMatcher.cs Covered lines:52 Uncovered lines:2 Coverable lines:54 @@ -38,7 +38,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageHeaderMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageHeaderMatcher.cs

@@ -175,7 +175,7 @@
#LineLine coverage
 131}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageMethodMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageMethodMatcher.htm index e651a28d..a284940e 100644 --- a/report/coverlet/WireMock.Net_RequestMessageMethodMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageMethodMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageMethodMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageMethodMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageMethodMatcher.cs Covered lines:14 Uncovered lines:0 Coverable lines:14 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageMethodMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageMethodMatcher.cs

@@ -85,7 +85,7 @@
#LineLine coverage
 45}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageParamMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageParamMatcher.htm index 2c1fd0c3..27de1bc4 100644 --- a/report/coverlet/WireMock.Net_RequestMessageParamMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageParamMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageParamMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageParamMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageParamMatcher.cs Covered lines:46 Uncovered lines:1 Coverable lines:47 @@ -38,7 +38,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageParamMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageParamMatcher.cs

@@ -164,7 +164,7 @@
#LineLine coverage
 120}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessagePathMatcher.htm b/report/coverlet/WireMock.Net_RequestMessagePathMatcher.htm index 61ea9205..ffec1923 100644 --- a/report/coverlet/WireMock.Net_RequestMessagePathMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessagePathMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessagePathMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessagePathMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessagePathMatcher.cs Covered lines:27 Uncovered lines:1 Coverable lines:28 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessagePathMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessagePathMatcher.cs

@@ -69,20 +69,20 @@ - - - + + + - - - + + + - - + + @@ -120,7 +120,7 @@
#LineLine coverage
 26        /// </summary>
 27        /// <param name="matchBehaviour">The match behaviour.</param>
 28        /// <param name="paths">The paths.</param>
 39529        public RequestMessagePathMatcher(MatchBehaviour matchBehaviour, [NotNull] params string[] paths) : this(paths.Se
 19730        {
 19731        }
 39229        public RequestMessagePathMatcher(MatchBehaviour matchBehaviour, [NotNull] params string[] paths) : this(paths.Se
 19630        {
 19631        }
 32
 33        /// <summary>
 34        /// Initializes a new instance of the <see cref="RequestMessagePathMatcher"/> class.
 35        /// </summary>
 36        /// <param name="matchers">The matchers.</param>
 26337        public RequestMessagePathMatcher([NotNull] params IStringMatcher[] matchers)
 26338        {
 26339            Check.NotNull(matchers, nameof(matchers));
 26237        public RequestMessagePathMatcher([NotNull] params IStringMatcher[] matchers)
 26238        {
 26239            Check.NotNull(matchers, nameof(matchers));
 40
 26341            Matchers = matchers;
 26342        }
 26241            Matchers = matchers;
 26242        }
 43
 44        /// <summary>
 45        /// Initializes a new instance of the <see cref="RequestMessagePathMatcher"/> class.
 77}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageScenarioAndStateMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageScenarioAndStateMatcher.htm index c11bc5a5..42cd1a39 100644 --- a/report/coverlet/WireMock.Net_RequestMessageScenarioAndStateMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageScenarioAndStateMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageScenarioAndStateMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageScenarioAndStateMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageScenarioAndStateMatcher.cs Covered lines:12 Uncovered lines:0 Coverable lines:12 @@ -35,7 +35,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageScenarioAndStateMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageScenarioAndStateMatcher.cs

@@ -87,7 +87,7 @@
#LineLine coverage
 46}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestMessageUrlMatcher.htm b/report/coverlet/WireMock.Net_RequestMessageUrlMatcher.htm index 5418ae86..e33139ab 100644 --- a/report/coverlet/WireMock.Net_RequestMessageUrlMatcher.htm +++ b/report/coverlet/WireMock.Net_RequestMessageUrlMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.Request.RequestMessageUrlMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageUrlMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageUrlMatcher.cs Covered lines:27 Uncovered lines:1 Coverable lines:28 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageUrlMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\Request\RequestMessageUrlMatcher.cs

@@ -118,7 +118,7 @@
#LineLine coverage
 75}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RequestModel.htm b/report/coverlet/WireMock.Net_RequestModel.htm index a70e0302..daa66a56 100644 --- a/report/coverlet/WireMock.Net_RequestModel.htm +++ b/report/coverlet/WireMock.Net_RequestModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.RequestModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\RequestModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\RequestModel.cs Covered lines:8 Uncovered lines:0 Coverable lines:8 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\RequestModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\RequestModel.cs

@@ -81,7 +81,7 @@
#LineLine coverage
 50}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_RespondWithAProvider.htm b/report/coverlet/WireMock.Net_RespondWithAProvider.htm index cedb2be9..393377a2 100644 --- a/report/coverlet/WireMock.Net_RespondWithAProvider.htm +++ b/report/coverlet/WireMock.Net_RespondWithAProvider.htm @@ -16,7 +16,7 @@ Class:WireMock.Server.RespondWithAProvider Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\RespondWithAProvider.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\RespondWithAProvider.cs Covered lines:42 Uncovered lines:4 Coverable lines:46 @@ -42,7 +42,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Server\RespondWithAProvider.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Server\RespondWithAProvider.cs

@@ -66,7 +66,7 @@ - + @@ -120,11 +120,11 @@ - - + + - - + + @@ -163,7 +163,7 @@
#LineLine coverage
 18        private readonly RegistrationCallback _registrationCallback;
 19        private readonly IRequestMatcher _requestMatcher;
 20
 52321        public Guid Guid { get; private set; } = Guid.NewGuid();
 52221        public Guid Guid { get; private set; } = Guid.NewGuid();
 22
 23        /// <summary>
 24        /// Initializes a new instance of the <see cref="RespondWithAProvider"/> class.
 72
 73        /// <see cref="IRespondWithAProvider.AtPriority"/>
 74        public IRespondWithAProvider AtPriority(int priority)
 22275        {
 22276            _priority = priority;
 22175        {
 22176            _priority = priority;
 77
 22278            return this;
 22279        }
 22178            return this;
 22179        }
 80
 81        /// <see cref="IRespondWithAProvider.InScenario(string)"/>
 82        public IRespondWithAProvider InScenario(string scenario)
 115}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_Response.htm b/report/coverlet/WireMock.Net_Response.htm index 78885843..132c73ef 100644 --- a/report/coverlet/WireMock.Net_Response.htm +++ b/report/coverlet/WireMock.Net_Response.htm @@ -16,7 +16,7 @@ Class:WireMock.ResponseBuilders.Response Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseBuilders\Response.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseBuilders\Response.cs Covered lines:161 Uncovered lines:31 Coverable lines:192 @@ -58,7 +58,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseBuilders\Response.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseBuilders\Response.cs

@@ -478,7 +478,7 @@
#LineLine coverage
 414}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ResponseMessage.htm b/report/coverlet/WireMock.Net_ResponseMessage.htm index 6fcb45c5..2e6722d2 100644 --- a/report/coverlet/WireMock.Net_ResponseMessage.htm +++ b/report/coverlet/WireMock.Net_ResponseMessage.htm @@ -16,7 +16,7 @@ Class:WireMock.ResponseMessage Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseMessage.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessage.cs Covered lines:18 Uncovered lines:3 Coverable lines:21 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseMessage.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessage.cs

@@ -54,17 +54,17 @@ - + - + - + @@ -74,12 +74,12 @@ - + - + @@ -89,12 +89,12 @@ - + - + @@ -104,7 +104,7 @@ - + @@ -135,7 +135,7 @@
#LineLine coverage
 14        /// <summary>
 15        /// Gets the headers.
 16        /// </summary>
 56417        public IDictionary<string, WireMockList<string>> Headers { get; set; } = new Dictionary<string, WireMockList<str
 56217        public IDictionary<string, WireMockList<string>> Headers { get; set; } = new Dictionary<string, WireMockList<str
 18
 19        /// <summary>
 20        /// Gets or sets the status code.
 21        /// </summary>
 46522        public int StatusCode { get; set; } = 200;
 46422        public int StatusCode { get; set; } = 200;
 23
 24        /// <summary>
 25        /// Gets or sets the body.
 26        /// </summary>
 7327        public string BodyOriginal { get; set; }
 7227        public string BodyOriginal { get; set; }
 28
 29        /// <summary>
 30        /// Gets or sets the body destination (SameAsSource, String or Bytes).
 34        /// <summary>
 35        /// Gets or sets the body as a string.
 36        /// </summary>
 25137        public string Body { get; set; }
 24937        public string Body { get; set; }
 38
 39        /// <summary>
 40        /// Gets or sets the body as a json object.
 41        /// </summary>
 29042        public object BodyAsJson { get; set; }
 28842        public object BodyAsJson { get; set; }
 43
 44        /// <summary>
 45        /// Gets or sets a value indicating whether child objects to be indented according to the Newtonsoft.Json.JsonTe
 49        /// <summary>
 50        /// Gets or sets the body as bytes.
 51        /// </summary>
 16852        public byte[] BodyAsBytes { get; set; }
 16652        public byte[] BodyAsBytes { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets the body as a file.
 56        /// </summary>
 11057        public string BodyAsFile { get; set; }
 10857        public string BodyAsFile { get; set; }
 58
 59        /// <summary>
 60        /// Is the body as file cached?
 64        /// <summary>
 65        /// Gets or sets the body encoding.
 66        /// </summary>
 48367        public Encoding BodyEncoding { get; set; } = new UTF8Encoding(false);
 48167        public Encoding BodyEncoding { get; set; } = new UTF8Encoding(false);
 68
 69        /// <summary>
 70        /// Adds the header.
 95}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ResponseMessageBuilder.htm b/report/coverlet/WireMock.Net_ResponseMessageBuilder.htm index 96ba14ac..3ccc5730 100644 --- a/report/coverlet/WireMock.Net_ResponseMessageBuilder.htm +++ b/report/coverlet/WireMock.Net_ResponseMessageBuilder.htm @@ -16,7 +16,7 @@ Class:WireMock.ResponseMessageBuilder Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseMessageBuilder.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessageBuilder.cs Covered lines:11 Uncovered lines:0 Coverable lines:11 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ResponseMessageBuilder.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ResponseMessageBuilder.cs

@@ -66,7 +66,7 @@
#LineLine coverage
 26}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ResponseMessageTransformer.htm b/report/coverlet/WireMock.Net_ResponseMessageTransformer.htm index 33357e6d..b284cc4c 100644 --- a/report/coverlet/WireMock.Net_ResponseMessageTransformer.htm +++ b/report/coverlet/WireMock.Net_ResponseMessageTransformer.htm @@ -16,7 +16,7 @@ Class:WireMock.Transformers.ResponseMessageTransformer Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\ResponseMessageTransformer.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\ResponseMessageTransformer.cs Covered lines:78 Uncovered lines:4 Coverable lines:82 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Transformers\ResponseMessageTransformer.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Transformers\ResponseMessageTransformer.cs

@@ -178,7 +178,7 @@
#LineLine coverage
 135}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ResponseModel.htm b/report/coverlet/WireMock.Net_ResponseModel.htm index f7759943..c672841e 100644 --- a/report/coverlet/WireMock.Net_ResponseModel.htm +++ b/report/coverlet/WireMock.Net_ResponseModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.ResponseModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ResponseModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ResponseModel.cs Covered lines:16 Uncovered lines:0 Coverable lines:16 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\ResponseModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\ResponseModel.cs

@@ -121,7 +121,7 @@
#LineLine coverage
 90}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ScenarioState.htm b/report/coverlet/WireMock.Net_ScenarioState.htm index 305d5fef..552b5dfa 100644 --- a/report/coverlet/WireMock.Net_ScenarioState.htm +++ b/report/coverlet/WireMock.Net_ScenarioState.htm @@ -16,7 +16,7 @@ Class:WireMock.ScenarioState Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ScenarioState.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ScenarioState.cs Covered lines:4 Uncovered lines:0 Coverable lines:4 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\ScenarioState.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\ScenarioState.cs

@@ -59,7 +59,7 @@
#LineLine coverage
 28}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_ScenarioStateModel.htm b/report/coverlet/WireMock.Net_ScenarioStateModel.htm index b25b404a..47f8bb78 100644 --- a/report/coverlet/WireMock.Net_ScenarioStateModel.htm +++ b/report/coverlet/WireMock.Net_ScenarioStateModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Scenarios.ScenarioStateModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Scenarios\ScenarioStateModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Scenarios\ScenarioStateModel.cs Covered lines:0 Uncovered lines:4 Coverable lines:4 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Scenarios\ScenarioStateModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Scenarios\ScenarioStateModel.cs

@@ -59,7 +59,7 @@
#LineLine coverage
 28}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_SettingsModel.htm b/report/coverlet/WireMock.Net_SettingsModel.htm index efebfaa4..4c389a20 100644 --- a/report/coverlet/WireMock.Net_SettingsModel.htm +++ b/report/coverlet/WireMock.Net_SettingsModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Settings.SettingsModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Settings\SettingsModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Settings\SettingsModel.cs Covered lines:4 Uncovered lines:0 Coverable lines:4 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Settings\SettingsModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Settings\SettingsModel.cs

@@ -59,7 +59,7 @@
#LineLine coverage
 28}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_SimMetricsMatcher.htm b/report/coverlet/WireMock.Net_SimMetricsMatcher.htm index bdbff799..4008d6e0 100644 --- a/report/coverlet/WireMock.Net_SimMetricsMatcher.htm +++ b/report/coverlet/WireMock.Net_SimMetricsMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.SimMetricsMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\SimMetricsMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\SimMetricsMatcher.cs Covered lines:29 Uncovered lines:17 Coverable lines:46 @@ -39,7 +39,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\SimMetricsMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\SimMetricsMatcher.cs

@@ -170,7 +170,7 @@
#LineLine coverage
 125}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_StatusModel.htm b/report/coverlet/WireMock.Net_StatusModel.htm index e0379996..460ccf32 100644 --- a/report/coverlet/WireMock.Net_StatusModel.htm +++ b/report/coverlet/WireMock.Net_StatusModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.StatusModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\StatusModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\StatusModel.cs Covered lines:2 Uncovered lines:0 Coverable lines:2 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\StatusModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\StatusModel.cs

@@ -51,7 +51,7 @@
#LineLine coverage
 20}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_UrlDetails.htm b/report/coverlet/WireMock.Net_UrlDetails.htm index 81e2cf4c..ccf604b7 100644 --- a/report/coverlet/WireMock.Net_UrlDetails.htm +++ b/report/coverlet/WireMock.Net_UrlDetails.htm @@ -16,7 +16,7 @@ Class:WireMock.Models.UrlDetails Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs Covered lines:15 Uncovered lines:0 Coverable lines:15 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Models\UrlDetails.cs

@@ -91,7 +91,7 @@
#LineLine coverage
 51}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_UrlModel.htm b/report/coverlet/WireMock.Net_UrlModel.htm index 8a51dbdd..5558a368 100644 --- a/report/coverlet/WireMock.Net_UrlModel.htm +++ b/report/coverlet/WireMock.Net_UrlModel.htm @@ -16,7 +16,7 @@ Class:WireMock.Admin.Mappings.UrlModel Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\UrlModel.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\UrlModel.cs Covered lines:0 Uncovered lines:1 Coverable lines:1 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Admin\Mappings\UrlModel.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Admin\Mappings\UrlModel.cs

@@ -44,7 +44,7 @@
#LineLine coverage
 13}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_UrlUtils.htm b/report/coverlet/WireMock.Net_UrlUtils.htm index 4974d65e..9b90e362 100644 --- a/report/coverlet/WireMock.Net_UrlUtils.htm +++ b/report/coverlet/WireMock.Net_UrlUtils.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.UrlUtils Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\UrlUtils.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\UrlUtils.cs Covered lines:15 Uncovered lines:0 Coverable lines:15 @@ -34,7 +34,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\UrlUtils.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\UrlUtils.cs

@@ -78,7 +78,7 @@
#LineLine coverage
 38}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_WildcardMatcher.htm b/report/coverlet/WireMock.Net_WildcardMatcher.htm index 436ef7cd..c73521a6 100644 --- a/report/coverlet/WireMock.Net_WildcardMatcher.htm +++ b/report/coverlet/WireMock.Net_WildcardMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.WildcardMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs Covered lines:17 Uncovered lines:0 Coverable lines:17 @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\WildcardMatcher.cs

@@ -70,9 +70,9 @@ - - - + + + @@ -89,10 +89,10 @@ - - - - + + + + @@ -106,7 +106,7 @@
#LineLine coverage
 27        /// <param name="matchBehaviour">The match behaviour.</param>
 28        /// <param name="pattern">The pattern.</param>
 29        /// <param name="ignoreCase">IgnoreCase</param>
 26630        public WildcardMatcher(MatchBehaviour matchBehaviour, [NotNull] string pattern, bool ignoreCase = false) : this(
 26631        {
 26632        }
 26430        public WildcardMatcher(MatchBehaviour matchBehaviour, [NotNull] string pattern, bool ignoreCase = false) : this(
 26531        {
 26532        }
 33
 34        /// <summary>
 35        /// Initializes a new instance of the <see cref="WildcardMatcher"/> class.
 46        /// <param name="matchBehaviour">The match behaviour.</param>
 47        /// <param name="patterns">The patterns.</param>
 48        /// <param name="ignoreCase">IgnoreCase</param>
 60349        public WildcardMatcher(MatchBehaviour matchBehaviour, [NotNull] string[] patterns, bool ignoreCase = false) : ba
 30150        {
 30151            _patterns = patterns;
 30152        }
 60249        public WildcardMatcher(MatchBehaviour matchBehaviour, [NotNull] string[] patterns, bool ignoreCase = false) : ba
 30050        {
 30051            _patterns = patterns;
 30052        }
 53
 54        /// <inheritdoc cref="IStringMatcher.GetPatterns"/>
 55        public override string[] GetPatterns()
 63}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_WireMockConsoleLogger.htm b/report/coverlet/WireMock.Net_WireMockConsoleLogger.htm index 320809aa..196ccaf8 100644 --- a/report/coverlet/WireMock.Net_WireMockConsoleLogger.htm +++ b/report/coverlet/WireMock.Net_WireMockConsoleLogger.htm @@ -16,7 +16,7 @@ Class:WireMock.Logging.WireMockConsoleLogger Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\WireMockConsoleLogger.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\WireMockConsoleLogger.cs Covered lines:0 Uncovered lines:24 Coverable lines:24 @@ -39,7 +39,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\WireMockConsoleLogger.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\WireMockConsoleLogger.cs

@@ -104,7 +104,7 @@
#LineLine coverage
 59}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_WireMockList_1.htm b/report/coverlet/WireMock.Net_WireMockList_1.htm index 2b5000c3..26af0e89 100644 --- a/report/coverlet/WireMock.Net_WireMockList_1.htm +++ b/report/coverlet/WireMock.Net_WireMockList_1.htm @@ -16,7 +16,7 @@ Class:WireMock.Util.WireMockList`1 Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\WireMockList.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\WireMockList.cs Covered lines:9 Uncovered lines:3 Coverable lines:12 @@ -36,7 +36,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Util\WireMockList.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Util\WireMockList.cs

@@ -64,8 +64,8 @@ - - + + @@ -86,7 +86,7 @@
#LineLine coverage
 22        /// </summary>
 23        /// <param name="collection">The collection whose elements are copied to the new list.</param>
 20624        public WireMockList(params T[] collection) : base(collection)
 20525        {
 20526        }
 20625        {
 20626        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the <see cref="WireMockList{T}"/> class.
 44}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_WireMockMiddleware.htm b/report/coverlet/WireMock.Net_WireMockMiddleware.htm index 3ec5da77..be13fe85 100644 --- a/report/coverlet/WireMock.Net_WireMockMiddleware.htm +++ b/report/coverlet/WireMock.Net_WireMockMiddleware.htm @@ -16,12 +16,12 @@ Class:WireMock.Owin.WireMockMiddleware Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddleware.cs -Covered lines:101 +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddleware.cs +Covered lines:102 Uncovered lines:6 -Coverable lines:107 -Total lines:187 -Line coverage:94.3% +Coverable lines:108 +Total lines:188 +Line coverage:94.4% Branch coverage:86.3% @@ -37,7 +37,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddleware.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddleware.cs

@@ -93,152 +93,153 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#LineLine coverage
 5150            Check.NotNull(options, nameof(options));
 5151            Check.NotNull(requestMapper, nameof(requestMapper));
 5152            Check.NotNull(responseMapper, nameof(responseMapper));
 53
 5154            _options = options;
 5155            _requestMapper = requestMapper;
 5156            _responseMapper = responseMapper;
 5157            _mappingMatcher = mappingMatcher;
 5158        }
 59#endif
 60
 61#if !USE_ASPNETCORE
 62        public override Task Invoke(IContext ctx)
 63#else
 64        public Task Invoke(IContext ctx)
 65#endif
 5066        {
 5067            return InvokeInternal(ctx);
 5068        }
 69
 70        private async Task InvokeInternal(IContext ctx)
 5071        {
 5072            var request = await _requestMapper.MapAsync(ctx.Request);
 73
 5074            bool logRequest = false;
 5075            ResponseMessage response = null;
 5076            (IMapping TargetMapping, RequestMatchResult RequestMatchResult) result = (null, null);
 77            try
 5078            {
 48979                foreach (var mapping in _options.Mappings.Values.Where(m => m?.Scenario != null))
 3080                {
 81                    // Set start
 3082                    if (!_options.Scenarios.ContainsKey(mapping.Scenario) && mapping.IsStartState)
 483                    {
 484                        _options.Scenarios.TryAdd(mapping.Scenario, new ScenarioState
 485                        {
 486                            Name = mapping.Scenario
 487                        });
 488                    }
 3089                }
 90
 5091                result = _mappingMatcher.Match(request);
 5092                var targetMapping = result.TargetMapping;
 93
 5094                if (targetMapping == null)
 1395                {
 1396                    logRequest = true;
 1397                    _options.Logger.Warn("HttpStatusCode set to 404 : No matching mapping found");
 1398                    response = ResponseMessageBuilder.Create("No matching mapping found", 404);
 1399                    return;
 100                }
 101
 37102                logRequest = !targetMapping.IsAdminInterface;
 103
 37104                if (targetMapping.IsAdminInterface && _options.AuthorizationMatcher != null)
 2105                {
 2106                    bool present = request.Headers.TryGetValue(HttpKnownHeaderNames.Authorization, out WireMockList<stri
 2107                    if (!present || _options.AuthorizationMatcher.IsMatch(authorization.ToString()) < MatchScores.Perfec
 2108                    {
 2109                        _options.Logger.Error("HttpStatusCode set to 401");
 2110                        response = ResponseMessageBuilder.Create(null, 401);
 2111                        return;
 112                    }
 0113                }
 114
 35115                if (!targetMapping.IsAdminInterface && _options.RequestProcessingDelay > TimeSpan.Zero)
 1116                {
 1117                    await Task.Delay(_options.RequestProcessingDelay.Value);
 1118                }
 119
 35120                response = await targetMapping.ResponseToAsync(request);
 121
 35122                if (targetMapping.Scenario != null)
 9123                {
 9124                    _options.Scenarios[targetMapping.Scenario].NextState = targetMapping.NextState;
 9125                    _options.Scenarios[targetMapping.Scenario].Started = true;
 9126                    _options.Scenarios[targetMapping.Scenario].Finished = targetMapping.NextState == null;
 9127                }
 35128            }
 0129            catch (Exception ex)
 0130            {
 0131                _options.Logger.Error("HttpStatusCode set to 500");
 0132                response = ResponseMessageBuilder.Create(JsonConvert.SerializeObject(ex), 500);
 0133            }
 134            finally
 50135            {
 50136                var log = new LogEntry
 50137                {
 50138                    Guid = Guid.NewGuid(),
 50139                    RequestMessage = request,
 50140                    ResponseMessage = response,
 50141                    MappingGuid = result.TargetMapping?.Guid,
 50142                    MappingTitle = result.TargetMapping?.Title,
 50143                    RequestMatchResult = result.RequestMatchResult
 50144                };
 145
 50146                LogRequest(log, logRequest);
 147
 50148                await _responseMapper.MapAsync(response, ctx.Response);
 50149            }
 150
 35151            await CompletedTask;
 50152        }
 153
 154        private void LogRequest(LogEntry entry, bool addRequest)
 50155        {
 50156            _options.Logger.DebugRequestResponse(LogEntryMapper.Map(entry), entry.RequestMessage.Path.StartsWith("/__adm
 157
 50158            if (addRequest)
 40159            {
 40160                _options.LogEntries.Add(entry);
 40161            }
 162
 50163            if (_options.MaxRequestLogCount != null)
 3164            {
 3165                var amount = _options.LogEntries.Count - _options.MaxRequestLogCount.Value;
 8166                for (int i = 0; i < amount; i++)
 1167                {
 1168                    _options.LogEntries.RemoveAt(0);
 1169                }
 3170            }
 171
 50172            if (_options.RequestLogExpirationDuration != null)
 1173            {
 1174                var checkTime = DateTime.Now.AddHours(-_options.RequestLogExpirationDuration.Value);
 175
 4176                for (var i = _options.LogEntries.Count - 1; i >= 0; i--)
 1177                {
 1178                    var le = _options.LogEntries[i];
 1179                    if (le.RequestMessage.DateTime <= checkTime)
 1180                    {
 1181                        _options.LogEntries.RemoveAt(i);
 1182                    }
 1183                }
 1184            }
 50185        }
 186    }
 187}
 5153            Check.NotNull(mappingMatcher, nameof(mappingMatcher));
 54
 5155            _options = options;
 5156            _requestMapper = requestMapper;
 5157            _responseMapper = responseMapper;
 5158            _mappingMatcher = mappingMatcher;
 5159        }
 60#endif
 61
 62#if !USE_ASPNETCORE
 63        public override Task Invoke(IContext ctx)
 64#else
 65        public Task Invoke(IContext ctx)
 66#endif
 5067        {
 4968            return InvokeInternal(ctx);
 5069        }
 70
 71        private async Task InvokeInternal(IContext ctx)
 4972        {
 4973            var request = await _requestMapper.MapAsync(ctx.Request);
 74
 4975            bool logRequest = false;
 4976            ResponseMessage response = null;
 4977            (IMapping TargetMapping, RequestMatchResult RequestMatchResult) result = (null, null);
 78            try
 4979            {
 48980                foreach (var mapping in _options.Mappings.Values.Where(m => m?.Scenario != null))
 3081                {
 82                    // Set start
 3083                    if (!_options.Scenarios.ContainsKey(mapping.Scenario) && mapping.IsStartState)
 484                    {
 485                        _options.Scenarios.TryAdd(mapping.Scenario, new ScenarioState
 486                        {
 487                            Name = mapping.Scenario
 488                        });
 489                    }
 3090                }
 91
 5092                result = _mappingMatcher.Match(request);
 5093                var targetMapping = result.TargetMapping;
 94
 5095                if (targetMapping == null)
 1396                {
 1397                    logRequest = true;
 1398                    _options.Logger.Warn("HttpStatusCode set to 404 : No matching mapping found");
 1399                    response = ResponseMessageBuilder.Create("No matching mapping found", 404);
 13100                    return;
 101                }
 102
 37103                logRequest = !targetMapping.IsAdminInterface;
 104
 37105                if (targetMapping.IsAdminInterface && _options.AuthorizationMatcher != null)
 2106                {
 2107                    bool present = request.Headers.TryGetValue(HttpKnownHeaderNames.Authorization, out WireMockList<stri
 2108                    if (!present || _options.AuthorizationMatcher.IsMatch(authorization.ToString()) < MatchScores.Perfec
 2109                    {
 2110                        _options.Logger.Error("HttpStatusCode set to 401");
 2111                        response = ResponseMessageBuilder.Create(null, 401);
 2112                        return;
 113                    }
 0114                }
 115
 35116                if (!targetMapping.IsAdminInterface && _options.RequestProcessingDelay > TimeSpan.Zero)
 1117                {
 1118                    await Task.Delay(_options.RequestProcessingDelay.Value);
 1119                }
 120
 35121                response = await targetMapping.ResponseToAsync(request);
 122
 35123                if (targetMapping.Scenario != null)
 9124                {
 9125                    _options.Scenarios[targetMapping.Scenario].NextState = targetMapping.NextState;
 9126                    _options.Scenarios[targetMapping.Scenario].Started = true;
 9127                    _options.Scenarios[targetMapping.Scenario].Finished = targetMapping.NextState == null;
 9128                }
 35129            }
 0130            catch (Exception ex)
 0131            {
 0132                _options.Logger.Error("HttpStatusCode set to 500");
 0133                response = ResponseMessageBuilder.Create(JsonConvert.SerializeObject(ex), 500);
 0134            }
 135            finally
 50136            {
 50137                var log = new LogEntry
 50138                {
 50139                    Guid = Guid.NewGuid(),
 50140                    RequestMessage = request,
 50141                    ResponseMessage = response,
 50142                    MappingGuid = result.TargetMapping?.Guid,
 50143                    MappingTitle = result.TargetMapping?.Title,
 50144                    RequestMatchResult = result.RequestMatchResult
 50145                };
 146
 50147                LogRequest(log, logRequest);
 148
 50149                await _responseMapper.MapAsync(response, ctx.Response);
 50150            }
 151
 35152            await CompletedTask;
 50153        }
 154
 155        private void LogRequest(LogEntry entry, bool addRequest)
 49156        {
 49157            _options.Logger.DebugRequestResponse(LogEntryMapper.Map(entry), entry.RequestMessage.Path.StartsWith("/__adm
 158
 50159            if (addRequest)
 40160            {
 40161                _options.LogEntries.Add(entry);
 40162            }
 163
 50164            if (_options.MaxRequestLogCount != null)
 3165            {
 3166                var amount = _options.LogEntries.Count - _options.MaxRequestLogCount.Value;
 8167                for (int i = 0; i < amount; i++)
 1168                {
 1169                    _options.LogEntries.RemoveAt(0);
 1170                }
 3171            }
 172
 50173            if (_options.RequestLogExpirationDuration != null)
 1174            {
 1175                var checkTime = DateTime.Now.AddHours(-_options.RequestLogExpirationDuration.Value);
 176
 4177                for (var i = _options.LogEntries.Count - 1; i >= 0; i--)
 1178                {
 1179                    var le = _options.LogEntries[i];
 1180                    if (le.RequestMessage.DateTime <= checkTime)
 1181                    {
 1182                        _options.LogEntries.RemoveAt(i);
 1183                    }
 1184                }
 1185            }
 50186        }
 187    }
 188}
-
+
diff --git a/report/coverlet/WireMock.Net_WireMockMiddlewareOptions.htm b/report/coverlet/WireMock.Net_WireMockMiddlewareOptions.htm index 8e81912f..f4c86e0c 100644 --- a/report/coverlet/WireMock.Net_WireMockMiddlewareOptions.htm +++ b/report/coverlet/WireMock.Net_WireMockMiddlewareOptions.htm @@ -16,7 +16,7 @@ Class:WireMock.Owin.WireMockMiddlewareOptions Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddlewareOptions.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddlewareOptions.cs Covered lines:11 Uncovered lines:0 Coverable lines:11 @@ -25,7 +25,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddlewareOptions.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Owin\WireMockMiddlewareOptions.cs

@@ -70,7 +70,7 @@
#LineLine coverage
 39}
- +

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_WireMockNullLogger.htm b/report/coverlet/WireMock.Net_WireMockNullLogger.htm index 60cb8327..cb73fcfe 100644 --- a/report/coverlet/WireMock.Net_WireMockNullLogger.htm +++ b/report/coverlet/WireMock.Net_WireMockNullLogger.htm @@ -16,7 +16,7 @@ Class:WireMock.Logging.WireMockNullLogger Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\WireMockNullLogger.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\WireMockNullLogger.cs Covered lines:8 Uncovered lines:2 Coverable lines:10 @@ -36,7 +36,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Logging\WireMockNullLogger.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Logging\WireMockNullLogger.cs

@@ -83,7 +83,7 @@
#LineLine coverage
 41}
-
+

Methods/Properties

diff --git a/report/coverlet/WireMock.Net_XPathMatcher.htm b/report/coverlet/WireMock.Net_XPathMatcher.htm index 10ee75ca..c2c8c975 100644 --- a/report/coverlet/WireMock.Net_XPathMatcher.htm +++ b/report/coverlet/WireMock.Net_XPathMatcher.htm @@ -16,7 +16,7 @@ Class:WireMock.Matchers.XPathMatcher Assembly:WireMock.Net -File(s):C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\XPathMatcher.cs +File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\XPathMatcher.cs Covered lines:25 Uncovered lines:3 Coverable lines:28 @@ -36,7 +36,7 @@

File(s)

-

C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\XPathMatcher.cs

+

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\Matchers\XPathMatcher.cs

@@ -119,7 +119,7 @@
#LineLine coverage
 77}
-
+

Methods/Properties

diff --git a/report/coverlet/combined.js b/report/coverlet/combined.js index fff40421..b6557c96 100644 --- a/report/coverlet/combined.js +++ b/report/coverlet/combined.js @@ -352,7 +352,7 @@ var assemblies = [ { "name": "WireMock.Logging.LogEntry", "reportPath": "WireMock.Net_LogEntry.htm", "coveredLines": 6, "uncoveredLines": 0, "coverableLines": 6, "totalLines": 59, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 0, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Logging.WireMockConsoleLogger", "reportPath": "WireMock.Net_WireMockConsoleLogger.htm", "coveredLines": 0, "uncoveredLines": 24, "coverableLines": 24, "totalLines": 59, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 2, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Logging.WireMockNullLogger", "reportPath": "WireMock.Net_WireMockNullLogger.htm", "coveredLines": 8, "uncoveredLines": 2, "coverableLines": 10, "totalLines": 41, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 0, "lineCoverageHistory": [], "branchCoverageHistory": [] }, - { "name": "WireMock.Mapping", "reportPath": "WireMock.Net_Mapping.htm", "coveredLines": 36, "uncoveredLines": 0, "coverableLines": 36, "totalLines": 138, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 13, "totalBranches": 14, "lineCoverageHistory": [], "branchCoverageHistory": [] }, + { "name": "WireMock.Mapping", "reportPath": "WireMock.Net_Mapping.htm", "coveredLines": 36, "uncoveredLines": 0, "coverableLines": 36, "totalLines": 105, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 13, "totalBranches": 14, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Matchers.ExactMatcher", "reportPath": "WireMock.Net_ExactMatcher.htm", "coveredLines": 17, "uncoveredLines": 0, "coverableLines": 17, "totalLines": 54, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 0, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Matchers.ExactObjectMatcher", "reportPath": "WireMock.Net_ExactObjectMatcher.htm", "coveredLines": 24, "uncoveredLines": 0, "coverableLines": 24, "totalLines": 71, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 2, "totalBranches": 2, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Matchers.JsonMatcher", "reportPath": "WireMock.Net_JsonMatcher.htm", "coveredLines": 37, "uncoveredLines": 5, "coverableLines": 42, "totalLines": 105, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 10, "totalBranches": 12, "lineCoverageHistory": [], "branchCoverageHistory": [] }, @@ -376,12 +376,12 @@ var assemblies = [ { "name": "WireMock.Matchers.WildcardMatcher", "reportPath": "WireMock.Net_WildcardMatcher.htm", "coveredLines": 17, "uncoveredLines": 0, "coverableLines": 17, "totalLines": 63, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 2, "totalBranches": 2, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Matchers.XPathMatcher", "reportPath": "WireMock.Net_XPathMatcher.htm", "coveredLines": 25, "uncoveredLines": 3, "coverableLines": 28, "totalLines": 77, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 2, "totalBranches": 2, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Models.UrlDetails", "reportPath": "WireMock.Net_UrlDetails.htm", "coveredLines": 15, "uncoveredLines": 0, "coverableLines": 15, "totalLines": 51, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 0, "lineCoverageHistory": [], "branchCoverageHistory": [] }, - { "name": "WireMock.Owin.AspNetCoreSelfHost", "reportPath": "WireMock.Net_AspNetCoreSelfHost.htm", "coveredLines": 88, "uncoveredLines": 5, "coverableLines": 93, "totalLines": 157, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 3, "totalBranches": 4, "lineCoverageHistory": [], "branchCoverageHistory": [] }, + { "name": "WireMock.Owin.AspNetCoreSelfHost", "reportPath": "WireMock.Net_AspNetCoreSelfHost.htm", "coveredLines": 83, "uncoveredLines": 7, "coverableLines": 90, "totalLines": 159, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 3, "totalBranches": 4, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Owin.GlobalExceptionMiddleware", "reportPath": "WireMock.Net_GlobalExceptionMiddleware.htm", "coveredLines": 17, "uncoveredLines": 5, "coverableLines": 22, "totalLines": 71, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 7, "totalBranches": 12, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Owin.Mappers.OwinRequestMapper", "reportPath": "WireMock.Net_OwinRequestMapper.htm", "coveredLines": 32, "uncoveredLines": 7, "coverableLines": 39, "totalLines": 89, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 10, "totalBranches": 16, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Owin.Mappers.OwinResponseMapper", "reportPath": "WireMock.Net_OwinResponseMapper.htm", "coveredLines": 44, "uncoveredLines": 3, "coverableLines": 47, "totalLines": 100, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 20, "totalBranches": 26, "lineCoverageHistory": [], "branchCoverageHistory": [] }, - { "name": "WireMock.Owin.MappingMatcher", "reportPath": "WireMock.Net_MappingMatcher.htm", "coveredLines": 28, "uncoveredLines": 0, "coverableLines": 28, "totalLines": 50, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 20, "totalBranches": 22, "lineCoverageHistory": [], "branchCoverageHistory": [] }, - { "name": "WireMock.Owin.WireMockMiddleware", "reportPath": "WireMock.Net_WireMockMiddleware.htm", "coveredLines": 101, "uncoveredLines": 6, "coverableLines": 107, "totalLines": 187, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 57, "totalBranches": 66, "lineCoverageHistory": [], "branchCoverageHistory": [] }, + { "name": "WireMock.Owin.MappingMatcher", "reportPath": "WireMock.Net_MappingMatcher.htm", "coveredLines": 27, "uncoveredLines": 0, "coverableLines": 27, "totalLines": 48, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 20, "totalBranches": 22, "lineCoverageHistory": [], "branchCoverageHistory": [] }, + { "name": "WireMock.Owin.WireMockMiddleware", "reportPath": "WireMock.Net_WireMockMiddleware.htm", "coveredLines": 102, "uncoveredLines": 6, "coverableLines": 108, "totalLines": 188, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 57, "totalBranches": 66, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Owin.WireMockMiddlewareOptions", "reportPath": "WireMock.Net_WireMockMiddlewareOptions.htm", "coveredLines": 11, "uncoveredLines": 0, "coverableLines": 11, "totalLines": 39, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 0, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.RequestBuilders.Request", "reportPath": "WireMock.Net_Request.htm", "coveredLines": 208, "uncoveredLines": 6, "coverableLines": 214, "totalLines": 418, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 8, "totalBranches": 8, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.RequestMessage", "reportPath": "WireMock.Net_RequestMessage.htm", "coveredLines": 81, "uncoveredLines": 0, "coverableLines": 81, "totalLines": 212, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 23, "totalBranches": 24, "lineCoverageHistory": [], "branchCoverageHistory": [] }, @@ -395,7 +395,7 @@ var assemblies = [ { "name": "WireMock.Serialization.LogEntryMapper", "reportPath": "WireMock.Net_LogEntryMapper.htm", "coveredLines": 60, "uncoveredLines": 0, "coverableLines": 60, "totalLines": 72, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 7, "totalBranches": 8, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Serialization.MappingConverter", "reportPath": "WireMock.Net_MappingConverter.htm", "coveredLines": 87, "uncoveredLines": 29, "coverableLines": 116, "totalLines": 142, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 34, "totalBranches": 70, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Serialization.MatcherMapper", "reportPath": "WireMock.Net_MatcherMapper.htm", "coveredLines": 43, "uncoveredLines": 3, "coverableLines": 46, "totalLines": 96, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 59, "totalBranches": 68, "lineCoverageHistory": [], "branchCoverageHistory": [] }, - { "name": "WireMock.Server.FluentMockServer", "reportPath": "WireMock.Net_FluentMockServer.htm", "coveredLines": 397, "uncoveredLines": 339, "coverableLines": 736, "totalLines": 1316, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 133, "totalBranches": 244, "lineCoverageHistory": [], "branchCoverageHistory": [] }, + { "name": "WireMock.Server.FluentMockServer", "reportPath": "WireMock.Net_FluentMockServer.htm", "coveredLines": 392, "uncoveredLines": 344, "coverableLines": 736, "totalLines": 1317, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 130, "totalBranches": 244, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Server.RespondWithAProvider", "reportPath": "WireMock.Net_RespondWithAProvider.htm", "coveredLines": 42, "uncoveredLines": 4, "coverableLines": 46, "totalLines": 115, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 2, "totalBranches": 4, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Settings.FluentMockServerSettings", "reportPath": "WireMock.Net_FluentMockServerSettings.htm", "coveredLines": 17, "uncoveredLines": 0, "coverableLines": 17, "totalLines": 87, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 0, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Settings.ProxyAndRecordSettings", "reportPath": "WireMock.Net_ProxyAndRecordSettings.htm", "coveredLines": 5, "uncoveredLines": 0, "coverableLines": 5, "totalLines": 30, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 0, "lineCoverageHistory": [], "branchCoverageHistory": [] }, @@ -421,7 +421,7 @@ var assemblies = [ { "name": "WireMock.Net.StandAlone", "classes": [ - { "name": "WireMock.Net.StandAlone.SimpleCommandLineParser", "reportPath": "WireMock.Net.StandAlone_SimpleCommandLineParser.htm", "coveredLines": 0, "uncoveredLines": 54, "coverableLines": 54, "totalLines": 83, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 14, "lineCoverageHistory": [], "branchCoverageHistory": [] }, + { "name": "WireMock.Net.StandAlone.SimpleCommandLineParser", "reportPath": "WireMock.Net.StandAlone_SimpleCommandLineParser.htm", "coveredLines": 66, "uncoveredLines": 6, "coverableLines": 72, "totalLines": 115, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 17, "totalBranches": 20, "lineCoverageHistory": [], "branchCoverageHistory": [] }, { "name": "WireMock.Net.StandAlone.StandAloneApp", "reportPath": "WireMock.Net.StandAlone_StandAloneApp.htm", "coveredLines": 0, "uncoveredLines": 48, "coverableLines": 48, "totalLines": 90, "coverageType": "LineCoverage", "methodCoverage": "-", "coveredBranches": 0, "totalBranches": 8, "lineCoverageHistory": [], "branchCoverageHistory": [] }, ]}, ]; diff --git a/report/coverlet/index.htm b/report/coverlet/index.htm index 95c2c59f..c18db6a6 100644 --- a/report/coverlet/index.htm +++ b/report/coverlet/index.htm @@ -14,17 +14,17 @@ -Generated on:2018-09-26 - 11:51:45 +Generated on:2018-10-09 - 12:23:37 Parser:OpenCoverParser Assemblies:2 Classes:94 Files:96 -Covered lines:2807 -Uncovered lines:856 -Coverable lines:3663 -Total lines:8614 -Line coverage:76.6% -Branch coverage:68.1% +Covered lines:2863 +Uncovered lines:815 +Coverable lines:3678 +Total lines:8615 +Line coverage:77.8% +Branch coverage:69.1%

Coverage

@@ -46,7 +46,7 @@ NameCoveredUncoveredCoverableTotalLine coverageBranch coverage -WireMock.Net28077543561844178.8%
  
69.6%
  
+WireMock.Net27977613558841078.6%
  
69.3%
  
WireMock.Admin.Mappings.BodyModel10113100%
 
 
WireMock.Admin.Mappings.ClientIPModel011130%
 
 
WireMock.Admin.Mappings.CookieModel022200%
 
 
@@ -74,7 +74,7 @@ WireMock.Logging.LogEntry60659100%
 
 
WireMock.Logging.WireMockConsoleLogger02424590%
 
0%
 
WireMock.Logging.WireMockNullLogger82104180%
  
 
-WireMock.Mapping36036138100%
 
92.8%
  
+WireMock.Mapping36036105100%
 
92.8%
  
WireMock.Matchers.ExactMatcher1701754100%
 
 
WireMock.Matchers.ExactObjectMatcher2402471100%
 
100%
 
WireMock.Matchers.JsonMatcher3754210588%
  
83.3%
  
@@ -98,12 +98,12 @@ WireMock.Matchers.WildcardMatcher1701763100%
 
100%
 
WireMock.Matchers.XPathMatcher253287789.2%
  
100%
 
WireMock.Models.UrlDetails1501551100%
 
 
-WireMock.Owin.AspNetCoreSelfHost8859315794.6%
  
75%
  
+WireMock.Owin.AspNetCoreSelfHost8379015992.2%
  
75%
  
WireMock.Owin.GlobalExceptionMiddleware175227177.2%
  
58.3%
  
WireMock.Owin.Mappers.OwinRequestMapper327398982%
  
62.5%
  
WireMock.Owin.Mappers.OwinResponseMapper4434710093.6%
  
76.9%
  
-WireMock.Owin.MappingMatcher2802850100%
 
90.9%
  
-WireMock.Owin.WireMockMiddleware101610718794.3%
  
86.3%
  
+WireMock.Owin.MappingMatcher2702748100%
 
90.9%
  
+WireMock.Owin.WireMockMiddleware102610818894.4%
  
86.3%
  
WireMock.Owin.WireMockMiddlewareOptions1101139100%
 
 
WireMock.RequestBuilders.Request208621441897.1%
  
100%
 
WireMock.RequestMessage81081212100%
 
95.8%
  
@@ -117,7 +117,7 @@ WireMock.Serialization.LogEntryMapper6006072100%
 
87.5%
  
WireMock.Serialization.MappingConverter872911614275%
  
48.5%
  
WireMock.Serialization.MatcherMapper433469693.4%
  
86.7%
  
-WireMock.Server.FluentMockServer397339736131653.9%
  
54.5%
  
+WireMock.Server.FluentMockServer392344736131753.2%
  
53.2%
  
WireMock.Server.RespondWithAProvider4244611591.3%
  
50%
  
WireMock.Settings.FluentMockServerSettings1701787100%
 
 
WireMock.Settings.ProxyAndRecordSettings50530100%
 
 
@@ -139,11 +139,11 @@ WireMock.Util.WireMockList`193124475%
  
50%
  
WireMock.Validation.Check39327113954.9%
  
54.1%
  
WireMock.Validation.CoreStrings01212410%
 
 
-WireMock.Net.StandAlone01021021730%
 
0%
 
-WireMock.Net.StandAlone.SimpleCommandLineParser05454830%
 
0%
 
+WireMock.Net.StandAlone665412020555%
  
60.7%
  
+WireMock.Net.StandAlone.SimpleCommandLineParser6667211591.6%
  
85%
  
WireMock.Net.StandAlone.StandAloneApp04848900%
 
0%
 
-
+ \ No newline at end of file diff --git a/src/WireMock.Net.StandAlone/Properties/AssemblyInfo.cs b/src/WireMock.Net.StandAlone/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..239fd658 --- /dev/null +++ b/src/WireMock.Net.StandAlone/Properties/AssemblyInfo.cs @@ -0,0 +1,6 @@ +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("WireMock.Net.Tests")] + +// Needed for Moq in the UnitTest project +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] \ No newline at end of file diff --git a/src/WireMock.Net.StandAlone/SimpleCommandLineParser.cs b/src/WireMock.Net.StandAlone/SimpleCommandLineParser.cs index d99e682e..760d9e80 100644 --- a/src/WireMock.Net.StandAlone/SimpleCommandLineParser.cs +++ b/src/WireMock.Net.StandAlone/SimpleCommandLineParser.cs @@ -7,24 +7,49 @@ namespace WireMock.Net.StandAlone // Based on http://blog.gauffin.org/2014/12/simple-command-line-parser/ internal class SimpleCommandLineParser { + private const string Sigil = "--"; + private const string SigilAzureServiceFabric = "'--"; + + private enum SigilType + { + Normal, + AzureServiceFabric + } + private IDictionary Arguments { get; } = new Dictionary(); public void Parse(string[] args) { + SigilType sigil = SigilType.Normal; string currentName = null; var values = new List(); foreach (string arg in args) { - if (arg.StartsWith("--")) + if (arg.StartsWith(Sigil)) { + sigil = SigilType.Normal; + if (!string.IsNullOrEmpty(currentName)) { Arguments[currentName] = values.ToArray(); } values.Clear(); - currentName = arg.Substring(2); + currentName = arg.Substring(Sigil.Length); + } + // Azure Service Fabric passes the command line parameter surrounded with single quotes. (https://github.com/Microsoft/service-fabric/issues/234) + else if (arg.StartsWith(SigilAzureServiceFabric)) + { + sigil = SigilType.AzureServiceFabric; + + if (!string.IsNullOrEmpty(currentName)) + { + Arguments[currentName] = values.ToArray(); + } + + values.Clear(); + currentName = arg.Substring(SigilAzureServiceFabric.Length); } else if (string.IsNullOrEmpty(currentName)) { @@ -32,7 +57,14 @@ namespace WireMock.Net.StandAlone } else { - values.Add(arg); + if (sigil == SigilType.Normal) + { + values.Add(arg); + } + else + { + values.Add(arg.Substring(0, arg.Length - 1)); + } } } diff --git a/src/WireMock.Net.StandAlone/StandAloneApp.cs b/src/WireMock.Net.StandAlone/StandAloneApp.cs index 6e696214..916fb74b 100644 --- a/src/WireMock.Net.StandAlone/StandAloneApp.cs +++ b/src/WireMock.Net.StandAlone/StandAloneApp.cs @@ -46,7 +46,7 @@ namespace WireMock.Net.StandAlone StartAdminInterface = parser.GetBoolValue("StartAdminInterface", true), ReadStaticMappings = parser.GetBoolValue("ReadStaticMappings"), WatchStaticMappings = parser.GetBoolValue("WatchStaticMappings"), - AllowPartialMapping = parser.GetBoolValue("AllowPartialMapping", true), + AllowPartialMapping = parser.GetBoolValue("AllowPartialMapping", false), AdminUsername = parser.GetStringValue("AdminUsername"), AdminPassword = parser.GetStringValue("AdminPassword"), MaxRequestLogCount = parser.GetIntValue("MaxRequestLogCount"), diff --git a/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj b/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj index f7f852e9..07228e02 100644 --- a/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj +++ b/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj @@ -2,7 +2,7 @@ Lightweight StandAlone Http Mocking Server for .Net. WireMock.Net.StandAlone - 1.0.4.17 + 1.0.4.18 Stef Heyenrath net451;net452;net46;netstandard1.3;netstandard2.0 true diff --git a/src/WireMock.Net/Owin/AspNetCoreSelfHost.cs b/src/WireMock.Net/Owin/AspNetCoreSelfHost.cs index 3d030543..27fa1a22 100644 --- a/src/WireMock.Net/Owin/AspNetCoreSelfHost.cs +++ b/src/WireMock.Net/Owin/AspNetCoreSelfHost.cs @@ -103,18 +103,18 @@ namespace WireMock.Owin #endif .Build(); - return Task.Run(() => - { - StartServers(); - }, _cts.Token); + return RunHost(_cts.Token); } - private void StartServers() + private Task RunHost(CancellationToken token) { try { var appLifetime = (IApplicationLifetime)_host.Services.GetService(typeof(IApplicationLifetime)); - appLifetime.ApplicationStarted.Register(() => IsStarted = true); + appLifetime.ApplicationStarted.Register(() => + { + IsStarted = true; + }); #if NETSTANDARD1_3 _logger.Info("WireMock.Net server using netstandard1.3"); @@ -123,21 +123,23 @@ namespace WireMock.Owin #elif NET46 _logger.Info("WireMock.Net server using .net 4.6.1 or higher"); #endif - #if NETSTANDARD1_3 - _host.Run(_cts.Token); + return Task.Run(() => + { + _host.Run(token); + }); #else - _host.RunAsync(_cts.Token).Wait(); + return _host.RunAsync(token); #endif } catch (Exception e) { _runningException = e; _logger.Error(e.ToString()); - } - finally - { + IsStarted = false; + + return Task.CompletedTask; } } diff --git a/src/WireMock.Net/Owin/MappingMatcher.cs b/src/WireMock.Net/Owin/MappingMatcher.cs index 880c125d..3d275054 100644 --- a/src/WireMock.Net/Owin/MappingMatcher.cs +++ b/src/WireMock.Net/Owin/MappingMatcher.cs @@ -37,14 +37,12 @@ namespace WireMock.Owin return (bestPartialMatch?.Mapping, bestPartialMatch?.MatchResult); } - else - { - var perfectMatch = mappings - .OrderBy(m => m.Mapping.Priority) - .FirstOrDefault(m => m.MatchResult.IsPerfectMatch); - return (perfectMatch?.Mapping, perfectMatch?.MatchResult); - } + var perfectMatch = mappings + .OrderBy(m => m.Mapping.Priority) + .FirstOrDefault(m => m.MatchResult.IsPerfectMatch); + + return (perfectMatch?.Mapping, perfectMatch?.MatchResult); } } } diff --git a/src/WireMock.Net/Owin/WireMockMiddleware.cs b/src/WireMock.Net/Owin/WireMockMiddleware.cs index 9cb89472..f63545c0 100644 --- a/src/WireMock.Net/Owin/WireMockMiddleware.cs +++ b/src/WireMock.Net/Owin/WireMockMiddleware.cs @@ -50,6 +50,7 @@ namespace WireMock.Owin Check.NotNull(options, nameof(options)); Check.NotNull(requestMapper, nameof(requestMapper)); Check.NotNull(responseMapper, nameof(responseMapper)); + Check.NotNull(mappingMatcher, nameof(mappingMatcher)); _options = options; _requestMapper = requestMapper; diff --git a/src/WireMock.Net/Server/FluentMockServer.cs b/src/WireMock.Net/Server/FluentMockServer.cs index e57f6de8..c077d0d8 100644 --- a/src/WireMock.Net/Server/FluentMockServer.cs +++ b/src/WireMock.Net/Server/FluentMockServer.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; +using System.Threading.Tasks; using Newtonsoft.Json; using WireMock.Handlers; using WireMock.Logging; @@ -24,10 +25,10 @@ namespace WireMock.Server ///
public partial class FluentMockServer : IDisposable { + private const int ServerStartDelayInMs = 100; + private readonly IWireMockLogger _logger; private readonly IFileSystemHandler _fileSystemHandler; - - private const int ServerStartDelay = 100; private readonly IOwinSelfHost _httpServer; private readonly IWireMockMiddlewareOptions _options = new WireMockMiddlewareOptions(); @@ -231,7 +232,7 @@ namespace WireMock.Server throw new TimeoutException($"Service start timed out after {TimeSpan.FromMilliseconds(settings.StartTimeout)}"); } - ctsStartTimeout.Token.WaitHandle.WaitOne(ServerStartDelay); + ctsStartTimeout.Token.WaitHandle.WaitOne(ServerStartDelayInMs); } } diff --git a/src/WireMock.Net/WireMock.Net.csproj b/src/WireMock.Net/WireMock.Net.csproj index e260e240..46aff3d7 100644 --- a/src/WireMock.Net/WireMock.Net.csproj +++ b/src/WireMock.Net/WireMock.Net.csproj @@ -2,7 +2,7 @@ Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape. WireMock.Net - 1.0.4.17 + 1.0.4.18 Stef Heyenrath net451;net452;net46;net461;netstandard1.3;netstandard2.0 true diff --git a/test/WireMock.Net.Tests/FluentMockServerTests.Admin.cs b/test/WireMock.Net.Tests/FluentMockServerTests.Admin.cs index ec481a7f..2667ef88 100644 --- a/test/WireMock.Net.Tests/FluentMockServerTests.Admin.cs +++ b/test/WireMock.Net.Tests/FluentMockServerTests.Admin.cs @@ -65,18 +65,18 @@ namespace WireMock.Net.Tests staticMappingHandlerMock.Setup(m => m.FolderExists(It.IsAny())).Returns(true); staticMappingHandlerMock.Setup(m => m.WriteMappingFile(It.IsAny(), It.IsAny())); - var _server = FluentMockServer.Start(new FluentMockServerSettings + var server = FluentMockServer.Start(new FluentMockServerSettings { FileSystemHandler = staticMappingHandlerMock.Object }); - _server + server .Given(Request.Create().WithPath($"/foo_{Guid.NewGuid()}")) .WithGuid(guid) .RespondWith(Response.Create().WithBody("save test")); // Act - _server.SaveStaticMappings(); + server.SaveStaticMappings(); // Assert and Verify staticMappingHandlerMock.Verify(m => m.GetMappingFolder(), Times.Once); @@ -90,12 +90,12 @@ namespace WireMock.Net.Tests var guid = Guid.Parse("04ee4872-9efd-4770-90d3-88d445265d0d"); string title = "documentdb_root_title"; - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); string folder = Path.Combine(GetCurrentFolder(), "__admin", "mappings", "documentdb_root.json"); - _server.ReadStaticMappingAndAddOrUpdate(folder); + server.ReadStaticMappingAndAddOrUpdate(folder); - var mappings = _server.Mappings.ToArray(); + var mappings = server.Mappings.ToArray(); Check.That(mappings).HasSize(1); Check.That(mappings.First().RequestMatcher).IsNotNull(); @@ -109,11 +109,11 @@ namespace WireMock.Net.Tests { string guid = "00000002-ee28-4f29-ae63-1ac9b0802d86"; - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); string folder = Path.Combine(GetCurrentFolder(), "__admin", "mappings", guid + ".json"); - _server.ReadStaticMappingAndAddOrUpdate(folder); + server.ReadStaticMappingAndAddOrUpdate(folder); - var mappings = _server.Mappings.ToArray(); + var mappings = server.Mappings.ToArray(); Check.That(mappings).HasSize(1); Check.That(mappings.First().RequestMatcher).IsNotNull(); @@ -138,10 +138,10 @@ namespace WireMock.Net.Tests string output = JsonConvert.SerializeObject(jsonObj, Formatting.Indented); File.WriteAllText(folder, output); - var _server = FluentMockServer.Start(); - _server.ReadStaticMappingAndAddOrUpdate(folder); + var server = FluentMockServer.Start(); + server.ReadStaticMappingAndAddOrUpdate(folder); - var mappings = _server.Mappings.ToArray(); + var mappings = server.Mappings.ToArray(); Check.That(mappings).HasSize(1); Check.That(mappings.First().RequestMatcher).IsNotNull(); @@ -159,13 +159,13 @@ namespace WireMock.Net.Tests staticMappingHandlerMock.Setup(m => m.FolderExists(It.IsAny())).Returns(true); staticMappingHandlerMock.Setup(m => m.EnumerateFiles(It.IsAny())).Returns(new string[0]); - var _server = FluentMockServer.Start(new FluentMockServerSettings + var server = FluentMockServer.Start(new FluentMockServerSettings { FileSystemHandler = staticMappingHandlerMock.Object }); // Act - _server.ReadStaticMappings(); + server.ReadStaticMappings(); // Assert and Verify staticMappingHandlerMock.Verify(m => m.GetMappingFolder(), Times.Once); @@ -178,30 +178,30 @@ namespace WireMock.Net.Tests { // Assign string mapping = "{\"Request\": {\"Path\": {\"Matchers\": [{\"Name\": \"WildcardMatcher\",\"Pattern\": \"/static/mapping\"}]},\"Methods\": [\"get\"]},\"Response\": {\"BodyAsJson\": { \"body\": \"static mapping\" }}}"; - var _staticMappingHandlerMock = new Mock(); - _staticMappingHandlerMock.Setup(m => m.ReadMappingFile(It.IsAny())).Returns(mapping); + var staticMappingHandlerMock = new Mock(); + staticMappingHandlerMock.Setup(m => m.ReadMappingFile(It.IsAny())).Returns(mapping); - var _server = FluentMockServer.Start(new FluentMockServerSettings + var server = FluentMockServer.Start(new FluentMockServerSettings { - FileSystemHandler = _staticMappingHandlerMock.Object + FileSystemHandler = staticMappingHandlerMock.Object }); // Act - _server.ReadStaticMappingAndAddOrUpdate(@"c:\test.json"); + server.ReadStaticMappingAndAddOrUpdate(@"c:\test.json"); // Assert and Verify - _staticMappingHandlerMock.Verify(m => m.ReadMappingFile(@"c:\test.json"), Times.Once); + staticMappingHandlerMock.Verify(m => m.ReadMappingFile(@"c:\test.json"), Times.Once); } [Fact] public void FluentMockServer_Admin_ReadStaticMappings() { - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); string folder = Path.Combine(GetCurrentFolder(), "__admin", "mappings"); - _server.ReadStaticMappings(folder); + server.ReadStaticMappings(folder); - var mappings = _server.Mappings.ToArray(); + var mappings = server.Mappings.ToArray(); Check.That(mappings).HasSize(3); } @@ -215,13 +215,13 @@ namespace WireMock.Net.Tests { Logger = loggerMock.Object }; - var _server = FluentMockServer.Start(settings); + var server = FluentMockServer.Start(settings); // Act - _server.ReadStaticMappings(Guid.NewGuid().ToString()); + server.ReadStaticMappings(Guid.NewGuid().ToString()); // Assert - Check.That(_server.Mappings).HasSize(0); + Check.That(server.Mappings).HasSize(0); // Verify loggerMock.Verify(l => l.Info(It.Is(s => s.StartsWith("The Static Mapping folder")), It.IsAny()), Times.Once); @@ -231,15 +231,15 @@ namespace WireMock.Net.Tests public void FluentMockServer_Admin_Mappings_WithGuid_Get() { Guid guid = Guid.Parse("90356dba-b36c-469a-a17e-669cd84f1f05"); - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); - _server.Given(Request.Create().WithPath("/foo1").UsingGet()).WithGuid(guid) + server.Given(Request.Create().WithPath("/foo1").UsingGet()).WithGuid(guid) .RespondWith(Response.Create().WithStatusCode(201).WithBody("1")); - _server.Given(Request.Create().WithPath("/foo2").UsingGet()) + server.Given(Request.Create().WithPath("/foo2").UsingGet()) .RespondWith(Response.Create().WithStatusCode(202).WithBody("2")); - var mappings = _server.Mappings.ToArray(); + var mappings = server.Mappings.ToArray(); Check.That(mappings).HasSize(2); } @@ -247,12 +247,12 @@ namespace WireMock.Net.Tests public void FluentMockServer_Admin_Mappings_WithGuidAsString_Get() { string guid = "90356dba-b36c-469a-a17e-669cd84f1f05"; - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); - _server.Given(Request.Create().WithPath("/foo100").UsingGet()).WithGuid(guid) + server.Given(Request.Create().WithPath("/foo100").UsingGet()).WithGuid(guid) .RespondWith(Response.Create().WithStatusCode(201).WithBody("1")); - var mappings = _server.Mappings.ToArray(); + var mappings = server.Mappings.ToArray(); Check.That(mappings).HasSize(1); } @@ -260,23 +260,23 @@ namespace WireMock.Net.Tests public void FluentMockServer_Admin_Mappings_Add_SameGuid() { var guid = Guid.Parse("90356dba-b36c-469a-a17e-669cd84f1f05"); - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); var response1 = Response.Create().WithStatusCode(500); - _server.Given(Request.Create().UsingGet()) + server.Given(Request.Create().UsingGet()) .WithGuid(guid) .RespondWith(response1); - var mappings1 = _server.Mappings.ToArray(); + var mappings1 = server.Mappings.ToArray(); Check.That(mappings1).HasSize(1); Check.That(mappings1.First().Guid).Equals(guid); var response2 = Response.Create().WithStatusCode(400); - _server.Given(Request.Create().WithPath("/2").UsingGet()) + server.Given(Request.Create().WithPath("/2").UsingGet()) .WithGuid(guid) .RespondWith(response2); - var mappings2 = _server.Mappings.ToArray(); + var mappings2 = server.Mappings.ToArray(); Check.That(mappings2).HasSize(1); Check.That(mappings2.First().Guid).Equals(guid); Check.That(mappings2.First().Provider).Equals(response2); @@ -285,22 +285,22 @@ namespace WireMock.Net.Tests [Fact] public async Task FluentMockServer_Admin_Mappings_AtPriority() { - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); // given - _server.Given(Request.Create().WithPath("/1").UsingGet()) + server.Given(Request.Create().WithPath("/1").UsingGet()) .AtPriority(2) .RespondWith(Response.Create().WithStatusCode(200)); - _server.Given(Request.Create().WithPath("/1").UsingGet()) + server.Given(Request.Create().WithPath("/1").UsingGet()) .AtPriority(1) .RespondWith(Response.Create().WithStatusCode(400)); - var mappings = _server.Mappings.ToArray(); + var mappings = server.Mappings.ToArray(); Check.That(mappings).HasSize(2); // when - var response = await new HttpClient().GetAsync("http://localhost:" + _server.Ports[0] + "/1"); + var response = await new HttpClient().GetAsync("http://localhost:" + server.Ports[0] + "/1"); // then Check.That((int)response.StatusCode).IsEqualTo(400); @@ -310,14 +310,14 @@ namespace WireMock.Net.Tests public async Task FluentMockServer_Admin_Requests_Get() { // given - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); // when - await new HttpClient().GetAsync("http://localhost:" + _server.Ports[0] + "/foo"); + await new HttpClient().GetAsync("http://localhost:" + server.Ports[0] + "/foo"); // then - Check.That(_server.LogEntries).HasSize(1); - var requestLogged = _server.LogEntries.First(); + Check.That(server.LogEntries).HasSize(1); + var requestLogged = server.LogEntries.First(); Check.That(requestLogged.RequestMessage.Method).IsEqualTo("GET"); Check.That(requestLogged.RequestMessage.BodyAsBytes).IsNull(); } @@ -328,20 +328,20 @@ namespace WireMock.Net.Tests // Assign var client = new HttpClient(); // Act - var _server = FluentMockServer.Start(); - _server.SetMaxRequestLogCount(2); + var server = FluentMockServer.Start(); + server.SetMaxRequestLogCount(2); - await client.GetAsync("http://localhost:" + _server.Ports[0] + "/foo1"); - await client.GetAsync("http://localhost:" + _server.Ports[0] + "/foo2"); - await client.GetAsync("http://localhost:" + _server.Ports[0] + "/foo3"); + await client.GetAsync("http://localhost:" + server.Ports[0] + "/foo1"); + await client.GetAsync("http://localhost:" + server.Ports[0] + "/foo2"); + await client.GetAsync("http://localhost:" + server.Ports[0] + "/foo3"); // Assert - Check.That(_server.LogEntries).HasSize(2); + Check.That(server.LogEntries).HasSize(2); - var requestLoggedA = _server.LogEntries.First(); + var requestLoggedA = server.LogEntries.First(); Check.That(requestLoggedA.RequestMessage.Path).EndsWith("/foo2"); - var requestLoggedB = _server.LogEntries.Last(); + var requestLoggedB = server.LogEntries.Last(); Check.That(requestLoggedB.RequestMessage.Path).EndsWith("/foo3"); } @@ -354,10 +354,10 @@ namespace WireMock.Net.Tests { FileSystemHandler = fileMock.Object }; - var _server = FluentMockServer.Start(settings); + var server = FluentMockServer.Start(settings); // Act - _server.WatchStaticMappings(); + server.WatchStaticMappings(); // Verify fileMock.Verify(f => f.GetMappingFolder(), Times.Once); diff --git a/test/WireMock.Net.Tests/FluentMockServerTests.Authentication.cs b/test/WireMock.Net.Tests/FluentMockServerTests.Authentication.cs index a83181ac..99838058 100644 --- a/test/WireMock.Net.Tests/FluentMockServerTests.Authentication.cs +++ b/test/WireMock.Net.Tests/FluentMockServerTests.Authentication.cs @@ -1,4 +1,3 @@ -using System.Linq; using NFluent; using WireMock.Matchers; using WireMock.Owin; diff --git a/test/WireMock.Net.Tests/FluentMockServerTests.Proxy2.cs b/test/WireMock.Net.Tests/FluentMockServerTests.Proxy2.cs new file mode 100644 index 00000000..2cdc58e0 --- /dev/null +++ b/test/WireMock.Net.Tests/FluentMockServerTests.Proxy2.cs @@ -0,0 +1,115 @@ +using NFluent; +using System; +using System.Diagnostics; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using WireMock.RequestBuilders; +using WireMock.ResponseBuilders; +using WireMock.Server; +using WireMock.Settings; +using Xunit; +using Xunit.Abstractions; + +namespace WireMock.Net.Tests +{ + public class FluentMockServerProxy2Tests : IDisposable + { + private readonly ITestOutputHelper _output; + private readonly CancellationTokenSource _cts; + private Guid _guid; + private string _url; + + public FluentMockServerProxy2Tests(ITestOutputHelper output) + { + _output = output; + + _cts = new CancellationTokenSource(); + } + + //private Task Run() + //{ + + // return Task.Run(() => + // { + // _guid = Guid.NewGuid(); + + // var targetServer = FluentMockServer.Start(); + // targetServer.Given(Request.Create().UsingPost().WithPath($"/{_guid}")) + // .RespondWith(Response.Create().WithStatusCode(201).WithBodyAsJson(new { p = 42 }).WithHeader("Content-Type", "application/json")); + + // _url = targetServer.Urls[0]; + + // //while (!_cts.IsCancellationRequested) + // //{ + // // Thread.Sleep(100); + // //} + // }, _cts.Token); + //} + + private void X() + { + _guid = Guid.NewGuid(); + + var targetServer = FluentMockServer.Start(); + targetServer.Given(Request.Create().UsingPost().WithPath($"/{_guid}")) + .RespondWith(Response.Create().WithStatusCode(201).WithBodyAsJson(new { p = 42 }).WithHeader("Content-Type", "application/json")); + + _url = targetServer.Urls[0]; + + // Thread.Sleep(TimeSpan.FromSeconds(3)); + + _output.WriteLine(targetServer.Urls[0]); + + //while (!_cts.IsCancellationRequested) + //{ + // Thread.Sleep(100); + //} + } + + [Fact] + public void FluentMockServer_ProxyAndRecordSettings_ShouldProxyContentTypeHeader() + { + // Assign + _output.WriteLine("This is output fr"); + //var t = new Thread(X); + //t.Start(); + X(); + _output.WriteLine("started"); + + Thread.Sleep(TimeSpan.FromSeconds(4)); + + _output.WriteLine("sleep 4 done"); + + var server = FluentMockServer.Start( + new FluentMockServerSettings + { + ProxyAndRecordSettings = new ProxyAndRecordSettings + { + Url = _url + } + } + ); + + _output.WriteLine("started 2"); + _output.WriteLine(server.Urls[0]); + + // Act + var response = new HttpClient().PostAsync(new Uri($"{server.Urls[0]}/{_guid}"), new StringContent("{ \"x\": 1 }", Encoding.UTF8, "application/json")).Result; + //string content = response.Content.ReadAsStringAsync().GetAwaiter().GetResult(); + + //// Assert + //Check.That(content).IsEqualTo("{\"p\":42}"); + //Check.That(response.StatusCode).IsEqualTo(HttpStatusCode.Created); + //Check.That(response.Content.Headers.GetValues("Content-Type").First()).IsEqualTo("application/json"); + } + + public void Dispose() + { + _cts.Cancel(); + } + } +} \ No newline at end of file diff --git a/test/WireMock.Net.Tests/FluentMockServerTests.Settings.cs b/test/WireMock.Net.Tests/FluentMockServerTests.Settings.cs index 36bd4f32..920a5424 100644 --- a/test/WireMock.Net.Tests/FluentMockServerTests.Settings.cs +++ b/test/WireMock.Net.Tests/FluentMockServerTests.Settings.cs @@ -11,7 +11,7 @@ namespace WireMock.Net.Tests { public class FluentMockServerSettingsTests { - private Mock _loggerMock; + private readonly Mock _loggerMock; public FluentMockServerSettingsTests() { diff --git a/test/WireMock.Net.Tests/FluentMockServerTests.cs b/test/WireMock.Net.Tests/FluentMockServerTests.cs index f908945c..a152cad2 100644 --- a/test/WireMock.Net.Tests/FluentMockServerTests.cs +++ b/test/WireMock.Net.Tests/FluentMockServerTests.cs @@ -1,10 +1,8 @@ using NFluent; using System; using System.Diagnostics; -using System.Linq; using System.Net.Http; using System.Threading.Tasks; -using WireMock.Matchers; using WireMock.RequestBuilders; using WireMock.ResponseBuilders; using WireMock.Server; @@ -18,12 +16,12 @@ namespace WireMock.Net.Tests public async Task FluentMockServer_Should_respond_to_request_bodyAsBase64() { // given - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); - _server.Given(Request.Create().WithPath("/foo").UsingGet()).RespondWith(Response.Create().WithBodyFromBase64("SGVsbG8gV29ybGQ/")); + server.Given(Request.Create().WithPath("/foo").UsingGet()).RespondWith(Response.Create().WithBodyFromBase64("SGVsbG8gV29ybGQ/")); // when - var response = await new HttpClient().GetStringAsync("http://localhost:" + _server.Ports[0] + "/foo"); + var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/foo"); // then Check.That(response).IsEqualTo("Hello World?"); @@ -33,14 +31,14 @@ namespace WireMock.Net.Tests public async Task FluentMockServer_Should_reset_requestlogs() { // given - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); // when - await new HttpClient().GetAsync("http://localhost:" + _server.Ports[0] + "/foo"); - _server.ResetLogEntries(); + await new HttpClient().GetAsync("http://localhost:" + server.Ports[0] + "/foo"); + server.ResetLogEntries(); // then - Check.That(_server.LogEntries).IsEmpty(); + Check.That(server.LogEntries).IsEmpty(); } [Fact] @@ -48,9 +46,9 @@ namespace WireMock.Net.Tests { // given string path = $"/foo_{Guid.NewGuid()}"; - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); - _server + server .Given(Request.Create() .WithPath(path) .UsingGet()) @@ -58,12 +56,11 @@ namespace WireMock.Net.Tests .WithBody(@"{ msg: ""Hello world!""}")); // when - _server.ResetMappings(); + server.ResetMappings(); // then - Check.That(_server.Mappings).IsEmpty(); - Check.ThatAsyncCode(() => new HttpClient().GetStringAsync("http://localhost:" + _server.Ports[0] + path)) - .ThrowsAny(); + Check.That(server.Mappings).IsEmpty(); + Check.ThatAsyncCode(() => new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + path)).ThrowsAny(); } [Fact] @@ -73,16 +70,16 @@ namespace WireMock.Net.Tests string path = $"/foo_{Guid.NewGuid()}"; string pathToRedirect = $"/bar_{Guid.NewGuid()}"; - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); - _server + server .Given(Request.Create() .WithPath(path) .UsingGet()) .RespondWith(Response.Create() .WithStatusCode(307) .WithHeader("Location", pathToRedirect)); - _server + server .Given(Request.Create() .WithPath(pathToRedirect) .UsingGet()) @@ -91,7 +88,7 @@ namespace WireMock.Net.Tests .WithBody("REDIRECT SUCCESSFUL")); // Act - var response = await new HttpClient().GetStringAsync($"http://localhost:{_server.Ports[0]}{path}"); + var response = await new HttpClient().GetStringAsync($"http://localhost:{server.Ports[0]}{path}"); // Assert Check.That(response).IsEqualTo("REDIRECT SUCCESSFUL"); @@ -101,9 +98,9 @@ namespace WireMock.Net.Tests public async Task FluentMockServer_Should_delay_responses_for_a_given_route() { // given - var _server = FluentMockServer.Start(); + var server = FluentMockServer.Start(); - _server + server .Given(Request.Create() .WithPath("/*")) .RespondWith(Response.Create() @@ -113,7 +110,7 @@ namespace WireMock.Net.Tests // when var watch = new Stopwatch(); watch.Start(); - await new HttpClient().GetStringAsync("http://localhost:" + _server.Ports[0] + "/foo"); + await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/foo"); watch.Stop(); // then @@ -124,16 +121,16 @@ namespace WireMock.Net.Tests public async Task FluentMockServer_Should_delay_responses() { // given - var _server = FluentMockServer.Start(); - _server.AddGlobalProcessingDelay(TimeSpan.FromMilliseconds(200)); - _server + var server = FluentMockServer.Start(); + server.AddGlobalProcessingDelay(TimeSpan.FromMilliseconds(200)); + server .Given(Request.Create().WithPath("/*")) .RespondWith(Response.Create().WithBody(@"{ msg: ""Hello world!""}")); // when var watch = new Stopwatch(); watch.Start(); - await new HttpClient().GetStringAsync("http://localhost:" + _server.Ports[0] + "/foo"); + await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/foo"); watch.Stop(); // then diff --git a/test/WireMock.Net.Tests/Handlers/LocalFileSystemHandlerTests.cs b/test/WireMock.Net.Tests/Handlers/LocalFileSystemHandlerTests.cs index 4c572031..4bb6897c 100644 --- a/test/WireMock.Net.Tests/Handlers/LocalFileSystemHandlerTests.cs +++ b/test/WireMock.Net.Tests/Handlers/LocalFileSystemHandlerTests.cs @@ -8,13 +8,13 @@ namespace WireMock.Net.Tests.Handlers { public class LocalFileSystemHandlerTests { - private LocalFileSystemHandler sut = new LocalFileSystemHandler(); + private readonly LocalFileSystemHandler _sut = new LocalFileSystemHandler(); [Fact] public void LocalFileSystemHandler_GetMappingFolder() { // Act - string result = sut.GetMappingFolder(); + string result = _sut.GetMappingFolder(); // Assert Check.That(result).EndsWith(Path.Combine("__admin", "mappings")); @@ -24,14 +24,14 @@ namespace WireMock.Net.Tests.Handlers public void LocalFileSystemHandler_CreateFolder_Throws() { // Act - Check.ThatCode(() => sut.CreateFolder(null)).Throws(); + Check.ThatCode(() => _sut.CreateFolder(null)).Throws(); } [Fact] public void LocalFileSystemHandler_WriteMappingFile_Throws() { // Act - Check.ThatCode(() => sut.WriteMappingFile(null, null)).Throws(); + Check.ThatCode(() => _sut.WriteMappingFile(null, null)).Throws(); } } } \ No newline at end of file diff --git a/test/WireMock.Net.Tests/Http/HttpRequestMessageHelperTests.cs b/test/WireMock.Net.Tests/Http/HttpRequestMessageHelperTests.cs index c2c8b1ed..50af98c8 100644 --- a/test/WireMock.Net.Tests/Http/HttpRequestMessageHelperTests.cs +++ b/test/WireMock.Net.Tests/Http/HttpRequestMessageHelperTests.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using NFluent; using WireMock.Http; diff --git a/test/WireMock.Net.Tests/Owin/GlobalExceptionMiddlewareTests.cs b/test/WireMock.Net.Tests/Owin/GlobalExceptionMiddlewareTests.cs index 8cc9502a..ce6f8789 100644 --- a/test/WireMock.Net.Tests/Owin/GlobalExceptionMiddlewareTests.cs +++ b/test/WireMock.Net.Tests/Owin/GlobalExceptionMiddlewareTests.cs @@ -16,11 +16,11 @@ namespace WireMock.Net.Tests.Owin { public class GlobalExceptionMiddlewareTests { - private Mock _optionsMock; - private Mock _responseMapperMock; - private Mock _contextMock; + private readonly Mock _optionsMock; + private readonly Mock _responseMapperMock; + private readonly Mock _contextMock; - private GlobalExceptionMiddleware _sut; + private readonly GlobalExceptionMiddleware _sut; public GlobalExceptionMiddlewareTests() { diff --git a/test/WireMock.Net.Tests/Owin/Mappers/OwinResponseMapperTests.cs b/test/WireMock.Net.Tests/Owin/Mappers/OwinResponseMapperTests.cs index 4786be1d..3590ad46 100644 --- a/test/WireMock.Net.Tests/Owin/Mappers/OwinResponseMapperTests.cs +++ b/test/WireMock.Net.Tests/Owin/Mappers/OwinResponseMapperTests.cs @@ -21,17 +21,17 @@ namespace WireMock.Net.Tests.Owin.Mappers { public class OwinResponseMapperTests { - private static Task completedTask = Task.FromResult(true); - private OwinResponseMapper _sut; - private Mock _responseMock; - private Mock _stream; - private Mock _headers; + private static readonly Task CompletedTask = Task.FromResult(true); + private readonly OwinResponseMapper _sut; + private readonly Mock _responseMock; + private readonly Mock _stream; + private readonly Mock _headers; public OwinResponseMapperTests() { _stream = new Mock(); _stream.SetupAllProperties(); - _stream.Setup(s => s.WriteAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(completedTask); + _stream.Setup(s => s.WriteAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns(CompletedTask); _headers = new Mock(); _headers.SetupAllProperties(); @@ -156,7 +156,7 @@ namespace WireMock.Net.Tests.Owin.Mappers // Assert #if NET452 - _headers.Verify(h => h.AppendValues("h", new string[] { "x", "y" } ), Times.Once); + _headers.Verify(h => h.AppendValues("h", new string[] { "x", "y" }), Times.Once); #else var v = new StringValues(); _headers.Verify(h => h.TryGetValue("h", out v), Times.Once); diff --git a/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs b/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs index 865559cd..3eb1d772 100644 --- a/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs +++ b/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs @@ -13,9 +13,8 @@ namespace WireMock.Net.Tests.Owin { public class MappingMatcherTests { - private Mock _optionsMock; - - private IMappingMatcher _sut; + private readonly Mock _optionsMock; + private readonly IMappingMatcher _sut; public MappingMatcherTests() { diff --git a/test/WireMock.Net.Tests/Owin/WireMockMiddlewareTests.cs b/test/WireMock.Net.Tests/Owin/WireMockMiddlewareTests.cs index ec432982..ccf75d7f 100644 --- a/test/WireMock.Net.Tests/Owin/WireMockMiddlewareTests.cs +++ b/test/WireMock.Net.Tests/Owin/WireMockMiddlewareTests.cs @@ -30,14 +30,14 @@ namespace WireMock.Net.Tests.Owin { public class WireMockMiddlewareTests { - private WireMockMiddleware _sut; + private readonly WireMockMiddleware _sut; - private Mock _optionsMock; - private Mock _requestMapperMock; - private Mock _responseMapperMock; - private Mock _matcherMock; - private Mock _mappingMock; - private Mock _contextMock; + private readonly Mock _optionsMock; + private readonly Mock _requestMapperMock; + private readonly Mock _responseMapperMock; + private readonly Mock _matcherMock; + private readonly Mock _mappingMock; + private readonly Mock _contextMock; public WireMockMiddlewareTests() { diff --git a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderUsingMethodTests.cs b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderUsingMethodTests.cs index f6898e82..fbb000ca 100644 --- a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderUsingMethodTests.cs +++ b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderUsingMethodTests.cs @@ -4,7 +4,7 @@ using WireMock.Matchers.Request; using WireMock.RequestBuilders; using Xunit; -namespace WireMock.Net.Tests +namespace WireMock.Net.Tests.RequestBuilders { public class RequestBuilderUsingMethodTests { diff --git a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithBodyTests.cs b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithBodyTests.cs index d75662cf..0573f94d 100644 --- a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithBodyTests.cs +++ b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithBodyTests.cs @@ -5,7 +5,7 @@ using WireMock.Matchers.Request; using WireMock.RequestBuilders; using Xunit; -namespace WireMock.Net.Tests +namespace WireMock.Net.Tests.RequestBuilders { public class RequestBuilderWithBodyTests { diff --git a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithCookieTests.cs b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithCookieTests.cs index 3957f118..d6a07f7e 100644 --- a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithCookieTests.cs +++ b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithCookieTests.cs @@ -5,7 +5,7 @@ using WireMock.Matchers.Request; using WireMock.RequestBuilders; using Xunit; -namespace WireMock.Net.Tests +namespace WireMock.Net.Tests.RequestBuilders { public class RequestBuilderWithCookieTests { diff --git a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithHeaderTests.cs b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithHeaderTests.cs index da3c3410..e9a1bfa8 100644 --- a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithHeaderTests.cs +++ b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithHeaderTests.cs @@ -2,12 +2,10 @@ using NFluent; using WireMock.Matchers; using WireMock.Matchers.Request; -using WireMock.Models; using WireMock.RequestBuilders; -using WireMock.Util; using Xunit; -namespace WireMock.Net.Tests +namespace WireMock.Net.Tests.RequestBuilders { public class RequestBuilderWithHeaderTests { diff --git a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithParamTests.cs b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithParamTests.cs index 053bcd39..82148239 100644 --- a/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithParamTests.cs +++ b/test/WireMock.Net.Tests/RequestBuilders/RequestBuilderWithParamTests.cs @@ -2,12 +2,10 @@ using NFluent; using WireMock.Matchers; using WireMock.Matchers.Request; -using WireMock.Models; using WireMock.RequestBuilders; -using WireMock.Util; using Xunit; -namespace WireMock.Net.Tests +namespace WireMock.Net.Tests.RequestBuilders { public class RequestBuilderWithParamTests { diff --git a/test/WireMock.Net.Tests/RequestCookieTests.cs b/test/WireMock.Net.Tests/RequestCookieTests.cs index 9acba459..bc1927c2 100644 --- a/test/WireMock.Net.Tests/RequestCookieTests.cs +++ b/test/WireMock.Net.Tests/RequestCookieTests.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using NFluent; using WireMock.Matchers.Request; using WireMock.Models; diff --git a/test/WireMock.Net.Tests/RequestMatchers/RequestMessageCompositeMatcherTests.cs b/test/WireMock.Net.Tests/RequestMatchers/RequestMessageCompositeMatcherTests.cs index c20f94ec..057f7618 100644 --- a/test/WireMock.Net.Tests/RequestMatchers/RequestMessageCompositeMatcherTests.cs +++ b/test/WireMock.Net.Tests/RequestMatchers/RequestMessageCompositeMatcherTests.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Moq; using NFluent; diff --git a/test/WireMock.Net.Tests/RequestMatchers/RequestMessageParamMatcherTests.cs b/test/WireMock.Net.Tests/RequestMatchers/RequestMessageParamMatcherTests.cs index 04bbf042..78585e4c 100644 --- a/test/WireMock.Net.Tests/RequestMatchers/RequestMessageParamMatcherTests.cs +++ b/test/WireMock.Net.Tests/RequestMatchers/RequestMessageParamMatcherTests.cs @@ -1,5 +1,4 @@ -using System; -using NFluent; +using NFluent; using WireMock.Matchers; using WireMock.Matchers.Request; using WireMock.Models; diff --git a/test/WireMock.Net.Tests/RequestMessageTests.cs b/test/WireMock.Net.Tests/RequestMessageTests.cs index 045e192c..8d04bece 100644 --- a/test/WireMock.Net.Tests/RequestMessageTests.cs +++ b/test/WireMock.Net.Tests/RequestMessageTests.cs @@ -1,5 +1,4 @@ -using System; -using NFluent; +using NFluent; using WireMock.Models; using WireMock.Util; using Xunit; diff --git a/test/WireMock.Net.Tests/RequestTests.cs b/test/WireMock.Net.Tests/RequestTests.cs index e8efd974..16f04de4 100644 --- a/test/WireMock.Net.Tests/RequestTests.cs +++ b/test/WireMock.Net.Tests/RequestTests.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; +using System.Collections.Generic; using NFluent; using Xunit; using WireMock.RequestBuilders; diff --git a/test/WireMock.Net.Tests/RequestWithClientIPTests.cs b/test/WireMock.Net.Tests/RequestWithClientIPTests.cs index cbee8c84..f2d1a5b5 100644 --- a/test/WireMock.Net.Tests/RequestWithClientIPTests.cs +++ b/test/WireMock.Net.Tests/RequestWithClientIPTests.cs @@ -1,4 +1,3 @@ -using System; using NFluent; using WireMock.Matchers; using WireMock.Matchers.Request; diff --git a/test/WireMock.Net.Tests/RequestWithPathTests.cs b/test/WireMock.Net.Tests/RequestWithPathTests.cs index 52607a0f..7ceaf79c 100644 --- a/test/WireMock.Net.Tests/RequestWithPathTests.cs +++ b/test/WireMock.Net.Tests/RequestWithPathTests.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using NFluent; using WireMock.Matchers; using Xunit; diff --git a/test/WireMock.Net.Tests/RequestWithUrlTests.cs b/test/WireMock.Net.Tests/RequestWithUrlTests.cs index b66e18ae..ae520f4c 100644 --- a/test/WireMock.Net.Tests/RequestWithUrlTests.cs +++ b/test/WireMock.Net.Tests/RequestWithUrlTests.cs @@ -1,5 +1,4 @@ -using System; -using NFluent; +using NFluent; using WireMock.Matchers; using WireMock.Matchers.Request; using WireMock.Models; diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseCreateTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseCreateTests.cs index 63ba0f78..54bbbc69 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseCreateTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseCreateTests.cs @@ -4,7 +4,7 @@ using WireMock.Models; using WireMock.ResponseBuilders; using Xunit; -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseCreateTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithBodyTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithBodyTests.cs index 91b0517a..9b08d8ca 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithBodyTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithBodyTests.cs @@ -6,7 +6,7 @@ using WireMock.ResponseBuilders; using WireMock.Util; using Xunit; -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseWithBodyTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithCallbackTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithCallbackTests.cs index 4749ffd9..dafa07bc 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithCallbackTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithCallbackTests.cs @@ -4,7 +4,7 @@ using WireMock.Models; using WireMock.ResponseBuilders; using Xunit; -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseWithCallbackTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsJsonPathTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsJsonPathTests.cs index 8bf1b48d..89fcbcea 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsJsonPathTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsJsonPathTests.cs @@ -7,7 +7,7 @@ using WireMock.ResponseBuilders; using WireMock.Util; using Xunit; -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseWithHandlebarsJsonPathTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsLinqTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsLinqTests.cs index 53c9b6a2..f8fe1e8a 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsLinqTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsLinqTests.cs @@ -7,7 +7,7 @@ using WireMock.ResponseBuilders; using WireMock.Util; using Xunit; -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseWithHandlebarsLinqTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsRegexTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsRegexTests.cs index 7ca529d9..8f06ddf2 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsRegexTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsRegexTests.cs @@ -5,7 +5,7 @@ using WireMock.ResponseBuilders; using WireMock.Util; using Xunit; -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseWithHandlebarsRegexTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsTests.cs index 91192d1e..cefcd1c1 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHandlebarsTests.cs @@ -2,19 +2,19 @@ using System.Collections.Generic; using System.Text; using System.Threading.Tasks; -#if NET452 -using Microsoft.Owin; -#else -using Microsoft.AspNetCore.Http; -#endif using Newtonsoft.Json; using NFluent; using WireMock.Models; using WireMock.ResponseBuilders; using WireMock.Util; using Xunit; +#if NET452 +using Microsoft.Owin; +#else +using Microsoft.AspNetCore.Http; +#endif -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseWithHandlebarsTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHeadersTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHeadersTests.cs index 78e6f98f..404efbb4 100644 --- a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHeadersTests.cs +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithHeadersTests.cs @@ -6,7 +6,7 @@ using WireMock.ResponseBuilders; using WireMock.Util; using Xunit; -namespace WireMock.Net.Tests.ResponseBuilderTests +namespace WireMock.Net.Tests.ResponseBuilders { public class ResponseWithHeadersTests { diff --git a/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithProxyTests.cs b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithProxyTests.cs new file mode 100644 index 00000000..25ced092 --- /dev/null +++ b/test/WireMock.Net.Tests/ResponseBuilders/ResponseWithProxyTests.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using NFluent; +using WireMock.Models; +using WireMock.RequestBuilders; +using WireMock.ResponseBuilders; +using WireMock.Server; +using WireMock.Util; +using Xunit; + +namespace WireMock.Net.Tests.ResponseBuilders +{ + public class ResponseWithProxyTests : IDisposable + { + private readonly FluentMockServer _server; + private readonly Guid _guid; + + public ResponseWithProxyTests() + { + _guid = Guid.NewGuid(); + + _server = FluentMockServer.Start(); + _server.Given(Request.Create().UsingPost().WithPath($"/{_guid}")) + .RespondWith(Response.Create().WithStatusCode(201).WithBodyAsJson(new { p = 42 }).WithHeader("Content-Type", "application/json")); + } + + [Fact] + public async Task Response_WithProxy() + { + // Assign + var headers = new Dictionary { { "Content-Type", new[] { "application/xml" } } }; + var request = new RequestMessage(new UrlDetails($"{_server.Urls[0]}/{_guid}"), "POST", "::1", new BodyData { BodyAsJson = new { a = 1 } }, headers); + var response = Response.Create().WithProxy(_server.Urls[0]); + + // Act + var responseMessage = await response.ProvideResponseAsync(request); + + // Assert + Check.That(responseMessage.Body).IsEqualTo("{\"p\":42}"); + Check.That(responseMessage.StatusCode).IsEqualTo(201); + Check.That(responseMessage.Headers["Content-Type"].ToString()).IsEqualTo("application/json"); + } + + public void Dispose() + { + _server?.Dispose(); + } + } +} \ No newline at end of file diff --git a/test/WireMock.Net.Tests/StandAlone/SimpleCommandLineParserTests.cs b/test/WireMock.Net.Tests/StandAlone/SimpleCommandLineParserTests.cs new file mode 100644 index 00000000..f1a0d688 --- /dev/null +++ b/test/WireMock.Net.Tests/StandAlone/SimpleCommandLineParserTests.cs @@ -0,0 +1,103 @@ +using NFluent; +using WireMock.Net.StandAlone; +using Xunit; + +namespace WireMock.Net.Tests.StandAlone +{ + public class SimpleCommandLineParserTests + { + private readonly SimpleCommandLineParser _parser; + + public SimpleCommandLineParserTests() + { + _parser = new SimpleCommandLineParser(); + } + + [Fact] + public void SimpleCommandLineParser_Parse_Arguments() + { + // Assign + _parser.Parse(new[] { "--test1", "one", "--test2", "two", "--test3", "three" }); + + // Act + string value1 = _parser.GetStringValue("test1"); + string value2 = _parser.GetStringValue("test2"); + string value3 = _parser.GetStringValue("test3"); + + // Assert + Check.That(value1).IsEqualTo("one"); + Check.That(value2).IsEqualTo("two"); + Check.That(value3).IsEqualTo("three"); + } + + [Fact] + public void SimpleCommandLineParser_Parse_ArgumentsWithSingleQuotes() + { + // Assign + _parser.Parse(new[] { "'--test1", "one'", "'--test2", "two'", "'--test3", "three'" }); + + // Act + string value1 = _parser.GetStringValue("test1"); + string value2 = _parser.GetStringValue("test2"); + string value3 = _parser.GetStringValue("test3"); + + // Assert + Check.That(value1).IsEqualTo("one"); + Check.That(value2).IsEqualTo("two"); + Check.That(value3).IsEqualTo("three"); + } + + [Fact] + public void SimpleCommandLineParser_Parse_ArgumentsMixed() + { + // Assign + _parser.Parse(new[] { "'--test1", "one'", "--test2", "two", "--test3", "three" }); + + // Act + string value1 = _parser.GetStringValue("test1"); + string value2 = _parser.GetStringValue("test2"); + string value3 = _parser.GetStringValue("test3"); + + // Assert + Check.That(value1).IsEqualTo("one"); + Check.That(value2).IsEqualTo("two"); + Check.That(value3).IsEqualTo("three"); + } + + [Fact] + public void SimpleCommandLineParser_Parse_GetBoolValue() + { + // Assign + _parser.Parse(new[] { "'--test1", "false'", "--test2", "true" }); + + // Act + bool value1 = _parser.GetBoolValue("test1"); + bool value2 = _parser.GetBoolValue("test2"); + bool value3 = _parser.GetBoolValue("test3", true); + + // Assert + Check.That(value1).IsEqualTo(false); + Check.That(value2).IsEqualTo(true); + Check.That(value3).IsEqualTo(true); + } + + [Fact] + public void SimpleCommandLineParser_Parse_GetIntValue() + { + // Assign + _parser.Parse(new[] { "'--test1", "42'", "--test2", "55" }); + + // Act + int? value1 = _parser.GetIntValue("test1"); + int? value2 = _parser.GetIntValue("test2"); + int? value3 = _parser.GetIntValue("test3", 100); + int? value4 = _parser.GetIntValue("test4"); + + // Assert + Check.That(value1).IsEqualTo(42); + Check.That(value2).IsEqualTo(55); + Check.That(value3).IsEqualTo(100); + Check.That(value4).IsNull(); + } + } +} \ No newline at end of file diff --git a/test/WireMock.Net.Tests/Util/FileHelperTests.cs b/test/WireMock.Net.Tests/Util/FileHelperTests.cs index c5837a7c..5b3672b5 100644 --- a/test/WireMock.Net.Tests/Util/FileHelperTests.cs +++ b/test/WireMock.Net.Tests/Util/FileHelperTests.cs @@ -14,31 +14,31 @@ namespace WireMock.Net.Tests.Util public void FileHelper_ReadAllTextWithRetryAndDelay() { // Assign - var _staticMappingHandlerMock = new Mock(); - _staticMappingHandlerMock.Setup(m => m.ReadMappingFile(It.IsAny())).Returns("text"); + var staticMappingHandlerMock = new Mock(); + staticMappingHandlerMock.Setup(m => m.ReadMappingFile(It.IsAny())).Returns("text"); // Act - string result = FileHelper.ReadAllTextWithRetryAndDelay(_staticMappingHandlerMock.Object, @"c:\temp"); + string result = FileHelper.ReadAllTextWithRetryAndDelay(staticMappingHandlerMock.Object, @"c:\temp"); // Assert Check.That(result).Equals("text"); // Verify - _staticMappingHandlerMock.Verify(m => m.ReadMappingFile(@"c:\temp"), Times.Once); + staticMappingHandlerMock.Verify(m => m.ReadMappingFile(@"c:\temp"), Times.Once); } [Fact] public void FileHelper_ReadAllTextWithRetryAndDelay_Throws() { // Assign - var _staticMappingHandlerMock = new Mock(); - _staticMappingHandlerMock.Setup(m => m.ReadMappingFile(It.IsAny())).Throws(); + var staticMappingHandlerMock = new Mock(); + staticMappingHandlerMock.Setup(m => m.ReadMappingFile(It.IsAny())).Throws(); // Act - Check.ThatCode(() => FileHelper.ReadAllTextWithRetryAndDelay(_staticMappingHandlerMock.Object, @"c:\temp")).Throws(); + Check.ThatCode(() => FileHelper.ReadAllTextWithRetryAndDelay(staticMappingHandlerMock.Object, @"c:\temp")).Throws(); // Verify - _staticMappingHandlerMock.Verify(m => m.ReadMappingFile(@"c:\temp"), Times.Exactly(3)); + staticMappingHandlerMock.Verify(m => m.ReadMappingFile(@"c:\temp"), Times.Exactly(3)); } } } diff --git a/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj b/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj index 1796e0f6..30d832e5 100644 --- a/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj +++ b/test/WireMock.Net.Tests/WireMock.Net.Tests.csproj @@ -13,6 +13,10 @@ true + + + +