mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-01 12:07:44 +01:00
Compare commits
19 Commits
1.0.4.18
...
CommandLin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43177d45c3 | ||
|
|
c89b3886dd | ||
|
|
65734e9c3d | ||
|
|
1ca7d8abb2 | ||
|
|
bcb03a5a9b | ||
|
|
c1c45801b5 | ||
|
|
18af7a41d4 | ||
|
|
ac2ecd112f | ||
|
|
3df4161329 | ||
|
|
34be065467 | ||
|
|
ee7f939e34 | ||
|
|
3f7ccfe4e3 | ||
|
|
dffeb95116 | ||
|
|
d506df9645 | ||
|
|
2f91f85fa8 | ||
|
|
9ff19b0737 | ||
|
|
54235fb699 | ||
|
|
a43a8154b1 | ||
|
|
b6c0aeceea |
14
.sonarlint/WireMock.Net Solution.slconfig
Normal file
14
.sonarlint/WireMock.Net Solution.slconfig
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"ServerUri": "https://sonarcloud.io",
|
||||||
|
"Organization": {
|
||||||
|
"Key": "stefh-github",
|
||||||
|
"Name": "Stef Heyenrath (Organization)"
|
||||||
|
},
|
||||||
|
"ProjectKey": "wiremock",
|
||||||
|
"Profiles": {
|
||||||
|
"CSharp": {
|
||||||
|
"ProfileKey": "AWRupN8iowGp6EI3lYmF",
|
||||||
|
"ProfileTimestamp": "2018-09-06T11:06:47+02:00"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
362
.sonarlint/wiremockCSharp.ruleset
Normal file
362
.sonarlint/wiremockCSharp.ruleset
Normal file
@@ -0,0 +1,362 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RuleSet Name="SonarQube - wiremock Sonar way" Description="This rule set was automatically generated from SonarQube.
https://sonarcloud.io/profiles/show?key=AWRupN8iowGp6EI3lYmF" ToolsVersion="15.0">
|
||||||
|
<Rules AnalyzerId="SonarAnalyzer.CSharp" RuleNamespace="SonarAnalyzer.CSharp">
|
||||||
|
<Rule Id="S100" Action="None" />
|
||||||
|
<Rule Id="S1006" Action="Warning" />
|
||||||
|
<Rule Id="S101" Action="Warning" />
|
||||||
|
<Rule Id="S103" Action="None" />
|
||||||
|
<Rule Id="S104" Action="None" />
|
||||||
|
<Rule Id="S1048" Action="Warning" />
|
||||||
|
<Rule Id="S105" Action="None" />
|
||||||
|
<Rule Id="S106" Action="None" />
|
||||||
|
<Rule Id="S1066" Action="Warning" />
|
||||||
|
<Rule Id="S1067" Action="None" />
|
||||||
|
<Rule Id="S107" Action="Warning" />
|
||||||
|
<Rule Id="S1075" Action="Warning" />
|
||||||
|
<Rule Id="S108" Action="Warning" />
|
||||||
|
<Rule Id="S109" Action="None" />
|
||||||
|
<Rule Id="S110" Action="Warning" />
|
||||||
|
<Rule Id="S1104" Action="Warning" />
|
||||||
|
<Rule Id="S1109" Action="None" />
|
||||||
|
<Rule Id="S1110" Action="Warning" />
|
||||||
|
<Rule Id="S1116" Action="Warning" />
|
||||||
|
<Rule Id="S1117" Action="Warning" />
|
||||||
|
<Rule Id="S1118" Action="Warning" />
|
||||||
|
<Rule Id="S112" Action="Warning" />
|
||||||
|
<Rule Id="S1121" Action="Warning" />
|
||||||
|
<Rule Id="S1123" Action="Warning" />
|
||||||
|
<Rule Id="S1125" Action="Warning" />
|
||||||
|
<Rule Id="S113" Action="None" />
|
||||||
|
<Rule Id="S1134" Action="Warning" />
|
||||||
|
<Rule Id="S1135" Action="Warning" />
|
||||||
|
<Rule Id="S1144" Action="Warning" />
|
||||||
|
<Rule Id="S1145" Action="None" />
|
||||||
|
<Rule Id="S1147" Action="None" />
|
||||||
|
<Rule Id="S1151" Action="None" />
|
||||||
|
<Rule Id="S1155" Action="Warning" />
|
||||||
|
<Rule Id="S1163" Action="Warning" />
|
||||||
|
<Rule Id="S1168" Action="Warning" />
|
||||||
|
<Rule Id="S1172" Action="Warning" />
|
||||||
|
<Rule Id="S1185" Action="Warning" />
|
||||||
|
<Rule Id="S1186" Action="Warning" />
|
||||||
|
<Rule Id="S1192" Action="None" />
|
||||||
|
<Rule Id="S1200" Action="None" />
|
||||||
|
<Rule Id="S1206" Action="Warning" />
|
||||||
|
<Rule Id="S121" Action="None" />
|
||||||
|
<Rule Id="S1210" Action="Warning" />
|
||||||
|
<Rule Id="S1215" Action="Warning" />
|
||||||
|
<Rule Id="S122" Action="None" />
|
||||||
|
<Rule Id="S1226" Action="None" />
|
||||||
|
<Rule Id="S1227" Action="None" />
|
||||||
|
<Rule Id="S1244" Action="None" />
|
||||||
|
<Rule Id="S125" Action="Warning" />
|
||||||
|
<Rule Id="S126" Action="None" />
|
||||||
|
<Rule Id="S1264" Action="Warning" />
|
||||||
|
<Rule Id="S127" Action="None" />
|
||||||
|
<Rule Id="S1301" Action="None" />
|
||||||
|
<Rule Id="S1309" Action="None" />
|
||||||
|
<Rule Id="S131" Action="None" />
|
||||||
|
<Rule Id="S1313" Action="None" />
|
||||||
|
<Rule Id="S134" Action="None" />
|
||||||
|
<Rule Id="S138" Action="None" />
|
||||||
|
<Rule Id="S1449" Action="None" />
|
||||||
|
<Rule Id="S1450" Action="Warning" />
|
||||||
|
<Rule Id="S1451" Action="None" />
|
||||||
|
<Rule Id="S1479" Action="Warning" />
|
||||||
|
<Rule Id="S1481" Action="Warning" />
|
||||||
|
<Rule Id="S1541" Action="None" />
|
||||||
|
<Rule Id="S1607" Action="Warning" />
|
||||||
|
<Rule Id="S1643" Action="Warning" />
|
||||||
|
<Rule Id="S1656" Action="Warning" />
|
||||||
|
<Rule Id="S1659" Action="None" />
|
||||||
|
<Rule Id="S1694" Action="None" />
|
||||||
|
<Rule Id="S1696" Action="None" />
|
||||||
|
<Rule Id="S1697" Action="None" />
|
||||||
|
<Rule Id="S1698" Action="None" />
|
||||||
|
<Rule Id="S1699" Action="Warning" />
|
||||||
|
<Rule Id="S1751" Action="Warning" />
|
||||||
|
<Rule Id="S1764" Action="Warning" />
|
||||||
|
<Rule Id="S1821" Action="None" />
|
||||||
|
<Rule Id="S1848" Action="Warning" />
|
||||||
|
<Rule Id="S1854" Action="Warning" />
|
||||||
|
<Rule Id="S1858" Action="None" />
|
||||||
|
<Rule Id="S1862" Action="Warning" />
|
||||||
|
<Rule Id="S1871" Action="Warning" />
|
||||||
|
<Rule Id="S1905" Action="Warning" />
|
||||||
|
<Rule Id="S1939" Action="Warning" />
|
||||||
|
<Rule Id="S1940" Action="Warning" />
|
||||||
|
<Rule Id="S1944" Action="Warning" />
|
||||||
|
<Rule Id="S1994" Action="None" />
|
||||||
|
<Rule Id="S2068" Action="Warning" />
|
||||||
|
<Rule Id="S2070" Action="None" />
|
||||||
|
<Rule Id="S2092" Action="None" />
|
||||||
|
<Rule Id="S2114" Action="Warning" />
|
||||||
|
<Rule Id="S2123" Action="Warning" />
|
||||||
|
<Rule Id="S2148" Action="None" />
|
||||||
|
<Rule Id="S2156" Action="None" />
|
||||||
|
<Rule Id="S2178" Action="Warning" />
|
||||||
|
<Rule Id="S2183" Action="Warning" />
|
||||||
|
<Rule Id="S2184" Action="Warning" />
|
||||||
|
<Rule Id="S2187" Action="Warning" />
|
||||||
|
<Rule Id="S2190" Action="Warning" />
|
||||||
|
<Rule Id="S2197" Action="None" />
|
||||||
|
<Rule Id="S2201" Action="Warning" />
|
||||||
|
<Rule Id="S2219" Action="Warning" />
|
||||||
|
<Rule Id="S2221" Action="None" />
|
||||||
|
<Rule Id="S2223" Action="Warning" />
|
||||||
|
<Rule Id="S2225" Action="Warning" />
|
||||||
|
<Rule Id="S2228" Action="None" />
|
||||||
|
<Rule Id="S2234" Action="Warning" />
|
||||||
|
<Rule Id="S2245" Action="Warning" />
|
||||||
|
<Rule Id="S2255" Action="Warning" />
|
||||||
|
<Rule Id="S2259" Action="Warning" />
|
||||||
|
<Rule Id="S2275" Action="Warning" />
|
||||||
|
<Rule Id="S2278" Action="Warning" />
|
||||||
|
<Rule Id="S2290" Action="Warning" />
|
||||||
|
<Rule Id="S2291" Action="Warning" />
|
||||||
|
<Rule Id="S2292" Action="Warning" />
|
||||||
|
<Rule Id="S2302" Action="None" />
|
||||||
|
<Rule Id="S2306" Action="Warning" />
|
||||||
|
<Rule Id="S2325" Action="None" />
|
||||||
|
<Rule Id="S2326" Action="Warning" />
|
||||||
|
<Rule Id="S2327" Action="Warning" />
|
||||||
|
<Rule Id="S2328" Action="Warning" />
|
||||||
|
<Rule Id="S2330" Action="None" />
|
||||||
|
<Rule Id="S2333" Action="None" />
|
||||||
|
<Rule Id="S2339" Action="None" />
|
||||||
|
<Rule Id="S2342" Action="Warning" />
|
||||||
|
<Rule Id="S2344" Action="Warning" />
|
||||||
|
<Rule Id="S2345" Action="Warning" />
|
||||||
|
<Rule Id="S2346" Action="Warning" />
|
||||||
|
<Rule Id="S2357" Action="None" />
|
||||||
|
<Rule Id="S2360" Action="None" />
|
||||||
|
<Rule Id="S2365" Action="Warning" />
|
||||||
|
<Rule Id="S2368" Action="Warning" />
|
||||||
|
<Rule Id="S2372" Action="Warning" />
|
||||||
|
<Rule Id="S2376" Action="Warning" />
|
||||||
|
<Rule Id="S2386" Action="Warning" />
|
||||||
|
<Rule Id="S2387" Action="None" />
|
||||||
|
<Rule Id="S2436" Action="Warning" />
|
||||||
|
<Rule Id="S2437" Action="Warning" />
|
||||||
|
<Rule Id="S2486" Action="Warning" />
|
||||||
|
<Rule Id="S2551" Action="Warning" />
|
||||||
|
<Rule Id="S2583" Action="Warning" />
|
||||||
|
<Rule Id="S2589" Action="Warning" />
|
||||||
|
<Rule Id="S2674" Action="None" />
|
||||||
|
<Rule Id="S2681" Action="Warning" />
|
||||||
|
<Rule Id="S2688" Action="Warning" />
|
||||||
|
<Rule Id="S2692" Action="Warning" />
|
||||||
|
<Rule Id="S2696" Action="Warning" />
|
||||||
|
<Rule Id="S2699" Action="None" />
|
||||||
|
<Rule Id="S2701" Action="None" />
|
||||||
|
<Rule Id="S2737" Action="Warning" />
|
||||||
|
<Rule Id="S2743" Action="Warning" />
|
||||||
|
<Rule Id="S2757" Action="Warning" />
|
||||||
|
<Rule Id="S2758" Action="Warning" />
|
||||||
|
<Rule Id="S2760" Action="None" />
|
||||||
|
<Rule Id="S2761" Action="Warning" />
|
||||||
|
<Rule Id="S2930" Action="Warning" />
|
||||||
|
<Rule Id="S2931" Action="None" />
|
||||||
|
<Rule Id="S2933" Action="Warning" />
|
||||||
|
<Rule Id="S2934" Action="Warning" />
|
||||||
|
<Rule Id="S2952" Action="None" />
|
||||||
|
<Rule Id="S2953" Action="Warning" />
|
||||||
|
<Rule Id="S2955" Action="None" />
|
||||||
|
<Rule Id="S2971" Action="Warning" />
|
||||||
|
<Rule Id="S2995" Action="Warning" />
|
||||||
|
<Rule Id="S2996" Action="Warning" />
|
||||||
|
<Rule Id="S2997" Action="Warning" />
|
||||||
|
<Rule Id="S3005" Action="Warning" />
|
||||||
|
<Rule Id="S3010" Action="Warning" />
|
||||||
|
<Rule Id="S3052" Action="None" />
|
||||||
|
<Rule Id="S3060" Action="Warning" />
|
||||||
|
<Rule Id="S3168" Action="Warning" />
|
||||||
|
<Rule Id="S3169" Action="Warning" />
|
||||||
|
<Rule Id="S3172" Action="Warning" />
|
||||||
|
<Rule Id="S3215" Action="None" />
|
||||||
|
<Rule Id="S3216" Action="None" />
|
||||||
|
<Rule Id="S3217" Action="Warning" />
|
||||||
|
<Rule Id="S3218" Action="Warning" />
|
||||||
|
<Rule Id="S3220" Action="Warning" />
|
||||||
|
<Rule Id="S3234" Action="None" />
|
||||||
|
<Rule Id="S3235" Action="None" />
|
||||||
|
<Rule Id="S3236" Action="Warning" />
|
||||||
|
<Rule Id="S3237" Action="Warning" />
|
||||||
|
<Rule Id="S3240" Action="None" />
|
||||||
|
<Rule Id="S3241" Action="Warning" />
|
||||||
|
<Rule Id="S3242" Action="None" />
|
||||||
|
<Rule Id="S3244" Action="Warning" />
|
||||||
|
<Rule Id="S3246" Action="Warning" />
|
||||||
|
<Rule Id="S3247" Action="Warning" />
|
||||||
|
<Rule Id="S3249" Action="Warning" />
|
||||||
|
<Rule Id="S3251" Action="Warning" />
|
||||||
|
<Rule Id="S3253" Action="None" />
|
||||||
|
<Rule Id="S3254" Action="None" />
|
||||||
|
<Rule Id="S3256" Action="Warning" />
|
||||||
|
<Rule Id="S3257" Action="None" />
|
||||||
|
<Rule Id="S3261" Action="Warning" />
|
||||||
|
<Rule Id="S3262" Action="Warning" />
|
||||||
|
<Rule Id="S3263" Action="Warning" />
|
||||||
|
<Rule Id="S3264" Action="Warning" />
|
||||||
|
<Rule Id="S3265" Action="Warning" />
|
||||||
|
<Rule Id="S3330" Action="None" />
|
||||||
|
<Rule Id="S3343" Action="Warning" />
|
||||||
|
<Rule Id="S3346" Action="Warning" />
|
||||||
|
<Rule Id="S3353" Action="None" />
|
||||||
|
<Rule Id="S3358" Action="Warning" />
|
||||||
|
<Rule Id="S3366" Action="None" />
|
||||||
|
<Rule Id="S3376" Action="Warning" />
|
||||||
|
<Rule Id="S3397" Action="Warning" />
|
||||||
|
<Rule Id="S3400" Action="Warning" />
|
||||||
|
<Rule Id="S3415" Action="Warning" />
|
||||||
|
<Rule Id="S3427" Action="Warning" />
|
||||||
|
<Rule Id="S3431" Action="None" />
|
||||||
|
<Rule Id="S3433" Action="Warning" />
|
||||||
|
<Rule Id="S3440" Action="Warning" />
|
||||||
|
<Rule Id="S3441" Action="None" />
|
||||||
|
<Rule Id="S3442" Action="Warning" />
|
||||||
|
<Rule Id="S3443" Action="Warning" />
|
||||||
|
<Rule Id="S3444" Action="Warning" />
|
||||||
|
<Rule Id="S3445" Action="Warning" />
|
||||||
|
<Rule Id="S3447" Action="Warning" />
|
||||||
|
<Rule Id="S3449" Action="Warning" />
|
||||||
|
<Rule Id="S3450" Action="Warning" />
|
||||||
|
<Rule Id="S3451" Action="Warning" />
|
||||||
|
<Rule Id="S3453" Action="Warning" />
|
||||||
|
<Rule Id="S3456" Action="Warning" />
|
||||||
|
<Rule Id="S3457" Action="Warning" />
|
||||||
|
<Rule Id="S3458" Action="Warning" />
|
||||||
|
<Rule Id="S3459" Action="Warning" />
|
||||||
|
<Rule Id="S3464" Action="Warning" />
|
||||||
|
<Rule Id="S3466" Action="Warning" />
|
||||||
|
<Rule Id="S3532" Action="None" />
|
||||||
|
<Rule Id="S3597" Action="Warning" />
|
||||||
|
<Rule Id="S3598" Action="Warning" />
|
||||||
|
<Rule Id="S3600" Action="Warning" />
|
||||||
|
<Rule Id="S3603" Action="Warning" />
|
||||||
|
<Rule Id="S3604" Action="Warning" />
|
||||||
|
<Rule Id="S3610" Action="Warning" />
|
||||||
|
<Rule Id="S3626" Action="Warning" />
|
||||||
|
<Rule Id="S3655" Action="Warning" />
|
||||||
|
<Rule Id="S3693" Action="Warning" />
|
||||||
|
<Rule Id="S3717" Action="None" />
|
||||||
|
<Rule Id="S3776" Action="Warning" />
|
||||||
|
<Rule Id="S3869" Action="Warning" />
|
||||||
|
<Rule Id="S3871" Action="Warning" />
|
||||||
|
<Rule Id="S3872" Action="None" />
|
||||||
|
<Rule Id="S3874" Action="None" />
|
||||||
|
<Rule Id="S3875" Action="Warning" />
|
||||||
|
<Rule Id="S3876" Action="None" />
|
||||||
|
<Rule Id="S3877" Action="Warning" />
|
||||||
|
<Rule Id="S3880" Action="None" />
|
||||||
|
<Rule Id="S3881" Action="Warning" />
|
||||||
|
<Rule Id="S3884" Action="Warning" />
|
||||||
|
<Rule Id="S3885" Action="Warning" />
|
||||||
|
<Rule Id="S3887" Action="Warning" />
|
||||||
|
<Rule Id="S3889" Action="Warning" />
|
||||||
|
<Rule Id="S3897" Action="Warning" />
|
||||||
|
<Rule Id="S3898" Action="None" />
|
||||||
|
<Rule Id="S3900" Action="None" />
|
||||||
|
<Rule Id="S3902" Action="None" />
|
||||||
|
<Rule Id="S3903" Action="Warning" />
|
||||||
|
<Rule Id="S3904" Action="Warning" />
|
||||||
|
<Rule Id="S3906" Action="None" />
|
||||||
|
<Rule Id="S3908" Action="None" />
|
||||||
|
<Rule Id="S3909" Action="None" />
|
||||||
|
<Rule Id="S3923" Action="Warning" />
|
||||||
|
<Rule Id="S3925" Action="Warning" />
|
||||||
|
<Rule Id="S3926" Action="Warning" />
|
||||||
|
<Rule Id="S3927" Action="Warning" />
|
||||||
|
<Rule Id="S3928" Action="Warning" />
|
||||||
|
<Rule Id="S3937" Action="None" />
|
||||||
|
<Rule Id="S3956" Action="None" />
|
||||||
|
<Rule Id="S3962" Action="None" />
|
||||||
|
<Rule Id="S3963" Action="Warning" />
|
||||||
|
<Rule Id="S3966" Action="Warning" />
|
||||||
|
<Rule Id="S3967" Action="None" />
|
||||||
|
<Rule Id="S3971" Action="Warning" />
|
||||||
|
<Rule Id="S3972" Action="Warning" />
|
||||||
|
<Rule Id="S3973" Action="Warning" />
|
||||||
|
<Rule Id="S3981" Action="Warning" />
|
||||||
|
<Rule Id="S3984" Action="Warning" />
|
||||||
|
<Rule Id="S3990" Action="None" />
|
||||||
|
<Rule Id="S3992" Action="None" />
|
||||||
|
<Rule Id="S3993" Action="None" />
|
||||||
|
<Rule Id="S3994" Action="None" />
|
||||||
|
<Rule Id="S3995" Action="None" />
|
||||||
|
<Rule Id="S3996" Action="None" />
|
||||||
|
<Rule Id="S3997" Action="None" />
|
||||||
|
<Rule Id="S3998" Action="Warning" />
|
||||||
|
<Rule Id="S4000" Action="None" />
|
||||||
|
<Rule Id="S4002" Action="None" />
|
||||||
|
<Rule Id="S4004" Action="None" />
|
||||||
|
<Rule Id="S4005" Action="None" />
|
||||||
|
<Rule Id="S4015" Action="Warning" />
|
||||||
|
<Rule Id="S4016" Action="Warning" />
|
||||||
|
<Rule Id="S4017" Action="None" />
|
||||||
|
<Rule Id="S4018" Action="None" />
|
||||||
|
<Rule Id="S4019" Action="Warning" />
|
||||||
|
<Rule Id="S4022" Action="None" />
|
||||||
|
<Rule Id="S4023" Action="None" />
|
||||||
|
<Rule Id="S4025" Action="None" />
|
||||||
|
<Rule Id="S4026" Action="None" />
|
||||||
|
<Rule Id="S4027" Action="None" />
|
||||||
|
<Rule Id="S4035" Action="Warning" />
|
||||||
|
<Rule Id="S4039" Action="None" />
|
||||||
|
<Rule Id="S4040" Action="None" />
|
||||||
|
<Rule Id="S4041" Action="None" />
|
||||||
|
<Rule Id="S4047" Action="None" />
|
||||||
|
<Rule Id="S4049" Action="None" />
|
||||||
|
<Rule Id="S4050" Action="None" />
|
||||||
|
<Rule Id="S4052" Action="None" />
|
||||||
|
<Rule Id="S4055" Action="None" />
|
||||||
|
<Rule Id="S4056" Action="None" />
|
||||||
|
<Rule Id="S4057" Action="None" />
|
||||||
|
<Rule Id="S4058" Action="None" />
|
||||||
|
<Rule Id="S4059" Action="None" />
|
||||||
|
<Rule Id="S4060" Action="None" />
|
||||||
|
<Rule Id="S4061" Action="Warning" />
|
||||||
|
<Rule Id="S4069" Action="None" />
|
||||||
|
<Rule Id="S4070" Action="None" />
|
||||||
|
<Rule Id="S4142" Action="None" />
|
||||||
|
<Rule Id="S4143" Action="Warning" />
|
||||||
|
<Rule Id="S4144" Action="Warning" />
|
||||||
|
<Rule Id="S4158" Action="Warning" />
|
||||||
|
<Rule Id="S4159" Action="Warning" />
|
||||||
|
<Rule Id="S4200" Action="Warning" />
|
||||||
|
<Rule Id="S4210" Action="Warning" />
|
||||||
|
<Rule Id="S4211" Action="Warning" />
|
||||||
|
<Rule Id="S4212" Action="None" />
|
||||||
|
<Rule Id="S4214" Action="Warning" />
|
||||||
|
<Rule Id="S4220" Action="Warning" />
|
||||||
|
<Rule Id="S4225" Action="None" />
|
||||||
|
<Rule Id="S4226" Action="None" />
|
||||||
|
<Rule Id="S4260" Action="Warning" />
|
||||||
|
<Rule Id="S4261" Action="None" />
|
||||||
|
<Rule Id="S4275" Action="Warning" />
|
||||||
|
<Rule Id="S4277" Action="Warning" />
|
||||||
|
<Rule Id="S4426" Action="Warning" />
|
||||||
|
<Rule Id="S4428" Action="Warning" />
|
||||||
|
<Rule Id="S4432" Action="None" />
|
||||||
|
<Rule Id="S4433" Action="Warning" />
|
||||||
|
<Rule Id="S4456" Action="Warning" />
|
||||||
|
<Rule Id="S4457" Action="Warning" />
|
||||||
|
<Rule Id="S4462" Action="None" />
|
||||||
|
<Rule Id="S4524" Action="Warning" />
|
||||||
|
<Rule Id="S4564" Action="None" />
|
||||||
|
<Rule Id="S4581" Action="Warning" />
|
||||||
|
<Rule Id="S4586" Action="Warning" />
|
||||||
|
<Rule Id="S818" Action="Warning" />
|
||||||
|
<Rule Id="S881" Action="None" />
|
||||||
|
<Rule Id="S907" Action="Warning" />
|
||||||
|
<Rule Id="S927" Action="Warning" />
|
||||||
|
</Rules>
|
||||||
|
<Rules AnalyzerId="SonarAnalyzer.Security" RuleNamespace="SonarAnalyzer.Security">
|
||||||
|
<Rule Id="S2076" Action="Warning" />
|
||||||
|
<Rule Id="S2078" Action="Warning" />
|
||||||
|
<Rule Id="S2083" Action="Warning" />
|
||||||
|
<Rule Id="S2091" Action="Warning" />
|
||||||
|
<Rule Id="S2631" Action="Warning" />
|
||||||
|
<Rule Id="S3649" Action="Warning" />
|
||||||
|
</Rules>
|
||||||
|
</RuleSet>
|
||||||
196
CHANGELOG.md
196
CHANGELOG.md
@@ -1,3 +1,19 @@
|
|||||||
|
# 1.0.4.21 (09 November 2018)
|
||||||
|
- [#221](https://github.com/WireMock-Net/WireMock.Net/pull/221) - Update dependencies [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
|
- [#229](https://github.com/WireMock-Net/WireMock.Net/pull/229) - Fix proxy tests [test] contributed by [StefH](https://github.com/StefH)
|
||||||
|
- [#230](https://github.com/WireMock-Net/WireMock.Net/pull/230) - Add HandleBars Random functionality (#219) [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
|
- [#219](https://github.com/WireMock-Net/WireMock.Net/issues/219) - Feature: random value helper [feature]
|
||||||
|
|
||||||
|
# 1.0.4.20 (07 November 2018)
|
||||||
|
- [#222](https://github.com/WireMock-Net/WireMock.Net/pull/222) - Codecov contributed by [StefH](https://github.com/StefH)
|
||||||
|
- [#224](https://github.com/WireMock-Net/WireMock.Net/pull/224) - Fixed issue 223: Example for WireMock as Windows Service throws Exception because of WireMockConsoleLogger contributed by [paulssn](https://github.com/paulssn)
|
||||||
|
- [#228](https://github.com/WireMock-Net/WireMock.Net/pull/228) - Fixed logic for IsRestrictedResponseHeader [bug] contributed by [StefH](https://github.com/StefH)
|
||||||
|
- [#223](https://github.com/WireMock-Net/WireMock.Net/issues/223) - Bug: Example for WireMock as Windows Service throws Exception because of WireMockConsoleLogger [bug]
|
||||||
|
- [#227](https://github.com/WireMock-Net/WireMock.Net/issues/227) - Question: proxy passthrough when no match? [question]
|
||||||
|
|
||||||
|
# 1.0.4.19 (31 October 2018)
|
||||||
|
- [#220](https://github.com/WireMock-Net/WireMock.Net/pull/220) - Update SimpleCommandLineParser to handle arguments with key and value contributed by [StefH](https://github.com/StefH)
|
||||||
|
|
||||||
# 1.0.4.18 (27 October 2018)
|
# 1.0.4.18 (27 October 2018)
|
||||||
- [#207](https://github.com/WireMock-Net/WireMock.Net/pull/207) - Rewrite some unit-integration-tests to unit-tests (#206) contributed by [StefH](https://github.com/StefH)
|
- [#207](https://github.com/WireMock-Net/WireMock.Net/pull/207) - Rewrite some unit-integration-tests to unit-tests (#206) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#208](https://github.com/WireMock-Net/WireMock.Net/pull/208) - Refactor contributed by [StefH](https://github.com/StefH)
|
- [#208](https://github.com/WireMock-Net/WireMock.Net/pull/208) - Refactor contributed by [StefH](https://github.com/StefH)
|
||||||
@@ -6,8 +22,8 @@
|
|||||||
- [#216](https://github.com/WireMock-Net/WireMock.Net/pull/216) - ResponseBodyData contributed by [StefH](https://github.com/StefH)
|
- [#216](https://github.com/WireMock-Net/WireMock.Net/pull/216) - ResponseBodyData contributed by [StefH](https://github.com/StefH)
|
||||||
- [#217](https://github.com/WireMock-Net/WireMock.Net/pull/217) - Enable Source Link contributed by [kashifsoofi](https://github.com/kashifsoofi)
|
- [#217](https://github.com/WireMock-Net/WireMock.Net/pull/217) - Enable Source Link contributed by [kashifsoofi](https://github.com/kashifsoofi)
|
||||||
- [#218](https://github.com/WireMock-Net/WireMock.Net/pull/218) - remove appveyor contributed by [StefH](https://github.com/StefH)
|
- [#218](https://github.com/WireMock-Net/WireMock.Net/pull/218) - remove appveyor contributed by [StefH](https://github.com/StefH)
|
||||||
- [#107](https://github.com/WireMock-Net/WireMock.Net/issues/107) - Feature: increase code coverage
|
- [#107](https://github.com/WireMock-Net/WireMock.Net/issues/107) - Feature: increase code coverage [feature]
|
||||||
- [#161](https://github.com/WireMock-Net/WireMock.Net/issues/161) - Feature: Implement SourceLink
|
- [#161](https://github.com/WireMock-Net/WireMock.Net/issues/161) - Feature: Implement SourceLink [feature]
|
||||||
- [#179](https://github.com/WireMock-Net/WireMock.Net/issues/179) - BodyAsFile .json files interferes with WatchStaticMappings
|
- [#179](https://github.com/WireMock-Net/WireMock.Net/issues/179) - BodyAsFile .json files interferes with WatchStaticMappings
|
||||||
- [#194](https://github.com/WireMock-Net/WireMock.Net/issues/194) - Could not load file or assembly 'netstandard, Version=2.0.0.0 On Build Server
|
- [#194](https://github.com/WireMock-Net/WireMock.Net/issues/194) - Could not load file or assembly 'netstandard, Version=2.0.0.0 On Build Server
|
||||||
- [#206](https://github.com/WireMock-Net/WireMock.Net/issues/206) - Rewrite some unit-integration-tests to unit-tests
|
- [#206](https://github.com/WireMock-Net/WireMock.Net/issues/206) - Rewrite some unit-integration-tests to unit-tests
|
||||||
@@ -18,10 +34,10 @@
|
|||||||
|
|
||||||
# 1.0.4.17 (22 September 2018)
|
# 1.0.4.17 (22 September 2018)
|
||||||
- [#203](https://github.com/WireMock-Net/WireMock.Net/pull/203) - Set up CI with Azure Pipelines contributed by [azure-pipelines[bot]](https://github.com/apps/azure-pipelines)
|
- [#203](https://github.com/WireMock-Net/WireMock.Net/pull/203) - Set up CI with Azure Pipelines contributed by [azure-pipelines[bot]](https://github.com/apps/azure-pipelines)
|
||||||
- [#204](https://github.com/WireMock-Net/WireMock.Net/pull/204) - Lower priority from Proxy mappings in favor of Admin Mappings contributed by [StefH](https://github.com/StefH)
|
- [#204](https://github.com/WireMock-Net/WireMock.Net/pull/204) - Lower priority from Proxy mappings in favor of Admin Mappings [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#115](https://github.com/WireMock-Net/WireMock.Net/issues/115) - Question : Do we have provision to read the Response data from a file?
|
- [#115](https://github.com/WireMock-Net/WireMock.Net/issues/115) - Question : Do we have provision to read the Response data from a file? [question]
|
||||||
- [#200](https://github.com/WireMock-Net/WireMock.Net/issues/200) - Issue: Incorrect port matching
|
- [#200](https://github.com/WireMock-Net/WireMock.Net/issues/200) - Issue: Incorrect port matching
|
||||||
- [#205](https://github.com/WireMock-Net/WireMock.Net/issues/205) - Issue: DELETE method is proxied as lowercase
|
- [#205](https://github.com/WireMock-Net/WireMock.Net/issues/205) - Issue: DELETE method is proxied as lowercase [bug]
|
||||||
|
|
||||||
# 1.0.4.16 (11 September 2018)
|
# 1.0.4.16 (11 September 2018)
|
||||||
- [#202](https://github.com/WireMock-Net/WireMock.Net/pull/202) - Update handlebars code to support Regex.Match (#201) contributed by [StefH](https://github.com/StefH)
|
- [#202](https://github.com/WireMock-Net/WireMock.Net/pull/202) - Update handlebars code to support Regex.Match (#201) contributed by [StefH](https://github.com/StefH)
|
||||||
@@ -29,16 +45,16 @@
|
|||||||
|
|
||||||
# 1.0.4.15 (04 September 2018)
|
# 1.0.4.15 (04 September 2018)
|
||||||
- [#199](https://github.com/WireMock-Net/WireMock.Net/pull/199) - Fix for .WithBody(Func<RequestMessage, string>...) contributed by [StefH](https://github.com/StefH)
|
- [#199](https://github.com/WireMock-Net/WireMock.Net/pull/199) - Fix for .WithBody(Func<RequestMessage, string>...) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#198](https://github.com/WireMock-Net/WireMock.Net/issues/198) - Issue : creating response using .WithBody(Func<RequestMessage, string>...) and .WithStatusCode
|
- [#198](https://github.com/WireMock-Net/WireMock.Net/issues/198) - Issue : creating response using .WithBody(Func<RequestMessage, string>...) and .WithStatusCode [bug]
|
||||||
|
|
||||||
# 1.0.4.14 (02 September 2018)
|
# 1.0.4.14 (02 September 2018)
|
||||||
- [#197](https://github.com/WireMock-Net/WireMock.Net/pull/197) - Set IsStarted = true in a IApplicationLifetime.ApplicationStarted listener contributed by [davide-romanini](https://github.com/davide-romanini)
|
- [#197](https://github.com/WireMock-Net/WireMock.Net/pull/197) - Set IsStarted = true in a IApplicationLifetime.ApplicationStarted listener [bug] contributed by [davide-romanini](https://github.com/davide-romanini)
|
||||||
- [#196](https://github.com/WireMock-Net/WireMock.Net/issues/196) - Issue: AspNetCoreSelfHost.IsStarted set before the server actually started for real
|
- [#196](https://github.com/WireMock-Net/WireMock.Net/issues/196) - Issue: AspNetCoreSelfHost.IsStarted set before the server actually started for real [bug]
|
||||||
|
|
||||||
# 1.0.4.13 (31 August 2018)
|
# 1.0.4.13 (31 August 2018)
|
||||||
- [#195](https://github.com/WireMock-Net/WireMock.Net/pull/195) - Add LinqMatcher contributed by [StefH](https://github.com/StefH)
|
- [#195](https://github.com/WireMock-Net/WireMock.Net/pull/195) - Add LinqMatcher contributed by [StefH](https://github.com/StefH)
|
||||||
- [#192](https://github.com/WireMock-Net/WireMock.Net/issues/192) - Cannot upgrade from 1.0.4.10 to 1.0.4.12 without upgrading to .net core 2.1
|
- [#192](https://github.com/WireMock-Net/WireMock.Net/issues/192) - Cannot upgrade from 1.0.4.10 to 1.0.4.12 without upgrading to .net core 2.1 [bug]
|
||||||
- [#193](https://github.com/WireMock-Net/WireMock.Net/issues/193) - Question: WireMock in Azure
|
- [#193](https://github.com/WireMock-Net/WireMock.Net/issues/193) - Question: WireMock in Azure [question]
|
||||||
|
|
||||||
# 1.0.4.12 (23 August 2018)
|
# 1.0.4.12 (23 August 2018)
|
||||||
- [#190](https://github.com/WireMock-Net/WireMock.Net/pull/190) - Fix ResponseMessageTransformer (#188) contributed by [StefH](https://github.com/StefH)
|
- [#190](https://github.com/WireMock-Net/WireMock.Net/pull/190) - Fix ResponseMessageTransformer (#188) contributed by [StefH](https://github.com/StefH)
|
||||||
@@ -48,7 +64,7 @@
|
|||||||
|
|
||||||
# 1.0.4.11 (20 August 2018)
|
# 1.0.4.11 (20 August 2018)
|
||||||
- [#183](https://github.com/WireMock-Net/WireMock.Net/pull/183) - Set Content-Type header for PutMappingAsync in the client contributed by [seanamosw](https://github.com/seanamosw)
|
- [#183](https://github.com/WireMock-Net/WireMock.Net/pull/183) - Set Content-Type header for PutMappingAsync in the client contributed by [seanamosw](https://github.com/seanamosw)
|
||||||
- [#185](https://github.com/WireMock-Net/WireMock.Net/pull/185) - Support Microsoft.AspNetCore for net 4.6.1 and up contributed by [StefH](https://github.com/StefH)
|
- [#185](https://github.com/WireMock-Net/WireMock.Net/pull/185) - Support Microsoft.AspNetCore for net 4.6.1 and up [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#186](https://github.com/WireMock-Net/WireMock.Net/pull/186) - ContentType "application/vnd.api+json" is not recognized as json contributed by [steveland83](https://github.com/steveland83)
|
- [#186](https://github.com/WireMock-Net/WireMock.Net/pull/186) - ContentType "application/vnd.api+json" is not recognized as json contributed by [steveland83](https://github.com/steveland83)
|
||||||
- [#182](https://github.com/WireMock-Net/WireMock.Net/issues/182) - Bug: IFluentMockServerAdmin::PutMappingAsync does not set Content-Type
|
- [#182](https://github.com/WireMock-Net/WireMock.Net/issues/182) - Bug: IFluentMockServerAdmin::PutMappingAsync does not set Content-Type
|
||||||
- [#184](https://github.com/WireMock-Net/WireMock.Net/issues/184) - Bug: Fix AppVeyor PR build process
|
- [#184](https://github.com/WireMock-Net/WireMock.Net/issues/184) - Bug: Fix AppVeyor PR build process
|
||||||
@@ -56,46 +72,46 @@
|
|||||||
|
|
||||||
# 1.0.4.10 (14 August 2018)
|
# 1.0.4.10 (14 August 2018)
|
||||||
- [#180](https://github.com/WireMock-Net/WireMock.Net/pull/180) - Add IFileSystemHandler to support Azure for StaticMapping location contributed by [StefH](https://github.com/StefH)
|
- [#180](https://github.com/WireMock-Net/WireMock.Net/pull/180) - Add IFileSystemHandler to support Azure for StaticMapping location contributed by [StefH](https://github.com/StefH)
|
||||||
- [#173](https://github.com/WireMock-Net/WireMock.Net/issues/173) - Feature: Mapping files lost when restarting an Azure app service
|
- [#173](https://github.com/WireMock-Net/WireMock.Net/issues/173) - Feature: Mapping files lost when restarting an Azure app service [feature]
|
||||||
|
|
||||||
# 1.0.4.9 (08 August 2018)
|
# 1.0.4.9 (08 August 2018)
|
||||||
- [#172](https://github.com/WireMock-Net/WireMock.Net/issues/172) - Question: Same/similar fluent interface for in process and admin client API
|
- [#172](https://github.com/WireMock-Net/WireMock.Net/issues/172) - Question: Same/similar fluent interface for in process and admin client API
|
||||||
- [#174](https://github.com/WireMock-Net/WireMock.Net/issues/174) - Bug: JsonMatcher and JsonPathMatcher throws when posting byte[]
|
- [#174](https://github.com/WireMock-Net/WireMock.Net/issues/174) - Bug: JsonMatcher and JsonPathMatcher throws when posting byte[] [bug]
|
||||||
- [#175](https://github.com/WireMock-Net/WireMock.Net/issues/175) - Bug: Don't allow adding a mapping with no URL or PATH
|
- [#175](https://github.com/WireMock-Net/WireMock.Net/issues/175) - Bug: Don't allow adding a mapping with no URL or PATH [bug]
|
||||||
- [#176](https://github.com/WireMock-Net/WireMock.Net/issues/176) - Question: Saving mapping with relative (not found) file fails
|
- [#176](https://github.com/WireMock-Net/WireMock.Net/issues/176) - Question: Saving mapping with relative (not found) file fails
|
||||||
- [#177](https://github.com/WireMock-Net/WireMock.Net/issues/177) - Feature: Skip invalid static mapping files
|
- [#177](https://github.com/WireMock-Net/WireMock.Net/issues/177) - Feature: Skip invalid static mapping files [feature]
|
||||||
|
|
||||||
# 1.0.4.8 (23 July 2018)
|
# 1.0.4.8 (23 July 2018)
|
||||||
- [#170](https://github.com/WireMock-Net/WireMock.Net/pull/170) - Support json path in the response contributed by [StefH](https://github.com/StefH)
|
- [#170](https://github.com/WireMock-Net/WireMock.Net/pull/170) - Support json path in the response contributed by [StefH](https://github.com/StefH)
|
||||||
- [#167](https://github.com/WireMock-Net/WireMock.Net/issues/167) - Feature: Support for JsonPath in the response (with HandleBars)
|
- [#167](https://github.com/WireMock-Net/WireMock.Net/issues/167) - Feature: Support for JsonPath in the response (with HandleBars) [feature]
|
||||||
|
|
||||||
# 1.0.4.7 (19 July 2018)
|
# 1.0.4.7 (19 July 2018)
|
||||||
- [#169](https://github.com/WireMock-Net/WireMock.Net/pull/169) - Fix for Restricted Response headers contributed by [StefH](https://github.com/StefH)
|
- [#169](https://github.com/WireMock-Net/WireMock.Net/pull/169) - Fix for Restricted Response headers [bug] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#148](https://github.com/WireMock-Net/WireMock.Net/issues/148) - Question: proxy passthrough when no match?
|
- [#148](https://github.com/WireMock-Net/WireMock.Net/issues/148) - Question: proxy passthrough when no match?
|
||||||
|
|
||||||
# 1.0.4.6 (18 July 2018)
|
# 1.0.4.6 (18 July 2018)
|
||||||
- [#168](https://github.com/WireMock-Net/WireMock.Net/pull/168) - Expose scenario states contributed by [StefH](https://github.com/StefH)
|
- [#168](https://github.com/WireMock-Net/WireMock.Net/pull/168) - Expose scenario states [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#163](https://github.com/WireMock-Net/WireMock.Net/issues/163) - Feature: Expose scenario states
|
- [#163](https://github.com/WireMock-Net/WireMock.Net/issues/163) - Feature: Expose scenario states
|
||||||
|
|
||||||
# 1.0.4.5 (17 July 2018)
|
# 1.0.4.5 (17 July 2018)
|
||||||
- [#164](https://github.com/WireMock-Net/WireMock.Net/pull/164) - Support running WireMock.Net as a sub-app in IIS contributed by [StefH](https://github.com/StefH)
|
- [#164](https://github.com/WireMock-Net/WireMock.Net/pull/164) - Support running WireMock.Net as a sub-app in IIS [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#165](https://github.com/WireMock-Net/WireMock.Net/pull/165) - Add SonarCloud contributed by [StefH](https://github.com/StefH)
|
- [#165](https://github.com/WireMock-Net/WireMock.Net/pull/165) - Add SonarCloud contributed by [StefH](https://github.com/StefH)
|
||||||
- [#166](https://github.com/WireMock-Net/WireMock.Net/pull/166) - Fix Sonar issues contributed by [StefH](https://github.com/StefH)
|
- [#166](https://github.com/WireMock-Net/WireMock.Net/pull/166) - Fix Sonar issues contributed by [StefH](https://github.com/StefH)
|
||||||
- [#105](https://github.com/WireMock-Net/WireMock.Net/issues/105) - Question: URL binding issues
|
- [#105](https://github.com/WireMock-Net/WireMock.Net/issues/105) - Question: URL binding issues [question]
|
||||||
- [#120](https://github.com/WireMock-Net/WireMock.Net/issues/120) - Question: JsonPathMatcher - not matching? Correct syntax?
|
- [#120](https://github.com/WireMock-Net/WireMock.Net/issues/120) - Question: JsonPathMatcher - not matching? Correct syntax?
|
||||||
- [#123](https://github.com/WireMock-Net/WireMock.Net/issues/123) - Fix for DateTime Header causing null value in ResponseBuilder
|
- [#123](https://github.com/WireMock-Net/WireMock.Net/issues/123) - Fix for DateTime Header causing null value in ResponseBuilder
|
||||||
- [#158](https://github.com/WireMock-Net/WireMock.Net/issues/158) - Feature: Support running WireMock.Net as a sub-app in IIS
|
- [#158](https://github.com/WireMock-Net/WireMock.Net/issues/158) - Feature: Support running WireMock.Net as a sub-app in IIS [question]
|
||||||
|
|
||||||
# 1.0.4.4 (01 July 2018)
|
# 1.0.4.4 (01 July 2018)
|
||||||
- [#156](https://github.com/WireMock-Net/WireMock.Net/issues/156) - Feature: when adding / updating a mapping : return more details
|
- [#156](https://github.com/WireMock-Net/WireMock.Net/issues/156) - Feature: when adding / updating a mapping : return more details
|
||||||
|
|
||||||
# 1.0.4.3 (30 June 2018)
|
# 1.0.4.3 (30 June 2018)
|
||||||
- [#159](https://github.com/WireMock-Net/WireMock.Net/issues/159) - Bug: IRequestBuilder.WithParam broken for key-only matching
|
- [#159](https://github.com/WireMock-Net/WireMock.Net/issues/159) - Bug: IRequestBuilder.WithParam broken for key-only matching [bug]
|
||||||
|
|
||||||
# 1.0.4.2 (26 June 2018)
|
# 1.0.4.2 (26 June 2018)
|
||||||
- [#157](https://github.com/WireMock-Net/WireMock.Net/pull/157) - Support for string and object in JsonMatcher. contributed by [StefH](https://github.com/StefH)
|
- [#157](https://github.com/WireMock-Net/WireMock.Net/pull/157) - Support for string and object in JsonMatcher. [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#150](https://github.com/WireMock-Net/WireMock.Net/issues/150) - Add support for .NET Core 2.1 (.NET Core 2.0 will reach end of life on september 2018)
|
- [#150](https://github.com/WireMock-Net/WireMock.Net/issues/150) - Add support for .NET Core 2.1 (.NET Core 2.0 will reach end of life on september 2018)
|
||||||
- [#154](https://github.com/WireMock-Net/WireMock.Net/issues/154) - Feature: support BodyAsJson for Request in static mapping files.
|
- [#154](https://github.com/WireMock-Net/WireMock.Net/issues/154) - Feature: support BodyAsJson for Request in static mapping files. [feature]
|
||||||
|
|
||||||
# 1.0.4.1 (25 June 2018)
|
# 1.0.4.1 (25 June 2018)
|
||||||
- [#153](https://github.com/WireMock-Net/WireMock.Net/issues/153) - Feature: Add JsonMatcher to support Json mapping
|
- [#153](https://github.com/WireMock-Net/WireMock.Net/issues/153) - Feature: Add JsonMatcher to support Json mapping
|
||||||
@@ -112,31 +128,31 @@
|
|||||||
|
|
||||||
# 1.0.3.19 (28 May 2018)
|
# 1.0.3.19 (28 May 2018)
|
||||||
- [#144](https://github.com/WireMock-Net/WireMock.Net/pull/144) - Fix ConcurrentDictionary (#129) contributed by [StefH](https://github.com/StefH)
|
- [#144](https://github.com/WireMock-Net/WireMock.Net/pull/144) - Fix ConcurrentDictionary (#129) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#145](https://github.com/WireMock-Net/WireMock.Net/pull/145) - Cancellation token not passed to server instance in .NET Core 2 contributed by [Bob11327](https://github.com/Bob11327)
|
- [#145](https://github.com/WireMock-Net/WireMock.Net/pull/145) - Cancellation token not passed to server instance in .NET Core 2 [bug] contributed by [Bob11327](https://github.com/Bob11327)
|
||||||
|
|
||||||
# 1.0.3.18 (25 May 2018)
|
# 1.0.3.18 (25 May 2018)
|
||||||
- [#142](https://github.com/WireMock-Net/WireMock.Net/pull/142) - Allow all headers to be set as Response headers contributed by [StefH](https://github.com/StefH)
|
- [#142](https://github.com/WireMock-Net/WireMock.Net/pull/142) - Allow all headers to be set as Response headers contributed by [StefH](https://github.com/StefH)
|
||||||
- [#97](https://github.com/WireMock-Net/WireMock.Net/issues/97) - Request matching logic is not practical
|
- [#97](https://github.com/WireMock-Net/WireMock.Net/issues/97) - Request matching logic is not practical [question]
|
||||||
- [#122](https://github.com/WireMock-Net/WireMock.Net/issues/122) - WireMock.Net not responding in unit tests - same works in console application
|
- [#122](https://github.com/WireMock-Net/WireMock.Net/issues/122) - WireMock.Net not responding in unit tests - same works in console application
|
||||||
- [#126](https://github.com/WireMock-Net/WireMock.Net/issues/126) - Question: UsingHead always returns 0 for Content-Length header even when explicitly specified
|
- [#126](https://github.com/WireMock-Net/WireMock.Net/issues/126) - Question: UsingHead always returns 0 for Content-Length header even when explicitly specified
|
||||||
- [#127](https://github.com/WireMock-Net/WireMock.Net/issues/127) - Question: Stub priority - Most recent stub is not always used
|
- [#127](https://github.com/WireMock-Net/WireMock.Net/issues/127) - Question: Stub priority - Most recent stub is not always used [question]
|
||||||
- [#132](https://github.com/WireMock-Net/WireMock.Net/issues/132) - LogEntries not being recorded on subsequent tests
|
- [#132](https://github.com/WireMock-Net/WireMock.Net/issues/132) - LogEntries not being recorded on subsequent tests
|
||||||
- [#136](https://github.com/WireMock-Net/WireMock.Net/issues/136) - Question: Does the WireMock send Content-Length response header
|
- [#136](https://github.com/WireMock-Net/WireMock.Net/issues/136) - Question: Does the WireMock send Content-Length response header
|
||||||
- [#137](https://github.com/WireMock-Net/WireMock.Net/issues/137) - Question: How to specify Transfer-Encoding response header?
|
- [#137](https://github.com/WireMock-Net/WireMock.Net/issues/137) - Question: How to specify Transfer-Encoding response header?
|
||||||
- [#139](https://github.com/WireMock-Net/WireMock.Net/issues/139) - Wiki link https://github.com/StefH/WireMock.Net/wiki/Record-(via-proxy)-and-Save is dead
|
- [#139](https://github.com/WireMock-Net/WireMock.Net/issues/139) - Wiki link https://github.com/StefH/WireMock.Net/wiki/Record-(via-proxy)-and-Save is dead
|
||||||
- [#140](https://github.com/WireMock-Net/WireMock.Net/issues/140) - Question: Why the Microsoft.Owin.Host.HttpListener is not referenced in the dll, which uses WireMock?
|
- [#140](https://github.com/WireMock-Net/WireMock.Net/issues/140) - Question: Why the Microsoft.Owin.Host.HttpListener is not referenced in the dll, which uses WireMock? [question]
|
||||||
|
|
||||||
# 1.0.3.17 (16 May 2018)
|
# 1.0.3.17 (16 May 2018)
|
||||||
- [#134](https://github.com/WireMock-Net/WireMock.Net/pull/134) - Stef negate matcher contributed by [alastairtree](https://github.com/alastairtree)
|
- [#134](https://github.com/WireMock-Net/WireMock.Net/pull/134) - Stef negate matcher contributed by [alastairtree](https://github.com/alastairtree)
|
||||||
- [#135](https://github.com/WireMock-Net/WireMock.Net/pull/135) - Merge into the stef_negate_matcher branch (solves issue #133) contributed by [StefH](https://github.com/StefH)
|
- [#135](https://github.com/WireMock-Net/WireMock.Net/pull/135) - Merge into the stef_negate_matcher branch (solves issue #133) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#138](https://github.com/WireMock-Net/WireMock.Net/pull/138) - Added Negate matcher logic contributed by [StefH](https://github.com/StefH)
|
- [#138](https://github.com/WireMock-Net/WireMock.Net/pull/138) - Added Negate matcher logic contributed by [StefH](https://github.com/StefH)
|
||||||
- [#103](https://github.com/WireMock-Net/WireMock.Net/issues/103) - Support for Faults
|
- [#103](https://github.com/WireMock-Net/WireMock.Net/issues/103) - Support for Faults [question]
|
||||||
- [#128](https://github.com/WireMock-Net/WireMock.Net/issues/128) - Feature: Negate a matcher
|
- [#128](https://github.com/WireMock-Net/WireMock.Net/issues/128) - Feature: Negate a matcher [feature, question]
|
||||||
- [#130](https://github.com/WireMock-Net/WireMock.Net/issues/130) - ...
|
- [#130](https://github.com/WireMock-Net/WireMock.Net/issues/130) - ...
|
||||||
- [#133](https://github.com/WireMock-Net/WireMock.Net/issues/133) - Issue: Wildcard matching a json body does not work?
|
- [#133](https://github.com/WireMock-Net/WireMock.Net/issues/133) - Issue: Wildcard matching a json body does not work? [bug, question]
|
||||||
|
|
||||||
# 1.0.3.16 (17 April 2018)
|
# 1.0.3.16 (17 April 2018)
|
||||||
- [#121](https://github.com/WireMock-Net/WireMock.Net/pull/121) - Fix for issue #118 contributed by [raghavendrabankapur](https://github.com/raghavendrabankapur)
|
- [#121](https://github.com/WireMock-Net/WireMock.Net/pull/121) - Fix for issue #118 [bug] contributed by [raghavendrabankapur](https://github.com/raghavendrabankapur)
|
||||||
- [#125](https://github.com/WireMock-Net/WireMock.Net/pull/125) - Change listen from loopback to any ip address for dotnetcore2.0 apps contributed by [SubjectiveReality](https://github.com/SubjectiveReality)
|
- [#125](https://github.com/WireMock-Net/WireMock.Net/pull/125) - Change listen from loopback to any ip address for dotnetcore2.0 apps contributed by [SubjectiveReality](https://github.com/SubjectiveReality)
|
||||||
- [#118](https://github.com/WireMock-Net/WireMock.Net/issues/118) - Not reading the response from a file when mappings are placed in json file
|
- [#118](https://github.com/WireMock-Net/WireMock.Net/issues/118) - Not reading the response from a file when mappings are placed in json file
|
||||||
- [#124](https://github.com/WireMock-Net/WireMock.Net/issues/124) - Issue: Unable to get host to listen on ips other than 127.0.0.1 using StandAloneApp
|
- [#124](https://github.com/WireMock-Net/WireMock.Net/issues/124) - Issue: Unable to get host to listen on ips other than 127.0.0.1 using StandAloneApp
|
||||||
@@ -147,13 +163,11 @@
|
|||||||
# 1.0.3.14 (01 April 2018)
|
# 1.0.3.14 (01 April 2018)
|
||||||
- [#111](https://github.com/WireMock-Net/WireMock.Net/issues/111) - Question: Adding wiki documentation on how to use WireMock.Net.WebApplication project
|
- [#111](https://github.com/WireMock-Net/WireMock.Net/issues/111) - Question: Adding wiki documentation on how to use WireMock.Net.WebApplication project
|
||||||
- [#112](https://github.com/WireMock-Net/WireMock.Net/issues/112) - Question: Request.Create().WithBody() not able to match with custom class which implements IMatcher
|
- [#112](https://github.com/WireMock-Net/WireMock.Net/issues/112) - Question: Request.Create().WithBody() not able to match with custom class which implements IMatcher
|
||||||
- [#113](https://github.com/WireMock-Net/WireMock.Net/issues/113) - Feature: Add BodyAsJsonIndented for response message
|
- [#113](https://github.com/WireMock-Net/WireMock.Net/issues/113) - Feature: Add BodyAsJsonIndented for response message [feature]
|
||||||
- [#114](https://github.com/WireMock-Net/WireMock.Net/issues/114) - Feature: Add PathSegments in Transform
|
- [#114](https://github.com/WireMock-Net/WireMock.Net/issues/114) - Feature: Add PathSegments in Transform [feature]
|
||||||
|
|
||||||
# 1.0.3.13 (24 March 2018)
|
|
||||||
|
|
||||||
# 1.0.3.12 (24 March 2018)
|
# 1.0.3.12 (24 March 2018)
|
||||||
- [#100](https://github.com/WireMock-Net/WireMock.Net/issues/100) - Issue: JsonPathMatcher - not working for rootless jsons?
|
- [#100](https://github.com/WireMock-Net/WireMock.Net/issues/100) - Issue: JsonPathMatcher - not working for rootless jsons? [question]
|
||||||
|
|
||||||
# 1.0.3.11 (20 March 2018)
|
# 1.0.3.11 (20 March 2018)
|
||||||
- [#110](https://github.com/WireMock-Net/WireMock.Net/issues/110) - Fix: remove `Func[]` from MappingModel
|
- [#110](https://github.com/WireMock-Net/WireMock.Net/issues/110) - Fix: remove `Func[]` from MappingModel
|
||||||
@@ -162,23 +176,19 @@
|
|||||||
- [#109](https://github.com/WireMock-Net/WireMock.Net/issues/109) - Issue: When proxying, MimeType is wrong for StringContent
|
- [#109](https://github.com/WireMock-Net/WireMock.Net/issues/109) - Issue: When proxying, MimeType is wrong for StringContent
|
||||||
|
|
||||||
# 1.0.3.9 (15 March 2018)
|
# 1.0.3.9 (15 March 2018)
|
||||||
- [#108](https://github.com/WireMock-Net/WireMock.Net/issues/108) - Issue: provide correct contentTypeHeader value for the bodyparser
|
- [#108](https://github.com/WireMock-Net/WireMock.Net/issues/108) - Issue: provide correct contentTypeHeader value for the bodyparser [bug]
|
||||||
|
|
||||||
# 1.0.3.8 (10 March 2018)
|
# 1.0.3.8 (10 March 2018)
|
||||||
- [#106](https://github.com/WireMock-Net/WireMock.Net/issues/106) - Issue: Params does not work, when there are multiple values for a key
|
- [#106](https://github.com/WireMock-Net/WireMock.Net/issues/106) - Issue: Params does not work, when there are multiple values for a key
|
||||||
|
|
||||||
# 1.0.3.7 (09 March 2018)
|
# 1.0.3.7 (09 March 2018)
|
||||||
- [#104](https://github.com/WireMock-Net/WireMock.Net/issues/104) - Issue: PlatformNotSupportedException
|
- [#104](https://github.com/WireMock-Net/WireMock.Net/issues/104) - Issue: PlatformNotSupportedException [question]
|
||||||
|
|
||||||
# 1.0.3.6 (08 March 2018)
|
|
||||||
|
|
||||||
# 1.0.3.5 (08 March 2018)
|
|
||||||
|
|
||||||
# 1.0.3.4 (04 March 2018)
|
# 1.0.3.4 (04 March 2018)
|
||||||
- [#95](https://github.com/WireMock-Net/WireMock.Net/pull/95) - Unittest fix contributed by [StefH](https://github.com/StefH)
|
- [#95](https://github.com/WireMock-Net/WireMock.Net/pull/95) - Unittest fix contributed by [StefH](https://github.com/StefH)
|
||||||
- [#96](https://github.com/WireMock-Net/WireMock.Net/pull/96) - Replace log4net by custom logger (#94) contributed by [StefH](https://github.com/StefH)
|
- [#96](https://github.com/WireMock-Net/WireMock.Net/pull/96) - Replace log4net by custom logger (#94) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#101](https://github.com/WireMock-Net/WireMock.Net/pull/101) - ICallbackResponseBuilder + added more unit-tests contributed by [StefH](https://github.com/StefH)
|
- [#101](https://github.com/WireMock-Net/WireMock.Net/pull/101) - ICallbackResponseBuilder + added more unit-tests [bug] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#102](https://github.com/WireMock-Net/WireMock.Net/pull/102) - Feature: add WithBody(req => dostuff) style callback contributed by [alastairtree](https://github.com/alastairtree)
|
- [#102](https://github.com/WireMock-Net/WireMock.Net/pull/102) - Feature: add WithBody(req => dostuff) style callback [feature] contributed by [alastairtree](https://github.com/alastairtree)
|
||||||
- [#66](https://github.com/WireMock-Net/WireMock.Net/issues/66) - Interested in callbacks?
|
- [#66](https://github.com/WireMock-Net/WireMock.Net/issues/66) - Interested in callbacks?
|
||||||
- [#93](https://github.com/WireMock-Net/WireMock.Net/issues/93) - Bug: FluentMockServer IsStarted after calling Start()
|
- [#93](https://github.com/WireMock-Net/WireMock.Net/issues/93) - Bug: FluentMockServer IsStarted after calling Start()
|
||||||
- [#94](https://github.com/WireMock-Net/WireMock.Net/issues/94) - Issue: Introduced dependency on log4net
|
- [#94](https://github.com/WireMock-Net/WireMock.Net/issues/94) - Issue: Introduced dependency on log4net
|
||||||
@@ -186,27 +196,27 @@
|
|||||||
|
|
||||||
# 1.0.3.3 (24 February 2018)
|
# 1.0.3.3 (24 February 2018)
|
||||||
- [#92](https://github.com/WireMock-Net/WireMock.Net/pull/92) - Json fixes (#91) contributed by [StefH](https://github.com/StefH)
|
- [#92](https://github.com/WireMock-Net/WireMock.Net/pull/92) - Json fixes (#91) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#91](https://github.com/WireMock-Net/WireMock.Net/issues/91) - Bug: WireMock.Net is not matching application/json http requests using JSONPathMatcher
|
- [#91](https://github.com/WireMock-Net/WireMock.Net/issues/91) - Bug: WireMock.Net is not matching application/json http requests using JSONPathMatcher [bug]
|
||||||
|
|
||||||
# 1.0.3.2 (14 February 2018)
|
# 1.0.3.2 (14 February 2018)
|
||||||
- [#89](https://github.com/WireMock-Net/WireMock.Net/pull/89) - Add log4net logging contributed by [StefH](https://github.com/StefH)
|
|
||||||
- [#90](https://github.com/WireMock-Net/WireMock.Net/pull/90) - Concurrent issue (#88) contributed by [StefH](https://github.com/StefH)
|
- [#90](https://github.com/WireMock-Net/WireMock.Net/pull/90) - Concurrent issue (#88) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#87](https://github.com/WireMock-Net/WireMock.Net/issues/87) - Feature: Add logging
|
- [#88](https://github.com/WireMock-Net/WireMock.Net/issues/88) - Bug: Standalone server throws 500 error when receiving concurrent requests [bug]
|
||||||
- [#88](https://github.com/WireMock-Net/WireMock.Net/issues/88) - Bug: Standalone server throws 500 error when receiving concurrent requests
|
|
||||||
|
|
||||||
# 1.0.3.1 (14 February 2018)
|
# 1.0.3.1 (14 February 2018)
|
||||||
|
- [#89](https://github.com/WireMock-Net/WireMock.Net/pull/89) - Add log4net logging contributed by [StefH](https://github.com/StefH)
|
||||||
|
- [#87](https://github.com/WireMock-Net/WireMock.Net/issues/87) - Feature: Add logging
|
||||||
|
|
||||||
# 1.0.3.0 (05 February 2018)
|
# 1.0.3.0 (05 February 2018)
|
||||||
- [#80](https://github.com/WireMock-Net/WireMock.Net/issues/80) - Feature: When using proxy, in case Content-Type is JSON, use BodyAsJson in Response
|
- [#80](https://github.com/WireMock-Net/WireMock.Net/issues/80) - Feature: When using proxy, in case Content-Type is JSON, use BodyAsJson in Response
|
||||||
- [#81](https://github.com/WireMock-Net/WireMock.Net/issues/81) - Feature: When using proxy, only BodyAsBytes in case of binary data?
|
- [#81](https://github.com/WireMock-Net/WireMock.Net/issues/81) - Feature: When using proxy, only BodyAsBytes in case of binary data?
|
||||||
- [#82](https://github.com/WireMock-Net/WireMock.Net/issues/82) - Feature: make it possible to ignore some headers when proxying
|
- [#82](https://github.com/WireMock-Net/WireMock.Net/issues/82) - Feature: make it possible to ignore some headers when proxying [feature]
|
||||||
- [#83](https://github.com/WireMock-Net/WireMock.Net/issues/83) - Feature : Add also a method in IProxyResponseBuilder to provide proxy-settings
|
- [#83](https://github.com/WireMock-Net/WireMock.Net/issues/83) - Feature : Add also a method in IProxyResponseBuilder to provide proxy-settings [feature]
|
||||||
- [#85](https://github.com/WireMock-Net/WireMock.Net/issues/85) - Bug: https for netstandard does not work ?
|
- [#85](https://github.com/WireMock-Net/WireMock.Net/issues/85) - Bug: https for netstandard does not work ? [bug]
|
||||||
- [#86](https://github.com/WireMock-Net/WireMock.Net/issues/86) - Feature : Add FileSystemWatcher logic for watching static mapping files
|
- [#86](https://github.com/WireMock-Net/WireMock.Net/issues/86) - Feature : Add FileSystemWatcher logic for watching static mapping files [feature]
|
||||||
|
|
||||||
# 1.0.2.13 (23 January 2018)
|
# 1.0.2.13 (23 January 2018)
|
||||||
- [#79](https://github.com/WireMock-Net/WireMock.Net/pull/79) - Fix missed content headers contributed by [vladimir-fed](https://github.com/vladimir-fed)
|
- [#79](https://github.com/WireMock-Net/WireMock.Net/pull/79) - Fix missed content headers contributed by [vladimir-fed](https://github.com/vladimir-fed)
|
||||||
- [#57](https://github.com/WireMock-Net/WireMock.Net/issues/57) - ProxyAndRecord does not save query-parameters, headers and body
|
- [#57](https://github.com/WireMock-Net/WireMock.Net/issues/57) - ProxyAndRecord does not save query-parameters, headers and body [bug]
|
||||||
- [#78](https://github.com/WireMock-Net/WireMock.Net/issues/78) - WireMock not working when attempting to access from anything other than localhost.
|
- [#78](https://github.com/WireMock-Net/WireMock.Net/issues/78) - WireMock not working when attempting to access from anything other than localhost.
|
||||||
|
|
||||||
# 1.0.2.12 (16 January 2018)
|
# 1.0.2.12 (16 January 2018)
|
||||||
@@ -229,88 +239,82 @@
|
|||||||
- [#65](https://github.com/WireMock-Net/WireMock.Net/pull/65) - bug: Fix admin api client definition returning the wrong types contributed by [alastairtree](https://github.com/alastairtree)
|
- [#65](https://github.com/WireMock-Net/WireMock.Net/pull/65) - bug: Fix admin api client definition returning the wrong types contributed by [alastairtree](https://github.com/alastairtree)
|
||||||
- [#67](https://github.com/WireMock-Net/WireMock.Net/pull/67) - bug: fix supporting the Patch method and logging the body contributed by [alastairtree](https://github.com/alastairtree)
|
- [#67](https://github.com/WireMock-Net/WireMock.Net/pull/67) - bug: fix supporting the Patch method and logging the body contributed by [alastairtree](https://github.com/alastairtree)
|
||||||
- [#64](https://github.com/WireMock-Net/WireMock.Net/issues/64) - Pull Requests do not trigger test + codecoverage ?
|
- [#64](https://github.com/WireMock-Net/WireMock.Net/issues/64) - Pull Requests do not trigger test + codecoverage ?
|
||||||
- [#68](https://github.com/WireMock-Net/WireMock.Net/issues/68) - Full path required in Stub
|
- [#68](https://github.com/WireMock-Net/WireMock.Net/issues/68) - Full path required in Stub [question]
|
||||||
|
|
||||||
# 1.0.2.7 (18 November 2017)
|
# 1.0.2.7 (18 November 2017)
|
||||||
- [#62](https://github.com/WireMock-Net/WireMock.Net/pull/62) - Add the Host, Protocol, Port and Origin to the Request message so they can be used in templating contributed by [alastairtree](https://github.com/alastairtree)
|
- [#62](https://github.com/WireMock-Net/WireMock.Net/pull/62) - Add the Host, Protocol, Port and Origin to the Request message so they can be used in templating contributed by [alastairtree](https://github.com/alastairtree)
|
||||||
- [#63](https://github.com/WireMock-Net/WireMock.Net/pull/63) - Fix issue with concurrent logging contributed by [vladimir-fed](https://github.com/vladimir-fed)
|
- [#63](https://github.com/WireMock-Net/WireMock.Net/pull/63) - Fix issue with concurrent logging contributed by [vladimir-fed](https://github.com/vladimir-fed)
|
||||||
- [#27](https://github.com/WireMock-Net/WireMock.Net/issues/27) - New feature: Record and Save
|
- [#27](https://github.com/WireMock-Net/WireMock.Net/issues/27) - New feature: Record and Save
|
||||||
- [#42](https://github.com/WireMock-Net/WireMock.Net/issues/42) - Enhancement - Save/load request logs to/from disk
|
- [#42](https://github.com/WireMock-Net/WireMock.Net/issues/42) - Enhancement - Save/load request logs to/from disk [feature]
|
||||||
- [#53](https://github.com/WireMock-Net/WireMock.Net/issues/53) - New feature request: Access to Owin pipeline
|
- [#53](https://github.com/WireMock-Net/WireMock.Net/issues/53) - New feature request: Access to Owin pipeline
|
||||||
- [#61](https://github.com/WireMock-Net/WireMock.Net/issues/61) - Partial mapping
|
- [#61](https://github.com/WireMock-Net/WireMock.Net/issues/61) - Partial mapping [question]
|
||||||
|
|
||||||
# 1.0.2.6 (30 October 2017)
|
# 1.0.2.6 (30 October 2017)
|
||||||
- [#59](https://github.com/WireMock-Net/WireMock.Net/pull/59) - Add ability to provide multiple values for headers in response contributed by [Dreamescaper](https://github.com/Dreamescaper)
|
- [#59](https://github.com/WireMock-Net/WireMock.Net/pull/59) - Add ability to provide multiple values for headers in response contributed by [Dreamescaper](https://github.com/Dreamescaper)
|
||||||
- [#60](https://github.com/WireMock-Net/WireMock.Net/pull/60) - Fix proxy headers handling contributed by [Dreamescaper](https://github.com/Dreamescaper)
|
- [#60](https://github.com/WireMock-Net/WireMock.Net/pull/60) - Fix proxy headers handling contributed by [Dreamescaper](https://github.com/Dreamescaper)
|
||||||
- [#54](https://github.com/WireMock-Net/WireMock.Net/issues/54) - Proxy for AWS: Error unmarshalling response back from AWS
|
- [#54](https://github.com/WireMock-Net/WireMock.Net/issues/54) - Proxy for AWS: Error unmarshalling response back from AWS [bug]
|
||||||
- [#56](https://github.com/WireMock-Net/WireMock.Net/issues/56) - WithBodyFromFile Support
|
- [#56](https://github.com/WireMock-Net/WireMock.Net/issues/56) - WithBodyFromFile Support [feature]
|
||||||
- [#58](https://github.com/WireMock-Net/WireMock.Net/issues/58) - Multiple headers with same name
|
- [#58](https://github.com/WireMock-Net/WireMock.Net/issues/58) - Multiple headers with same name [feature]
|
||||||
|
|
||||||
# 1.0.2.5 (24 October 2017)
|
# 1.0.2.5 (24 October 2017)
|
||||||
- [#55](https://github.com/WireMock-Net/WireMock.Net/pull/55) - Fix the problem with headers passthrough contributed by [deeptowncitizen](https://github.com/deeptowncitizen)
|
- [#55](https://github.com/WireMock-Net/WireMock.Net/pull/55) - Fix the problem with headers passthrough [bug] contributed by [deeptowncitizen](https://github.com/deeptowncitizen)
|
||||||
- [#44](https://github.com/WireMock-Net/WireMock.Net/issues/44) - Bug: Server not listening after Start() returns (on macOS)
|
- [#44](https://github.com/WireMock-Net/WireMock.Net/issues/44) - Bug: Server not listening after Start() returns (on macOS) [bug]
|
||||||
- [#48](https://github.com/WireMock-Net/WireMock.Net/issues/48) - Stateful support
|
- [#48](https://github.com/WireMock-Net/WireMock.Net/issues/48) - Stateful support [feature]
|
||||||
- [#52](https://github.com/WireMock-Net/WireMock.Net/issues/52) - SimMetrics.NET error when trying to install NuGet Package
|
- [#52](https://github.com/WireMock-Net/WireMock.Net/issues/52) - SimMetrics.NET error when trying to install NuGet Package
|
||||||
|
|
||||||
# 1.0.2.4 (10 October 2017)
|
# 1.0.2.4 (10 October 2017)
|
||||||
- [#32](https://github.com/WireMock-Net/WireMock.Net/pull/32) - [Feature] Add support for client certificate password and test with real services that require client certificate auth contributed by [phillee007](https://github.com/phillee007)
|
- [#32](https://github.com/WireMock-Net/WireMock.Net/pull/32) - [Feature] Add support for client certificate password and test with real services that require client certificate auth [feature] contributed by [phillee007](https://github.com/phillee007)
|
||||||
- [#35](https://github.com/WireMock-Net/WireMock.Net/pull/35) - Revert changes that were made by mistake in prior PR contributed by [phillee007](https://github.com/phillee007)
|
- [#35](https://github.com/WireMock-Net/WireMock.Net/pull/35) - Revert changes that were made by mistake in prior PR contributed by [phillee007](https://github.com/phillee007)
|
||||||
- [#39](https://github.com/WireMock-Net/WireMock.Net/pull/39) - Listen on http://*:9090 contributed by [StefH](https://github.com/StefH)
|
- [#39](https://github.com/WireMock-Net/WireMock.Net/pull/39) - Listen on http://*:9090 contributed by [StefH](https://github.com/StefH)
|
||||||
- [#40](https://github.com/WireMock-Net/WireMock.Net/pull/40) - Expose more settings to stand-alone app contributed by [StefH](https://github.com/StefH)
|
- [#40](https://github.com/WireMock-Net/WireMock.Net/pull/40) - Expose more settings to stand-alone app contributed by [StefH](https://github.com/StefH)
|
||||||
- [#41](https://github.com/WireMock-Net/WireMock.Net/pull/41) - Dotnet 20 preview final contributed by [StefH](https://github.com/StefH)
|
- [#41](https://github.com/WireMock-Net/WireMock.Net/pull/41) - Dotnet 20 preview final [feature] contributed by [StefH](https://github.com/StefH)
|
||||||
- [#45](https://github.com/WireMock-Net/WireMock.Net/pull/45) - Add RequestLogExpirationDuration and MaxRequestLogCount (#43) contributed by [StefH](https://github.com/StefH)
|
- [#45](https://github.com/WireMock-Net/WireMock.Net/pull/45) - Add RequestLogExpirationDuration and MaxRequestLogCount (#43) contributed by [StefH](https://github.com/StefH)
|
||||||
- [#51](https://github.com/WireMock-Net/WireMock.Net/pull/51) - Observable logs contributed by [deeptowncitizen](https://github.com/deeptowncitizen)
|
- [#51](https://github.com/WireMock-Net/WireMock.Net/pull/51) - Observable logs contributed by [deeptowncitizen](https://github.com/deeptowncitizen)
|
||||||
- [#15](https://github.com/WireMock-Net/WireMock.Net/issues/15) - New feature: Proxying
|
- [#15](https://github.com/WireMock-Net/WireMock.Net/issues/15) - New feature: Proxying [feature]
|
||||||
- [#19](https://github.com/WireMock-Net/WireMock.Net/issues/19) - Is this the same as Mock4Net?
|
- [#19](https://github.com/WireMock-Net/WireMock.Net/issues/19) - Is this the same as Mock4Net? [question]
|
||||||
- [#20](https://github.com/WireMock-Net/WireMock.Net/issues/20) - Add client certificate authentication
|
- [#20](https://github.com/WireMock-Net/WireMock.Net/issues/20) - Add client certificate authentication [question]
|
||||||
- [#31](https://github.com/WireMock-Net/WireMock.Net/issues/31) - Feature request: Nuget package for standalone version
|
- [#31](https://github.com/WireMock-Net/WireMock.Net/issues/31) - Feature request: Nuget package for standalone version [feature]
|
||||||
- [#33](https://github.com/WireMock-Net/WireMock.Net/issues/33) - Issue with launching sample code (StandAlone server)
|
- [#33](https://github.com/WireMock-Net/WireMock.Net/issues/33) - Issue with launching sample code (StandAlone server) [bug]
|
||||||
- [#34](https://github.com/WireMock-Net/WireMock.Net/issues/34) - Where is SearchLogsFor method?
|
- [#34](https://github.com/WireMock-Net/WireMock.Net/issues/34) - Where is SearchLogsFor method? [question]
|
||||||
- [#36](https://github.com/WireMock-Net/WireMock.Net/issues/36) - How to implement a request body-dependent response?
|
- [#36](https://github.com/WireMock-Net/WireMock.Net/issues/36) - How to implement a request body-dependent response? [question]
|
||||||
- [#37](https://github.com/WireMock-Net/WireMock.Net/issues/37) - Wrong Request Match result is returning
|
- [#37](https://github.com/WireMock-Net/WireMock.Net/issues/37) - Wrong Request Match result is returning [question]
|
||||||
- [#38](https://github.com/WireMock-Net/WireMock.Net/issues/38) - Bug: support also listening on *:{port}
|
- [#38](https://github.com/WireMock-Net/WireMock.Net/issues/38) - Bug: support also listening on *:{port}
|
||||||
- [#43](https://github.com/WireMock-Net/WireMock.Net/issues/43) - Feature: Add RequestLogExpirationDuration and MaxRequestLogCount
|
- [#43](https://github.com/WireMock-Net/WireMock.Net/issues/43) - Feature: Add RequestLogExpirationDuration and MaxRequestLogCount
|
||||||
- [#46](https://github.com/WireMock-Net/WireMock.Net/issues/46) - Log the ip-address from the client/caller also in the RequestLog
|
- [#46](https://github.com/WireMock-Net/WireMock.Net/issues/46) - Log the ip-address from the client/caller also in the RequestLog [feature]
|
||||||
- [#47](https://github.com/WireMock-Net/WireMock.Net/issues/47) - Feature: add matcher details to Request to see which matchers match/not match
|
- [#47](https://github.com/WireMock-Net/WireMock.Net/issues/47) - Feature: add matcher details to Request to see which matchers match/not match [feature]
|
||||||
- [#50](https://github.com/WireMock-Net/WireMock.Net/issues/50) - New Feature: Callbacks
|
- [#50](https://github.com/WireMock-Net/WireMock.Net/issues/50) - New Feature: Callbacks
|
||||||
|
|
||||||
# 1.0.2.1 (14 June 2017)
|
# 1.0.2.1 (14 June 2017)
|
||||||
- [#28](https://github.com/WireMock-Net/WireMock.Net/issues/28) - Facing issue with WildcardMatcher and '?'
|
- [#28](https://github.com/WireMock-Net/WireMock.Net/issues/28) - Facing issue with WildcardMatcher and '?' [question]
|
||||||
- [#29](https://github.com/WireMock-Net/WireMock.Net/issues/29) - Support of .Net 4.0
|
- [#29](https://github.com/WireMock-Net/WireMock.Net/issues/29) - Support of .Net 4.0 [question]
|
||||||
- [#30](https://github.com/WireMock-Net/WireMock.Net/issues/30) - [Feature] Disable partial mappings by default in standalone version
|
- [#30](https://github.com/WireMock-Net/WireMock.Net/issues/30) - [Feature] Disable partial mappings by default in standalone version [bug, feature]
|
||||||
|
|
||||||
# 1.0.2.0 (05 May 2017)
|
# 1.0.2.0 (05 May 2017)
|
||||||
- [#26](https://github.com/WireMock-Net/WireMock.Net/pull/26) - merge netstandard into main contributed by [StefH](https://github.com/StefH)
|
- [#26](https://github.com/WireMock-Net/WireMock.Net/pull/26) - merge netstandard into main contributed by [StefH](https://github.com/StefH)
|
||||||
- [#21](https://github.com/WireMock-Net/WireMock.Net/issues/21) - Admin static json mappings
|
- [#21](https://github.com/WireMock-Net/WireMock.Net/issues/21) - Admin static json mappings [feature]
|
||||||
- [#23](https://github.com/WireMock-Net/WireMock.Net/issues/23) - Consider port to .Net Core
|
- [#23](https://github.com/WireMock-Net/WireMock.Net/issues/23) - Consider port to .Net Core
|
||||||
- [#25](https://github.com/WireMock-Net/WireMock.Net/issues/25) - Upgrade to vs2017
|
- [#25](https://github.com/WireMock-Net/WireMock.Net/issues/25) - Upgrade to vs2017 [feature]
|
||||||
|
|
||||||
# 1.0.1.5 (21 March 2017)
|
|
||||||
|
|
||||||
# 1.0.1.3 (20 March 2017)
|
|
||||||
|
|
||||||
# 1.0.1.2 (27 February 2017)
|
# 1.0.1.2 (27 February 2017)
|
||||||
- [#24](https://github.com/WireMock-Net/WireMock.Net/pull/24) - Body Encoding contributed by [sbebrys](https://github.com/sbebrys)
|
- [#24](https://github.com/WireMock-Net/WireMock.Net/pull/24) - Body Encoding contributed by [sbebrys](https://github.com/sbebrys)
|
||||||
- [#8](https://github.com/WireMock-Net/WireMock.Net/issues/8) - admin rest api
|
- [#8](https://github.com/WireMock-Net/WireMock.Net/issues/8) - admin rest api
|
||||||
- [#22](https://github.com/WireMock-Net/WireMock.Net/issues/22) - Add basic-authentication for accessing admin-interface
|
- [#22](https://github.com/WireMock-Net/WireMock.Net/issues/22) - Add basic-authentication for accessing admin-interface [feature]
|
||||||
|
|
||||||
# 1.0.1.1 (10 February 2017)
|
# 1.0.1.1 (10 February 2017)
|
||||||
- [#1](https://github.com/WireMock-Net/WireMock.Net/issues/1) - Replace WildcardPatternMatcher by RegEx
|
- [#1](https://github.com/WireMock-Net/WireMock.Net/issues/1) - Replace WildcardPatternMatcher by RegEx [feature]
|
||||||
- [#2](https://github.com/WireMock-Net/WireMock.Net/issues/2) - Func<string> matching
|
- [#2](https://github.com/WireMock-Net/WireMock.Net/issues/2) - Func<string> matching [feature]
|
||||||
- [#3](https://github.com/WireMock-Net/WireMock.Net/issues/3) - WithUrls and WithHeaders and ...
|
- [#3](https://github.com/WireMock-Net/WireMock.Net/issues/3) - WithUrls and WithHeaders and ...
|
||||||
- [#4](https://github.com/WireMock-Net/WireMock.Net/issues/4) - Handlebar support
|
- [#4](https://github.com/WireMock-Net/WireMock.Net/issues/4) - Handlebar support
|
||||||
- [#5](https://github.com/WireMock-Net/WireMock.Net/issues/5) - Xml(2)Path matching
|
- [#5](https://github.com/WireMock-Net/WireMock.Net/issues/5) - Xml(2)Path matching
|
||||||
- [#6](https://github.com/WireMock-Net/WireMock.Net/issues/6) - JsonPath support matching
|
- [#6](https://github.com/WireMock-Net/WireMock.Net/issues/6) - JsonPath support matching
|
||||||
- [#7](https://github.com/WireMock-Net/WireMock.Net/issues/7) - Add WithStatusCodeRange matching
|
- [#7](https://github.com/WireMock-Net/WireMock.Net/issues/7) - Add WithStatusCodeRange matching [invalid]
|
||||||
- [#9](https://github.com/WireMock-Net/WireMock.Net/issues/9) - Cookie matching
|
- [#9](https://github.com/WireMock-Net/WireMock.Net/issues/9) - Cookie matching
|
||||||
- [#10](https://github.com/WireMock-Net/WireMock.Net/issues/10) - Add usingDelete
|
- [#10](https://github.com/WireMock-Net/WireMock.Net/issues/10) - Add usingDelete [feature]
|
||||||
- [#11](https://github.com/WireMock-Net/WireMock.Net/issues/11) - Add response body in binary format
|
- [#11](https://github.com/WireMock-Net/WireMock.Net/issues/11) - Add response body in binary format [feature]
|
||||||
- [#12](https://github.com/WireMock-Net/WireMock.Net/issues/12) - Getting all currently registered stub mappings
|
- [#12](https://github.com/WireMock-Net/WireMock.Net/issues/12) - Getting all currently registered stub mappings [feature]
|
||||||
- [#13](https://github.com/WireMock-Net/WireMock.Net/issues/13) - Handle Exception
|
- [#13](https://github.com/WireMock-Net/WireMock.Net/issues/13) - Handle Exception
|
||||||
- [#14](https://github.com/WireMock-Net/WireMock.Net/issues/14) - Allow Body as Base64
|
- [#14](https://github.com/WireMock-Net/WireMock.Net/issues/14) - Allow Body as Base64
|
||||||
- [#16](https://github.com/WireMock-Net/WireMock.Net/issues/16) - Stub priority
|
- [#16](https://github.com/WireMock-Net/WireMock.Net/issues/16) - Stub priority [feature]
|
||||||
- [#17](https://github.com/WireMock-Net/WireMock.Net/issues/17) - Add JsonBody to response
|
- [#17](https://github.com/WireMock-Net/WireMock.Net/issues/17) - Add JsonBody to response [feature]
|
||||||
- [#18](https://github.com/WireMock-Net/WireMock.Net/issues/18) - Listen on more ip-address/ports
|
- [#18](https://github.com/WireMock-Net/WireMock.Net/issues/18) - Listen on more ip-address/ports [feature]
|
||||||
|
|
||||||
# 1.0.0.0 (17 January 2017)
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<VersionPrefix>1.0.4.18</VersionPrefix>
|
<VersionPrefix>1.0.4.20</VersionPrefix>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Choose>
|
<Choose>
|
||||||
|
|||||||
Binary file not shown.
@@ -1,3 +1,3 @@
|
|||||||
https://github.com/StefH/GitHubReleaseNotes
|
https://github.com/StefH/GitHubReleaseNotes
|
||||||
|
|
||||||
GitHubReleaseNotes.exe . --output CHANGELOG.md
|
GitHubReleaseNotes.exe --output CHANGELOG.md --skip-empty-releases --version 1.0.4.21
|
||||||
@@ -24,6 +24,7 @@ A C# .NET version based on [mock4net](https://github.com/alexvictoor/mock4net) w
|
|||||||
| **Sonar Bugs** | [](https://sonarcloud.io/project/issues?id=wiremock&resolved=false&types=BUG) |
|
| **Sonar Bugs** | [](https://sonarcloud.io/project/issues?id=wiremock&resolved=false&types=BUG) |
|
||||||
| **Sonar Code Smells** | [](https://sonarcloud.io/project/issues?id=wiremock&resolved=false&types=CODE_SMELL) |
|
| **Sonar Code Smells** | [](https://sonarcloud.io/project/issues?id=wiremock&resolved=false&types=CODE_SMELL) |
|
||||||
| **Sonar Coverage** | [](https://sonarcloud.io/component_measures?id=wiremock&metric=coverage) |
|
| **Sonar Coverage** | [](https://sonarcloud.io/component_measures?id=wiremock&metric=coverage) |
|
||||||
|
| **Codecov** | [](https://codecov.io/gh/WireMock-Net/WireMock.Net) |
|
||||||
| **Coveralls** | [](https://coveralls.io/github/WireMock-Net/WireMock.Net?branch=master) |
|
| **Coveralls** | [](https://coveralls.io/github/WireMock-Net/WireMock.Net?branch=master) |
|
||||||
| |
|
| |
|
||||||
| ***NuGet*** | |
|
| ***NuGet*** | |
|
||||||
|
|||||||
@@ -10,5 +10,6 @@
|
|||||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=XUA/@EntryIndexedValue">XUA</s:String>
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=XUA/@EntryIndexedValue">XUA</s:String>
|
||||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=funcs/@EntryIndexedValue">True</s:Boolean>
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=funcs/@EntryIndexedValue">True</s:Boolean>
|
||||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Heyenrath/@EntryIndexedValue">True</s:Boolean>
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=Heyenrath/@EntryIndexedValue">True</s:Boolean>
|
||||||
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=randomizer/@EntryIndexedValue">True</s:Boolean>
|
||||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Stef/@EntryIndexedValue">True</s:Boolean>
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=Stef/@EntryIndexedValue">True</s:Boolean>
|
||||||
</wpf:ResourceDictionary>
|
</wpf:ResourceDictionary>
|
||||||
@@ -12,10 +12,10 @@ steps:
|
|||||||
echo "BuildId = $(buildId)"
|
echo "BuildId = $(buildId)"
|
||||||
displayName: 'Print buildId'
|
displayName: 'Print buildId'
|
||||||
|
|
||||||
# Install SonarScanner
|
# Install Tools (SonarScanner)
|
||||||
- script: |
|
- script: |
|
||||||
dotnet tool install --global dotnet-sonarscanner
|
dotnet tool install --global dotnet-sonarscanner
|
||||||
displayName: Install SonarScanner
|
displayName: Install Tools (SonarScanner)
|
||||||
|
|
||||||
# Begin SonarScanner
|
# Begin SonarScanner
|
||||||
# See also
|
# See also
|
||||||
@@ -38,6 +38,11 @@ steps:
|
|||||||
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"
|
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"
|
||||||
displayName: End SonarScanner
|
displayName: End SonarScanner
|
||||||
|
|
||||||
|
# Upload coverage to codecov.io
|
||||||
|
- script: |
|
||||||
|
%USERPROFILE%\.nuget\packages\codecov\1.1.0\tools\codecov.exe -f "./test/WireMock.Net.Tests/coverage.opencover.xml" -t $(CODECOV_TOKEN)
|
||||||
|
displayName: Upload coverage to codecov.io
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: VSTest
|
testRunner: VSTest
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||||
<PackageReference Include="RestEase" Version="1.4.4" />
|
<PackageReference Include="RestEase" Version="1.4.7" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Globalization;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using WireMock.Logging;
|
using WireMock.Logging;
|
||||||
@@ -395,6 +396,32 @@ namespace WireMock.Net.ConsoleApplication
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
server
|
||||||
|
.Given(Request.Create().WithPath("/random"))
|
||||||
|
.RespondWith(Response.Create()
|
||||||
|
.WithHeader("Content-Type", "application/json")
|
||||||
|
.WithBodyAsJson(new
|
||||||
|
{
|
||||||
|
Text = "{{Random Type=\"Text\" Min=8 Max=20}}",
|
||||||
|
TextLipsum = "{{Random Type=\"TextLipsum\"}}",
|
||||||
|
TimeSpan1 = "{{Random Type=\"TimeSpan\" Format=\"c\" IncludeMilliseconds=false}}",
|
||||||
|
TimeSpan2 = "{{Random Type=\"TimeSpan\"}}",
|
||||||
|
DateTime1 = "{{Random Type=\"DateTime\"}}",
|
||||||
|
DateTimeNow = DateTime.Now,
|
||||||
|
DateTimeToString = DateTime.Now.ToString("s", CultureInfo.InvariantCulture),
|
||||||
|
Guid1 = "{{Random Type=\"Guid\" Uppercase=false}}",
|
||||||
|
Guid2 = "{{Random Type=\"Guid\"}}",
|
||||||
|
Integer1 = "{{Random Type=\"Integer\" Min=1000 Max=9999}}",
|
||||||
|
Integer2 = "{{#Random Type=\"Integer\" Min=10000000 Max=99999999}}{{this}}{{/Random}}",
|
||||||
|
Double1 = "{{Random Type=\"Double\" Min=10 Max=99}}",
|
||||||
|
Double2 = "{{Random Type=\"Double\" Min=100 Max=999}}",
|
||||||
|
IP4Address = "{{Random Type=\"IPv4Address\" Min=\"10.2.3.4\"}}",
|
||||||
|
IP6Address = "{{Random Type=\"IPv6Address\"}}",
|
||||||
|
MACAddress = "{{Random Type=\"MACAddress\" Separator=\"-\"}}"
|
||||||
|
})
|
||||||
|
.WithTransformer()
|
||||||
|
);
|
||||||
|
|
||||||
System.Console.WriteLine("Press any key to stop the server");
|
System.Console.WriteLine("Press any key to stop the server");
|
||||||
System.Console.ReadKey();
|
System.Console.ReadKey();
|
||||||
server.Stop();
|
server.Stop();
|
||||||
|
|||||||
@@ -46,8 +46,8 @@
|
|||||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimMetrics.Net, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="SimMetrics.Net, Version=1.0.5.0, Culture=neutral, PublicKeyToken=c58dc06d59f3391b, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\SimMetrics.Net.1.0.4\lib\net45\SimMetrics.Net.dll</HintPath>
|
<HintPath>..\..\packages\SimMetrics.Net.1.0.5\lib\net45\SimMetrics.Net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
<package id="log4net" version="2.0.8" targetFramework="net452" />
|
<package id="log4net" version="2.0.8" targetFramework="net452" />
|
||||||
<package id="Microsoft.Owin.Host.HttpListener" version="3.1.0" targetFramework="net452" />
|
<package id="Microsoft.Owin.Host.HttpListener" version="3.1.0" targetFramework="net452" />
|
||||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />
|
||||||
<package id="SimMetrics.Net" version="1.0.4" targetFramework="net452" />
|
<package id="SimMetrics.Net" version="1.0.5" targetFramework="net452" />
|
||||||
</packages>
|
</packages>
|
||||||
@@ -41,8 +41,8 @@
|
|||||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimMetrics.Net, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="SimMetrics.Net, Version=1.0.5.0, Culture=neutral, PublicKeyToken=c58dc06d59f3391b, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\SimMetrics.Net.1.0.4\lib\net45\SimMetrics.Net.dll</HintPath>
|
<HintPath>..\..\packages\SimMetrics.Net.1.0.5\lib\net45\SimMetrics.Net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
<packages>
|
<packages>
|
||||||
<package id="log4net" version="2.0.8" targetFramework="net461" />
|
<package id="log4net" version="2.0.8" targetFramework="net461" />
|
||||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
||||||
<package id="SimMetrics.Net" version="1.0.4" targetFramework="net461" />
|
<package id="SimMetrics.Net" version="1.0.5" targetFramework="net461" />
|
||||||
</packages>
|
</packages>
|
||||||
@@ -21,7 +21,7 @@ namespace Wiremock.Net.Service
|
|||||||
|
|
||||||
protected override void OnStart(string[] args)
|
protected override void OnStart(string[] args)
|
||||||
{
|
{
|
||||||
Start();
|
Start(new WireMockNullLogger());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnStop()
|
protected override void OnStop()
|
||||||
@@ -46,7 +46,7 @@ namespace Wiremock.Net.Service
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// running as console app
|
// running as console app
|
||||||
Start();
|
Start(new WireMockConsoleLogger());
|
||||||
|
|
||||||
Console.WriteLine("Press any key to stop...");
|
Console.WriteLine("Press any key to stop...");
|
||||||
Console.ReadKey(true);
|
Console.ReadKey(true);
|
||||||
@@ -55,14 +55,14 @@ namespace Wiremock.Net.Service
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Start()
|
private static void Start(IWireMockLogger logger)
|
||||||
{
|
{
|
||||||
_server = StandAloneApp.Start(new FluentMockServerSettings
|
_server = StandAloneApp.Start(new FluentMockServerSettings
|
||||||
{
|
{
|
||||||
Urls = new[] { "http://*:9091/" },
|
Urls = new[] { "http://*:9091/" },
|
||||||
StartAdminInterface = true,
|
StartAdminInterface = true,
|
||||||
ReadStaticMappings = true,
|
ReadStaticMappings = true,
|
||||||
Logger = new WireMockConsoleLogger()
|
Logger = logger
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,11 +53,11 @@
|
|||||||
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
<HintPath>..\..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="RestEase, Version=1.4.4.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="RestEase, Version=1.4.7.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\RestEase.1.4.4\lib\net45\RestEase.dll</HintPath>
|
<HintPath>..\..\packages\RestEase.1.4.7\lib\net45\RestEase.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimMetrics.Net, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="SimMetrics.Net, Version=1.0.5.0, Culture=neutral, PublicKeyToken=c58dc06d59f3391b, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\SimMetrics.Net.1.0.4\lib\net45\SimMetrics.Net.dll</HintPath>
|
<HintPath>..\..\packages\SimMetrics.Net.1.0.5\lib\net45\SimMetrics.Net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Configuration.Install" />
|
<Reference Include="System.Configuration.Install" />
|
||||||
@@ -83,8 +83,8 @@
|
|||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="XPath2, Version=1.0.5.1, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="XPath2, Version=1.0.7.0, Culture=neutral, PublicKeyToken=463c6d7fb740c7e5, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\XPath2.1.0.5.1\lib\net40\XPath2.dll</HintPath>
|
<HintPath>..\..\packages\XPath2.1.0.6.1\lib\net40\XPath2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
<package id="MimeKitLite" version="2.0.1" targetFramework="net452" />
|
<package id="MimeKitLite" version="2.0.1" targetFramework="net452" />
|
||||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />
|
||||||
<package id="Owin" version="1.0" targetFramework="net452" />
|
<package id="Owin" version="1.0" targetFramework="net452" />
|
||||||
<package id="RestEase" version="1.4.4" targetFramework="net452" />
|
<package id="RestEase" version="1.4.7" targetFramework="net452" />
|
||||||
<package id="SimMetrics.Net" version="1.0.4" targetFramework="net452" />
|
<package id="SimMetrics.Net" version="1.0.5" targetFramework="net452" />
|
||||||
<package id="System.Net.Http" version="4.3.3" targetFramework="net452" />
|
<package id="System.Net.Http" version="4.3.3" targetFramework="net452" />
|
||||||
<package id="XPath2" version="1.0.5.1" targetFramework="net452" />
|
<package id="XPath2" version="1.0.6.1" targetFramework="net452" />
|
||||||
</packages>
|
</packages>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
|
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||||
@@ -15,7 +15,8 @@
|
|||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.1.1.2" />
|
<!--<bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.1.1.2" />-->
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
@@ -29,6 +30,42 @@
|
|||||||
<assemblyIdentity name="Microsoft.Win32.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
<assemblyIdentity name="Microsoft.Win32.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Security.Cryptography.Cng" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.3.1.0" newVersion="4.3.1.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Linq.Dynamic.Core" publicKeyToken="0f07ec44de6ac832" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-1.0.9.0" newVersion="1.0.9.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Microsoft.AspNetCore.Server.Kestrel.Core" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-2.1.3.0" newVersion="2.1.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Microsoft.AspNetCore.Server.Kestrel" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-2.1.3.0" newVersion="2.1.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.1" newVersion="4.0.0.1" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Security.Principal.Windows" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.1.1.1" newVersion="4.1.1.1" />
|
||||||
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props')" />
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
@@ -12,6 +13,8 @@
|
|||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
<NuGetPackageImportStamp>
|
||||||
|
</NuGetPackageImportStamp>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
@@ -36,8 +39,152 @@
|
|||||||
<StartupObject>WireMock.Net.StandAlone.Net461.Program</StartupObject>
|
<StartupObject>WireMock.Net.StandAlone.Net461.Program</StartupObject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Handlebars, Version=1.8.1.0, Culture=neutral, PublicKeyToken=22225d0bf33cd661, processorArchitecture=MSIL">
|
<Reference Include="Handlebars, Version=1.9.5.0, Culture=neutral, PublicKeyToken=22225d0bf33cd661, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Handlebars.Net.1.9.0\lib\net40\Handlebars.dll</HintPath>
|
<HintPath>..\..\packages\Handlebars.Net.1.9.5\lib\net452\Handlebars.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore, Version=2.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.2.1.4\lib\netstandard2.0\Microsoft.AspNetCore.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Authentication.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Authentication.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Authentication.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Authentication.Core, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Authentication.Core.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Authentication.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Connections.Abstractions, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Connections.Abstractions.2.1.3\lib\netstandard2.0\Microsoft.AspNetCore.Connections.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Diagnostics, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Diagnostics.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Diagnostics.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Diagnostics.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Diagnostics.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Diagnostics.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.HostFiltering, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.HostFiltering.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.HostFiltering.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Hosting, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Hosting.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Hosting.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Hosting.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Hosting.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Hosting.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Hosting.Server.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Hosting.Server.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Hosting.Server.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Http, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Http.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Http.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Http.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Http.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Http.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Http.Extensions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Http.Extensions.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Http.Extensions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Http.Features, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Http.Features.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Http.Features.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.HttpOverrides, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.HttpOverrides.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.HttpOverrides.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Routing, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Routing.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Routing.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Routing.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Routing.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.Routing.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Server.IISIntegration, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Server.IISIntegration.2.1.2\lib\netstandard2.0\Microsoft.AspNetCore.Server.IISIntegration.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Server.Kestrel, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Server.Kestrel.2.1.3\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Core, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Server.Kestrel.Core.2.1.3\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Https, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Server.Kestrel.Https.2.1.3\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Https.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.2.1.3\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.2.1.3\lib\netstandard2.0\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.AspNetCore.WebUtilities, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.AspNetCore.WebUtilities.2.1.1\lib\netstandard2.0\Microsoft.AspNetCore.WebUtilities.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration.Binder, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.Binder.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration.CommandLine, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.CommandLine.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.CommandLine.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.EnvironmentVariables.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.EnvironmentVariables.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration.FileExtensions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.FileExtensions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.FileExtensions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration.Json, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.Json.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Configuration.UserSecrets, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.DependencyInjection, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.DependencyInjection.2.1.1\lib\net461\Microsoft.Extensions.DependencyInjection.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.FileProviders.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.FileProviders.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.FileProviders.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.FileProviders.Physical, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.FileProviders.Physical.2.1.1\lib\netstandard2.0\Microsoft.Extensions.FileProviders.Physical.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.FileSystemGlobbing, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.FileSystemGlobbing.2.1.1\lib\netstandard2.0\Microsoft.Extensions.FileSystemGlobbing.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Hosting.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Hosting.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Hosting.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Logging, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Logging.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Logging.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Logging.Configuration, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Logging.Configuration.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.Configuration.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Logging.Console, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Logging.Console.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.Console.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Logging.Debug, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Logging.Debug.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.Debug.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.ObjectPool, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.ObjectPool.2.1.1\lib\netstandard2.0\Microsoft.Extensions.ObjectPool.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Options, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Options.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Options.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Options.ConfigurationExtensions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Options.ConfigurationExtensions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Options.ConfigurationExtensions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Extensions.Primitives, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Extensions.Primitives.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Net.Http.Headers, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Microsoft.Net.Http.Headers.2.1.1\lib\netstandard2.0\Microsoft.Net.Http.Headers.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.Owin, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.Owin, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Microsoft.Owin.4.0.0\lib\net451\Microsoft.Owin.dll</HintPath>
|
<HintPath>..\..\packages\Microsoft.Owin.4.0.0\lib\net451\Microsoft.Owin.dll</HintPath>
|
||||||
@@ -48,32 +195,63 @@
|
|||||||
<Reference Include="Microsoft.Owin.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.Owin.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Microsoft.Owin.Hosting.4.0.0\lib\net451\Microsoft.Owin.Hosting.dll</HintPath>
|
<HintPath>..\..\packages\Microsoft.Owin.Hosting.4.0.0\lib\net451\Microsoft.Owin.Hosting.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="MimeKitLite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\..\packages\MimeKitLite.2.0.7\lib\net45\MimeKitLite.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
<HintPath>..\..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="RestEase, Version=1.4.4.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="RestEase, Version=1.4.7.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\RestEase.1.4.4\lib\net45\RestEase.dll</HintPath>
|
<HintPath>..\..\packages\RestEase.1.4.7\lib\net45\RestEase.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimMetrics.Net, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="SimMetrics.Net, Version=1.0.5.0, Culture=neutral, PublicKeyToken=c58dc06d59f3391b, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\SimMetrics.Net.1.0.4\lib\net45\SimMetrics.Net.dll</HintPath>
|
<HintPath>..\..\packages\SimMetrics.Net.1.0.5\lib\net45\SimMetrics.Net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Net.Http, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\System.Net.Http.4.3.3\lib\net46\System.Net.Http.dll</HintPath>
|
<HintPath>..\..\packages\System.Diagnostics.DiagnosticSource.4.5.0\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.IO.Pipelines, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.IO.Pipelines.4.5.2\lib\netstandard2.0\System.IO.Pipelines.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Linq.Dynamic.Core, Version=1.0.9.0, Culture=neutral, PublicKeyToken=0f07ec44de6ac832, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Linq.Dynamic.Core.1.0.9\lib\net46\System.Linq.Dynamic.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Memory.4.5.1\lib\netstandard2.0\System.Memory.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Net.Http.Formatting, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="System.Net.Http.Formatting, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.4\lib\net45\System.Net.Http.Formatting.dll</HintPath>
|
<HintPath>..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.4\lib\net45\System.Net.Http.Formatting.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Net.Http.WebRequest" />
|
<Reference Include="System.Net.Http.WebRequest" />
|
||||||
<Reference Include="System.Numerics" />
|
<Reference Include="System.Numerics" />
|
||||||
|
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Reflection.Metadata.1.6.0\lib\netstandard2.0\System.Reflection.Metadata.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security" />
|
||||||
<Reference Include="System.Security.Cryptography.Algorithms, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Security.Cryptography.Algorithms, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll</HintPath>
|
<HintPath>..\..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Security.Cryptography.Cng, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Security.Cryptography.Cng.4.5.0\lib\net461\System.Security.Cryptography.Cng.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath>
|
<HintPath>..\..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -83,6 +261,15 @@
|
|||||||
<Reference Include="System.Security.Cryptography.X509Certificates, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.Security.Cryptography.X509Certificates, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll</HintPath>
|
<HintPath>..\..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Security.Principal.Windows, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Security.Principal.Windows.4.5.1\lib\net461\System.Security.Principal.Windows.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Text.Encodings.Web, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Text.Encodings.Web.4.5.0\lib\netstandard2.0\System.Text.Encodings.Web.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\..\packages\System.Threading.Tasks.Extensions.4.5.1\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System.Web" />
|
<Reference Include="System.Web" />
|
||||||
<Reference Include="System.Web.Http, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="System.Web.Http, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.4\lib\net45\System.Web.Http.dll</HintPath>
|
<HintPath>..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.4\lib\net45\System.Web.Http.dll</HintPath>
|
||||||
@@ -92,14 +279,14 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="WireMock.Net, Version=1.0.3.6, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="WireMock.Net, Version=1.0.4.20, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\WireMock.Net.1.0.3.6\lib\net46\WireMock.Net.dll</HintPath>
|
<HintPath>..\..\packages\WireMock.Net.1.0.4.20\lib\net461\WireMock.Net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="WireMock.Net.StandAlone, Version=1.0.3.6, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="WireMock.Net.StandAlone, Version=1.0.4.20, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\WireMock.Net.StandAlone.1.0.3.6\lib\net46\WireMock.Net.StandAlone.dll</HintPath>
|
<HintPath>..\..\packages\WireMock.Net.StandAlone.1.0.4.20\lib\net46\WireMock.Net.StandAlone.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="XPath2, Version=1.0.5.1, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="XPath2, Version=1.0.7.0, Culture=neutral, PublicKeyToken=463c6d7fb740c7e5, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\XPath2.1.0.5.1\lib\net40\XPath2.dll</HintPath>
|
<HintPath>..\..\packages\XPath2.1.0.6.1\lib\net40\XPath2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -107,8 +294,20 @@
|
|||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config">
|
||||||
<None Include="packages.config" />
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
|
<None Include="packages.config">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Error Condition="!Exists('..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props'))" />
|
||||||
|
<Error Condition="!Exists('..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets'))" />
|
||||||
|
</Target>
|
||||||
|
<Import Project="..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('..\..\packages\Microsoft.Extensions.Configuration.UserSecrets.2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets')" />
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,23 +1,84 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Handlebars.Net" version="1.9.0" targetFramework="net461" />
|
<package id="Handlebars.Net" version="1.9.5" targetFramework="net461" />
|
||||||
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.4" targetFramework="net461" />
|
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.4" targetFramework="net461" />
|
||||||
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.4" targetFramework="net461" />
|
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.4" targetFramework="net461" />
|
||||||
<package id="Microsoft.AspNet.WebApi.Owin" version="5.2.4" targetFramework="net461" />
|
<package id="Microsoft.AspNet.WebApi.Owin" version="5.2.4" targetFramework="net461" />
|
||||||
<package id="Microsoft.AspNet.WebApi.OwinSelfHost" version="5.2.4" targetFramework="net461" />
|
<package id="Microsoft.AspNet.WebApi.OwinSelfHost" version="5.2.4" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore" version="2.1.4" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Authentication.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Authentication.Core" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Connections.Abstractions" version="2.1.3" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Diagnostics" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Diagnostics.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.HostFiltering" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Hosting" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Hosting.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Hosting.Server.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Http" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Http.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Http.Extensions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Http.Features" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.HttpOverrides" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Routing" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Routing.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Server.IISIntegration" version="2.1.2" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Server.Kestrel" version="2.1.3" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Server.Kestrel.Core" version="2.1.3" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Server.Kestrel.Https" version="2.1.3" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions" version="2.1.3" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets" version="2.1.3" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.AspNetCore.WebUtilities" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration.Binder" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration.CommandLine" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration.EnvironmentVariables" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration.FileExtensions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration.Json" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Configuration.UserSecrets" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.DependencyInjection" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.FileProviders.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.FileProviders.Physical" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.FileSystemGlobbing" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Hosting.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Logging" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Logging.Abstractions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Logging.Configuration" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Logging.Console" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Logging.Debug" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.ObjectPool" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Options" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Options.ConfigurationExtensions" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Extensions.Primitives" version="2.1.1" targetFramework="net461" />
|
||||||
|
<package id="Microsoft.Net.Http.Headers" version="2.1.1" targetFramework="net461" />
|
||||||
<package id="Microsoft.Owin" version="4.0.0" targetFramework="net461" />
|
<package id="Microsoft.Owin" version="4.0.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.Owin.Host.HttpListener" version="4.0.0" targetFramework="net461" />
|
<package id="Microsoft.Owin.Host.HttpListener" version="4.0.0" targetFramework="net461" />
|
||||||
<package id="Microsoft.Owin.Hosting" version="4.0.0" targetFramework="net461" />
|
<package id="Microsoft.Owin.Hosting" version="4.0.0" targetFramework="net461" />
|
||||||
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net461" />
|
<package id="MimeKitLite" version="2.0.7" targetFramework="net461" />
|
||||||
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
||||||
<package id="Owin" version="1.0" targetFramework="net461" />
|
<package id="Owin" version="1.0" targetFramework="net461" />
|
||||||
<package id="RestEase" version="1.4.4" targetFramework="net461" />
|
<package id="RestEase" version="1.4.7" targetFramework="net461" />
|
||||||
<package id="SimMetrics.Net" version="1.0.4" targetFramework="net461" />
|
<package id="SimMetrics.Net" version="1.0.5" targetFramework="net461" />
|
||||||
<package id="System.Net.Http" version="4.3.3" targetFramework="net461" />
|
<package id="System.Buffers" version="4.5.0" targetFramework="net461" />
|
||||||
|
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net461" />
|
||||||
|
<package id="System.Diagnostics.DiagnosticSource" version="4.5.0" targetFramework="net461" />
|
||||||
|
<package id="System.IO.Pipelines" version="4.5.2" targetFramework="net461" />
|
||||||
|
<package id="System.Linq.Dynamic.Core" version="1.0.9" targetFramework="net461" />
|
||||||
|
<package id="System.Memory" version="4.5.1" targetFramework="net461" />
|
||||||
|
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net461" />
|
||||||
|
<package id="System.Reflection.Metadata" version="1.6.0" targetFramework="net461" />
|
||||||
|
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net461" />
|
||||||
<package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net461" />
|
<package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net461" />
|
||||||
|
<package id="System.Security.Cryptography.Cng" version="4.5.0" targetFramework="net461" />
|
||||||
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net461" />
|
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net461" />
|
||||||
<package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net461" />
|
<package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net461" />
|
||||||
<package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net461" />
|
<package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net461" />
|
||||||
<package id="WireMock.Net" version="1.0.3.6" targetFramework="net461" />
|
<package id="System.Security.Principal.Windows" version="4.5.1" targetFramework="net461" />
|
||||||
<package id="WireMock.Net.StandAlone" version="1.0.3.6" targetFramework="net461" />
|
<package id="System.Text.Encodings.Web" version="4.5.0" targetFramework="net461" />
|
||||||
<package id="XPath2" version="1.0.5.1" targetFramework="net461" />
|
<package id="System.Threading.Tasks.Extensions" version="4.5.1" targetFramework="net461" />
|
||||||
|
<package id="WireMock.Net" version="1.0.4.20" targetFramework="net461" />
|
||||||
|
<package id="WireMock.Net.StandAlone" version="1.0.4.20" targetFramework="net461" />
|
||||||
|
<package id="XPath2" version="1.0.6.1" targetFramework="net461" />
|
||||||
</packages>
|
</packages>
|
||||||
32
src/WireMock.Net.StandAlone/CommandLineArguments.cs
Normal file
32
src/WireMock.Net.StandAlone/CommandLineArguments.cs
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
using CommandLineParser.Arguments;
|
||||||
|
|
||||||
|
namespace WireMock.Net.StandAlone
|
||||||
|
{
|
||||||
|
public class CommandLineArguments
|
||||||
|
{
|
||||||
|
[ValueArgument(typeof(bool), "StartAdminInterface", DefaultValue = true, Description = "Start the AdminInterface")]
|
||||||
|
public bool StartAdminInterface { get; set; }
|
||||||
|
|
||||||
|
[ValueArgument(typeof(bool), "ReadStaticMappings", DefaultValue = false, Description = "Read StaticMappings")]
|
||||||
|
public bool ReadStaticMappings { get; set; }
|
||||||
|
|
||||||
|
[ValueArgument(typeof(bool), 'w', "WatchStaticMappings", DefaultValue = false, Description = "Watch the static mapping files + folder for changes when running.")]
|
||||||
|
public bool WatchStaticMappings { get; set; }
|
||||||
|
|
||||||
|
[ValueArgument(typeof(bool), 'm', "AllowPartialMapping", DefaultValue = false, Description = "Allow PartialMapping")]
|
||||||
|
public bool AllowPartialMapping { get; set; }
|
||||||
|
|
||||||
|
[ValueArgument(typeof(string), 'u', "AdminUsername", Description = "The username needed for __admin access.")]
|
||||||
|
public string AdminUsername { get; set; }
|
||||||
|
|
||||||
|
[ValueArgument(typeof(string), 'p', "AdminPassword", Description = "The password needed for __admin access.")]
|
||||||
|
public string AdminPassword { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[BoundedValueArgument(typeof(int), 'o', "MaxRequestLogCount", MinValue = 0, Description = "The Maximum number of RequestLogs to keep")]
|
||||||
|
public int MaxRequestLogCount { get; set; }
|
||||||
|
|
||||||
|
[BoundedValueArgument(typeof(int), 'x', "RequestLogExpirationDuration", MinValue = 0, Description = "The RequestLog Expiration Duration in hours")]
|
||||||
|
public int RequestLogExpirationDuration { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,28 +8,20 @@ namespace WireMock.Net.StandAlone
|
|||||||
internal class SimpleCommandLineParser
|
internal class SimpleCommandLineParser
|
||||||
{
|
{
|
||||||
private const string Sigil = "--";
|
private const string Sigil = "--";
|
||||||
private const string SigilAzureServiceFabric = "'--";
|
|
||||||
|
|
||||||
private enum SigilType
|
|
||||||
{
|
|
||||||
Normal,
|
|
||||||
AzureServiceFabric
|
|
||||||
}
|
|
||||||
|
|
||||||
private IDictionary<string, string[]> Arguments { get; } = new Dictionary<string, string[]>();
|
private IDictionary<string, string[]> Arguments { get; } = new Dictionary<string, string[]>();
|
||||||
|
|
||||||
public void Parse(string[] args)
|
public void Parse(string[] arguments)
|
||||||
{
|
{
|
||||||
SigilType sigil = SigilType.Normal;
|
|
||||||
string currentName = null;
|
string currentName = null;
|
||||||
|
|
||||||
var values = new List<string>();
|
var values = new List<string>();
|
||||||
foreach (string arg in args)
|
|
||||||
|
// Split a single argument on a space character to fix issue (e.g. Azure Service Fabric) when an argument is supplied like "--x abc" or '--x abc'
|
||||||
|
foreach (string arg in arguments.SelectMany(arg => arg.Split(' ')))
|
||||||
{
|
{
|
||||||
if (arg.StartsWith(Sigil))
|
if (arg.StartsWith(Sigil))
|
||||||
{
|
{
|
||||||
sigil = SigilType.Normal;
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(currentName))
|
if (!string.IsNullOrEmpty(currentName))
|
||||||
{
|
{
|
||||||
Arguments[currentName] = values.ToArray();
|
Arguments[currentName] = values.ToArray();
|
||||||
@@ -38,33 +30,13 @@ namespace WireMock.Net.StandAlone
|
|||||||
values.Clear();
|
values.Clear();
|
||||||
currentName = arg.Substring(Sigil.Length);
|
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))
|
else if (string.IsNullOrEmpty(currentName))
|
||||||
{
|
{
|
||||||
Arguments[arg] = new string[0];
|
Arguments[arg] = new string[0];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (sigil == SigilType.Normal)
|
values.Add(arg);
|
||||||
{
|
|
||||||
values.Add(arg);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
values.Add(arg.Substring(0, arg.Length - 1));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,8 +38,9 @@ namespace WireMock.Net.StandAlone
|
|||||||
{
|
{
|
||||||
Check.NotNull(args, nameof(args));
|
Check.NotNull(args, nameof(args));
|
||||||
|
|
||||||
var parser = new SimpleCommandLineParser();
|
var parser = new CommandLineParser.CommandLineParser();
|
||||||
parser.Parse(args);
|
var p = new CommandLineArguments();
|
||||||
|
parser.ExtractArgumentAttributes(p);
|
||||||
|
|
||||||
var settings = new FluentMockServerSettings
|
var settings = new FluentMockServerSettings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
||||||
|
<CodeAnalysisRuleSet>WireMock.Net.StandAlone.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||||
@@ -40,9 +41,18 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="JetBrains.Annotations" Version="10.4.0">
|
<Compile Remove="SimpleCommandLineParser.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="CommandLineArgumentsParser" Version="3.0.19" />
|
||||||
|
<PackageReference Include="JetBrains.Annotations" Version="2018.2.1">
|
||||||
<PrivateAssets>All</PrivateAssets>
|
<PrivateAssets>All</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
<PackageReference Include="SonarAnalyzer.CSharp" Version="7.8.0.7320">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RuleSet Name="SonarQube - wiremock Sonar way" ToolsVersion="15.0">
|
||||||
|
<Include Path="..\..\.sonarlint\wiremockcsharp.ruleset" Action="Default" />
|
||||||
|
</RuleSet>
|
||||||
@@ -2,6 +2,9 @@
|
|||||||
// The .NET Foundation licenses this file to you under the MIT license.
|
// The .NET Foundation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace WireMock.Http
|
namespace WireMock.Http
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -9,6 +12,29 @@ namespace WireMock.Http
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal static class HttpKnownHeaderNames
|
internal static class HttpKnownHeaderNames
|
||||||
{
|
{
|
||||||
|
// https://docs.microsoft.com/en-us/dotnet/api/system.net.webheadercollection.isrestricted
|
||||||
|
private static readonly string[] RestrictedResponseHeaders =
|
||||||
|
{
|
||||||
|
Accept,
|
||||||
|
Connection,
|
||||||
|
ContentLength,
|
||||||
|
ContentType,
|
||||||
|
Date,
|
||||||
|
Expect,
|
||||||
|
Host,
|
||||||
|
IfModifiedSince,
|
||||||
|
Range,
|
||||||
|
Referer,
|
||||||
|
TransferEncoding,
|
||||||
|
UserAgent,
|
||||||
|
ProxyConnection
|
||||||
|
};
|
||||||
|
|
||||||
|
/// <summary>Tests whether the specified HTTP header can be set for the response.</summary>
|
||||||
|
/// <param name="headerName">The header to test.</param>
|
||||||
|
/// <returns>true if the header is restricted; otherwise, false.</returns>
|
||||||
|
public static bool IsRestrictedResponseHeader(string headerName) => RestrictedResponseHeaders.Contains(headerName, StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
public const string Accept = "Accept";
|
public const string Accept = "Accept";
|
||||||
public const string AcceptCharset = "Accept-Charset";
|
public const string AcceptCharset = "Accept-Charset";
|
||||||
public const string AcceptEncoding = "Accept-Encoding";
|
public const string AcceptEncoding = "Accept-Encoding";
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ using Newtonsoft.Json;
|
|||||||
using WireMock.Http;
|
using WireMock.Http;
|
||||||
using WireMock.Util;
|
using WireMock.Util;
|
||||||
#if !USE_ASPNETCORE
|
#if !USE_ASPNETCORE
|
||||||
using System.Net;
|
|
||||||
using Microsoft.Owin;
|
|
||||||
using IResponse = Microsoft.Owin.IOwinResponse;
|
using IResponse = Microsoft.Owin.IOwinResponse;
|
||||||
#else
|
#else
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
@@ -85,16 +83,15 @@ namespace WireMock.Owin.Mappers
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if !USE_ASPNETCORE
|
// Check if this response header can be added (#148 and #227)
|
||||||
// For non-NETSTANDARD, check if this response header can be added (#148)
|
if (!HttpKnownHeaderNames.IsRestrictedResponseHeader(pair.Key))
|
||||||
if (!WebHeaderCollection.IsRestricted(pair.Key, true))
|
|
||||||
{
|
{
|
||||||
|
#if !USE_ASPNETCORE
|
||||||
response.Headers.AppendValues(pair.Key, pair.Value.ToArray());
|
response.Headers.AppendValues(pair.Key, pair.Value.ToArray());
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
// NETSTANDARD can add any header (or so it seems)
|
response.Headers.Append(pair.Key, pair.Value.ToArray());
|
||||||
response.Headers.Append(pair.Key, pair.Value.ToArray());
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,44 +102,49 @@ namespace WireMock.Serialization
|
|||||||
mappingModel.Response.Headers = Map(response.ResponseMessage.Headers);
|
mappingModel.Response.Headers = Map(response.ResponseMessage.Headers);
|
||||||
mappingModel.Response.UseTransformer = response.UseTransformer;
|
mappingModel.Response.UseTransformer = response.UseTransformer;
|
||||||
|
|
||||||
if (response.ResponseMessage.BodyData != null)
|
MapBodyData(response, mappingModel);
|
||||||
{
|
|
||||||
switch (response.ResponseMessage.BodyData?.DetectedBodyType)
|
|
||||||
{
|
|
||||||
case BodyType.String:
|
|
||||||
mappingModel.Response.Body = response.ResponseMessage.BodyData.BodyAsString;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case BodyType.Json:
|
|
||||||
mappingModel.Response.BodyAsJson = response.ResponseMessage.BodyData.BodyAsJson;
|
|
||||||
mappingModel.Response.BodyAsJsonIndented = response.ResponseMessage.BodyData.BodyAsJsonIndented;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case BodyType.Bytes:
|
|
||||||
mappingModel.Response.BodyAsBytes = response.ResponseMessage.BodyData.BodyAsBytes;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case BodyType.File:
|
|
||||||
mappingModel.Response.BodyAsFile = response.ResponseMessage.BodyData.BodyAsFile;
|
|
||||||
mappingModel.Response.BodyAsFileIsCached = response.ResponseMessage.BodyData.BodyAsFileIsCached;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (response.ResponseMessage.BodyData.Encoding != null && response.ResponseMessage.BodyData.Encoding.WebName != "utf-8")
|
|
||||||
{
|
|
||||||
mappingModel.Response.BodyEncoding = new EncodingModel
|
|
||||||
{
|
|
||||||
EncodingName = response.ResponseMessage.BodyData.Encoding.EncodingName,
|
|
||||||
CodePage = response.ResponseMessage.BodyData.Encoding.CodePage,
|
|
||||||
WebName = response.ResponseMessage.BodyData.Encoding.WebName
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return mappingModel;
|
return mappingModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void MapBodyData(Response response, MappingModel mappingModel)
|
||||||
|
{
|
||||||
|
if (response.ResponseMessage.BodyData != null)
|
||||||
|
{
|
||||||
|
switch (response.ResponseMessage.BodyData?.DetectedBodyType)
|
||||||
|
{
|
||||||
|
case BodyType.String:
|
||||||
|
mappingModel.Response.Body = response.ResponseMessage.BodyData.BodyAsString;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case BodyType.Json:
|
||||||
|
mappingModel.Response.BodyAsJson = response.ResponseMessage.BodyData.BodyAsJson;
|
||||||
|
mappingModel.Response.BodyAsJsonIndented = response.ResponseMessage.BodyData.BodyAsJsonIndented;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case BodyType.Bytes:
|
||||||
|
mappingModel.Response.BodyAsBytes = response.ResponseMessage.BodyData.BodyAsBytes;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case BodyType.File:
|
||||||
|
mappingModel.Response.BodyAsFile = response.ResponseMessage.BodyData.BodyAsFile;
|
||||||
|
mappingModel.Response.BodyAsFileIsCached = response.ResponseMessage.BodyData.BodyAsFileIsCached;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (response.ResponseMessage.BodyData.Encoding != null && response.ResponseMessage.BodyData.Encoding.WebName != "utf-8")
|
||||||
|
{
|
||||||
|
mappingModel.Response.BodyEncoding = new EncodingModel
|
||||||
|
{
|
||||||
|
EncodingName = response.ResponseMessage.BodyData.Encoding.EncodingName,
|
||||||
|
CodePage = response.ResponseMessage.BodyData.Encoding.CodePage,
|
||||||
|
WebName = response.ResponseMessage.BodyData.Encoding.WebName
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static IDictionary<string, object> Map(IDictionary<string, WireMockList<string>> dictionary)
|
private static IDictionary<string, object> Map(IDictionary<string, WireMockList<string>> dictionary)
|
||||||
{
|
{
|
||||||
if (dictionary == null || dictionary.Count == 0)
|
if (dictionary == null || dictionary.Count == 0)
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
namespace WireMock.Transformers
|
using HandlebarsDotNet;
|
||||||
|
|
||||||
|
namespace WireMock.Transformers
|
||||||
{
|
{
|
||||||
internal static class HandlebarsHelpers
|
internal static class HandlebarsHelpers
|
||||||
{
|
{
|
||||||
public static void Register()
|
public static void Register(IHandlebars handlebarsContext)
|
||||||
{
|
{
|
||||||
HandleBarsRegex.Register();
|
HandleBarsRegex.Register(handlebarsContext);
|
||||||
|
|
||||||
HandleBarsJsonPath.Register();
|
HandleBarsJsonPath.Register(handlebarsContext);
|
||||||
|
|
||||||
HandleBarsLinq.Register();
|
HandleBarsLinq.Register(handlebarsContext);
|
||||||
|
|
||||||
|
HandleBarsRandom.Register(handlebarsContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,15 +9,15 @@ namespace WireMock.Transformers
|
|||||||
{
|
{
|
||||||
internal static class HandleBarsJsonPath
|
internal static class HandleBarsJsonPath
|
||||||
{
|
{
|
||||||
public static void Register()
|
public static void Register(IHandlebars handlebarsContext)
|
||||||
{
|
{
|
||||||
Handlebars.RegisterHelper("JsonPath.SelectToken", (writer, context, arguments) =>
|
handlebarsContext.RegisterHelper("JsonPath.SelectToken", (writer, context, arguments) =>
|
||||||
{
|
{
|
||||||
(JObject valueToProcess, string jsonpath) = ParseArguments(arguments);
|
(JObject valueToProcess, string jsonPath) = ParseArguments(arguments);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var result = valueToProcess.SelectToken(jsonpath);
|
var result = valueToProcess.SelectToken(jsonPath);
|
||||||
writer.WriteSafeString(result);
|
writer.WriteSafeString(result);
|
||||||
}
|
}
|
||||||
catch (JsonException)
|
catch (JsonException)
|
||||||
@@ -26,13 +26,13 @@ namespace WireMock.Transformers
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Handlebars.RegisterHelper("JsonPath.SelectTokens", (writer, options, context, arguments) =>
|
handlebarsContext.RegisterHelper("JsonPath.SelectTokens", (writer, options, context, arguments) =>
|
||||||
{
|
{
|
||||||
(JObject valueToProcess, string jsonpath) = ParseArguments(arguments);
|
(JObject valueToProcess, string jsonPath) = ParseArguments(arguments);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var values = valueToProcess.SelectTokens(jsonpath);
|
var values = valueToProcess.SelectTokens(jsonPath);
|
||||||
if (values != null)
|
if (values != null)
|
||||||
{
|
{
|
||||||
options.Template(writer, values.ToDictionary(value => value.Path, value => value));
|
options.Template(writer, values.ToDictionary(value => value.Path, value => value));
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ namespace WireMock.Transformers
|
|||||||
{
|
{
|
||||||
internal static class HandleBarsLinq
|
internal static class HandleBarsLinq
|
||||||
{
|
{
|
||||||
public static void Register()
|
public static void Register(IHandlebars handlebarsContext)
|
||||||
{
|
{
|
||||||
Handlebars.RegisterHelper("Linq", (writer, context, arguments) =>
|
handlebarsContext.RegisterHelper("Linq", (writer, context, arguments) =>
|
||||||
{
|
{
|
||||||
(JToken valueToProcess, string linqStatement) = ParseArguments(arguments);
|
(JToken valueToProcess, string linqStatement) = ParseArguments(arguments);
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ namespace WireMock.Transformers
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Handlebars.RegisterHelper("Linq", (writer, options, context, arguments) =>
|
handlebarsContext.RegisterHelper("Linq", (writer, options, context, arguments) =>
|
||||||
{
|
{
|
||||||
(JToken valueToProcess, string linqStatement) = ParseArguments(arguments);
|
(JToken valueToProcess, string linqStatement) = ParseArguments(arguments);
|
||||||
|
|
||||||
|
|||||||
113
src/WireMock.Net/Transformers/HandleBarsRandom.cs
Normal file
113
src/WireMock.Net/Transformers/HandleBarsRandom.cs
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.Linq;
|
||||||
|
using HandlebarsDotNet;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using RandomDataGenerator.FieldOptions;
|
||||||
|
using RandomDataGenerator.Randomizers;
|
||||||
|
using WireMock.Validation;
|
||||||
|
|
||||||
|
namespace WireMock.Transformers
|
||||||
|
{
|
||||||
|
internal static class HandleBarsRandom
|
||||||
|
{
|
||||||
|
public static void Register(IHandlebars handlebarsContext)
|
||||||
|
{
|
||||||
|
handlebarsContext.RegisterHelper("Random", (writer, context, arguments) =>
|
||||||
|
{
|
||||||
|
object value = GetRandomValue(arguments);
|
||||||
|
writer.Write(value);
|
||||||
|
});
|
||||||
|
|
||||||
|
handlebarsContext.RegisterHelper("Random", (writer, options, context, arguments) =>
|
||||||
|
{
|
||||||
|
object value = GetRandomValue(arguments);
|
||||||
|
options.Template(writer, value);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private static object GetRandomValue(object[] arguments)
|
||||||
|
{
|
||||||
|
var fieldOptions = GetFieldOptionsFromArguments(arguments);
|
||||||
|
dynamic randomizer = RandomizerFactory.GetRandomizerAsDynamic(fieldOptions);
|
||||||
|
|
||||||
|
// Format DateTime as ISO 8601
|
||||||
|
if (fieldOptions is IFieldOptionsDateTime)
|
||||||
|
{
|
||||||
|
DateTime? date = randomizer.Generate();
|
||||||
|
return date?.ToString("s", CultureInfo.InvariantCulture);
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the IFieldOptionsGuid defines Uppercase, use the 'GenerateAsString' method.
|
||||||
|
if (fieldOptions is IFieldOptionsGuid fieldOptionsGuid)
|
||||||
|
{
|
||||||
|
return fieldOptionsGuid.Uppercase ? randomizer.GenerateAsString() : randomizer.Generate();
|
||||||
|
}
|
||||||
|
|
||||||
|
return randomizer.Generate();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static FieldOptionsAbstract GetFieldOptionsFromArguments(object[] arguments)
|
||||||
|
{
|
||||||
|
Check.Condition(arguments, args => args.Length > 0, nameof(arguments));
|
||||||
|
Check.NotNull(arguments[0], "arguments[0]");
|
||||||
|
|
||||||
|
var properties = (Dictionary<string, object>)arguments[0];
|
||||||
|
var newProperties = new Dictionary<string, object>();
|
||||||
|
|
||||||
|
foreach (KeyValuePair<string, object> property in properties.Where(p => p.Key != "Type"))
|
||||||
|
{
|
||||||
|
if (property.Value.GetType().Name == "UndefinedBindingResult")
|
||||||
|
{
|
||||||
|
if (TryParseSpecialValue(property.Value, out object parsedValue))
|
||||||
|
{
|
||||||
|
newProperties.Add(property.Key, parsedValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newProperties.Add(property.Key, property.Value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return FieldOptionsFactory.GetFieldOptions((string)properties["Type"], newProperties);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// In case it's an UndefinedBindingResult, just try to convert the value using Json
|
||||||
|
/// This logic adds functionality like parsing an array
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">The property value</param>
|
||||||
|
/// <param name="parsedValue">The parsed value</param>
|
||||||
|
/// <returns>true in case parsing is ok, else false</returns>
|
||||||
|
private static bool TryParseSpecialValue(object value, out object parsedValue)
|
||||||
|
{
|
||||||
|
parsedValue = null;
|
||||||
|
string propertyValueAsString = value.ToString();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
JToken jToken = JToken.Parse(propertyValueAsString);
|
||||||
|
switch (jToken)
|
||||||
|
{
|
||||||
|
case JArray jTokenArray:
|
||||||
|
parsedValue = jTokenArray.ToObject<string[]>().ToList(); // Just convert to a String List to enable Random StringList
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return jToken.ToObject<dynamic>();
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (JsonException)
|
||||||
|
{
|
||||||
|
// Ignore and don't add this value
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,9 +9,9 @@ namespace WireMock.Transformers
|
|||||||
{
|
{
|
||||||
internal static class HandleBarsRegex
|
internal static class HandleBarsRegex
|
||||||
{
|
{
|
||||||
public static void Register()
|
public static void Register(IHandlebars handlebarsContext)
|
||||||
{
|
{
|
||||||
Handlebars.RegisterHelper("Regex.Match", (writer, context, arguments) =>
|
handlebarsContext.RegisterHelper("Regex.Match", (writer, context, arguments) =>
|
||||||
{
|
{
|
||||||
(string stringToProcess, string regexPattern, object defaultValue) = ParseArguments(arguments);
|
(string stringToProcess, string regexPattern, object defaultValue) = ParseArguments(arguments);
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ namespace WireMock.Transformers
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Handlebars.RegisterHelper("Regex.Match", (writer, options, context, arguments) =>
|
handlebarsContext.RegisterHelper("Regex.Match", (writer, options, context, arguments) =>
|
||||||
{
|
{
|
||||||
(string stringToProcess, string regexPattern, object defaultValue) = ParseArguments(arguments);
|
(string stringToProcess, string regexPattern, object defaultValue) = ParseArguments(arguments);
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,16 @@ namespace WireMock.Transformers
|
|||||||
{
|
{
|
||||||
internal static class ResponseMessageTransformer
|
internal static class ResponseMessageTransformer
|
||||||
{
|
{
|
||||||
|
private static readonly HandlebarsConfiguration HandlebarsConfiguration = new HandlebarsConfiguration
|
||||||
|
{
|
||||||
|
UnresolvedBindingFormatter = "{0}"
|
||||||
|
};
|
||||||
|
|
||||||
|
private static readonly IHandlebars HandlebarsContext = Handlebars.Create(HandlebarsConfiguration);
|
||||||
|
|
||||||
static ResponseMessageTransformer()
|
static ResponseMessageTransformer()
|
||||||
{
|
{
|
||||||
HandlebarsHelpers.Register();
|
HandlebarsHelpers.Register(HandlebarsContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ResponseMessage Transform(RequestMessage requestMessage, ResponseMessage original)
|
public static ResponseMessage Transform(RequestMessage requestMessage, ResponseMessage original)
|
||||||
@@ -40,9 +47,9 @@ namespace WireMock.Transformers
|
|||||||
var newHeaders = new Dictionary<string, WireMockList<string>>();
|
var newHeaders = new Dictionary<string, WireMockList<string>>();
|
||||||
foreach (var header in original.Headers)
|
foreach (var header in original.Headers)
|
||||||
{
|
{
|
||||||
var templateHeaderKey = Handlebars.Compile(header.Key);
|
var templateHeaderKey = HandlebarsContext.Compile(header.Key);
|
||||||
var templateHeaderValues = header.Value
|
var templateHeaderValues = header.Value
|
||||||
.Select(Handlebars.Compile)
|
.Select(HandlebarsContext.Compile)
|
||||||
.Select(func => func(template))
|
.Select(func => func(template))
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
@@ -109,7 +116,7 @@ namespace WireMock.Transformers
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var templateForStringValue = Handlebars.Compile(stringValue);
|
var templateForStringValue = HandlebarsContext.Compile(stringValue);
|
||||||
string transformedString = templateForStringValue(template);
|
string transformedString = templateForStringValue(template);
|
||||||
if (!string.Equals(stringValue, transformedString))
|
if (!string.Equals(stringValue, transformedString))
|
||||||
{
|
{
|
||||||
@@ -132,7 +139,7 @@ namespace WireMock.Transformers
|
|||||||
|
|
||||||
private static void TransformBodyAsString(object template, ResponseMessage original, ResponseMessage responseMessage)
|
private static void TransformBodyAsString(object template, ResponseMessage original, ResponseMessage responseMessage)
|
||||||
{
|
{
|
||||||
var templateBody = Handlebars.Compile(original.BodyData.BodyAsString);
|
var templateBody = HandlebarsContext.Compile(original.BodyData.BodyAsString);
|
||||||
|
|
||||||
responseMessage.BodyData = new BodyData
|
responseMessage.BodyData = new BodyData
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
||||||
|
<CodeAnalysisRuleSet>WireMock.Net.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
||||||
@@ -45,14 +46,31 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="JetBrains.Annotations" Version="11.1.0">
|
<PackageReference Include="JetBrains.Annotations" Version="2018.2.1">
|
||||||
<PrivateAssets>All</PrivateAssets>
|
<PrivateAssets>All</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||||
<PackageReference Include="SimMetrics.Net" Version="1.0.4" />
|
<PackageReference Include="SimMetrics.Net" Version="1.0.5" />
|
||||||
<PackageReference Include="RestEase" Version="1.4.4" />
|
<PackageReference Include="RestEase" Version="1.4.7" />
|
||||||
<PackageReference Include="MimeKitLite" Version="2.0.1" />
|
<PackageReference Include="MimeKitLite" Version="2.0.7" />
|
||||||
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.8.18" />
|
<PackageReference Include="SonarAnalyzer.CSharp" Version="7.8.0.7320">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.9" />
|
||||||
|
<PackageReference Include="RandomDataGenerator.Net" Version="1.0.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
|
||||||
|
<PackageReference Include="Handlebars.Net" Version="1.9.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition=" '$(TargetFramework)' != 'net451' ">
|
||||||
|
<PackageReference Include="Handlebars.Net" Version="1.9.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition=" '$(TargetFramework)' != 'netstandard1.3' ">
|
||||||
|
<PackageReference Include="XPath2.Extensions" Version="1.0.6.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
|
||||||
@@ -61,9 +79,6 @@
|
|||||||
|
|
||||||
<PackageReference Include="Microsoft.AspNet.WebApi.OwinSelfHost" Version="5.2.6" />
|
<PackageReference Include="Microsoft.AspNet.WebApi.OwinSelfHost" Version="5.2.6" />
|
||||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||||
|
|
||||||
<PackageReference Include="Handlebars.Net" Version="1.9.0" />
|
|
||||||
<PackageReference Include="XPath2" Version="1.0.5.1" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
|
||||||
@@ -72,9 +87,6 @@
|
|||||||
|
|
||||||
<PackageReference Include="Microsoft.AspNet.WebApi.OwinSelfHost" Version="5.2.6" />
|
<PackageReference Include="Microsoft.AspNet.WebApi.OwinSelfHost" Version="5.2.6" />
|
||||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||||
|
|
||||||
<PackageReference Include="Handlebars.Net" Version="1.9.5" />
|
|
||||||
<PackageReference Include="XPath2" Version="1.0.5.1" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
|
||||||
@@ -84,16 +96,10 @@
|
|||||||
<PackageReference Include="Microsoft.Owin.Hosting" Version="4.0.0" />
|
<PackageReference Include="Microsoft.Owin.Hosting" Version="4.0.0" />
|
||||||
<PackageReference Include="System.Net.Http" Version="4.3.3" />
|
<PackageReference Include="System.Net.Http" Version="4.3.3" />
|
||||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||||
|
|
||||||
<PackageReference Include="Handlebars.Net" Version="1.9.5" />
|
|
||||||
<PackageReference Include="XPath2" Version="1.0.5.1" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
|
||||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.2" />
|
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.2" />
|
||||||
|
|
||||||
<PackageReference Include="Handlebars.Net" Version="1.9.5" />
|
|
||||||
<PackageReference Include="XPath2" Version="1.0.5.1" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
|
||||||
@@ -102,14 +108,9 @@
|
|||||||
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
|
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
|
||||||
<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.3.0" />
|
<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.3.0" />
|
||||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||||
|
|
||||||
<PackageReference Include="Handlebars.Net" Version="1.9.5" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
|
||||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.2" />
|
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.4" />
|
||||||
|
|
||||||
<PackageReference Include="Handlebars.Net" Version="1.9.5" />
|
|
||||||
<PackageReference Include="XPath2" Version="1.0.5.1" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
4
src/WireMock.Net/WireMock.Net.ruleset
Normal file
4
src/WireMock.Net/WireMock.Net.ruleset
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RuleSet Name="SonarQube - wiremock Sonar way" ToolsVersion="15.0">
|
||||||
|
<Include Path="..\..\.sonarlint\wiremockcsharp.ruleset" Action="Default" />
|
||||||
|
</RuleSet>
|
||||||
@@ -16,7 +16,6 @@ namespace WireMock.Net.Tests
|
|||||||
{
|
{
|
||||||
public class FluentMockServerProxyTests
|
public class FluentMockServerProxyTests
|
||||||
{
|
{
|
||||||
#if NET452
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task FluentMockServer_Proxy_Should_proxy_responses()
|
public async Task FluentMockServer_Proxy_Should_proxy_responses()
|
||||||
{
|
{
|
||||||
@@ -63,7 +62,7 @@ namespace WireMock.Net.Tests
|
|||||||
};
|
};
|
||||||
var server = FluentMockServer.Start(settings);
|
var server = FluentMockServer.Start(settings);
|
||||||
|
|
||||||
// when
|
// Act
|
||||||
var requestMessage = new HttpRequestMessage
|
var requestMessage = new HttpRequestMessage
|
||||||
{
|
{
|
||||||
Method = HttpMethod.Post,
|
Method = HttpMethod.Post,
|
||||||
@@ -74,7 +73,7 @@ namespace WireMock.Net.Tests
|
|||||||
requestMessage.Content.Headers.Add("bbb", "test");
|
requestMessage.Content.Headers.Add("bbb", "test");
|
||||||
await new HttpClient().SendAsync(requestMessage);
|
await new HttpClient().SendAsync(requestMessage);
|
||||||
|
|
||||||
// then
|
// Assert
|
||||||
var receivedRequest = serverForProxyForwarding.LogEntries.First().RequestMessage;
|
var receivedRequest = serverForProxyForwarding.LogEntries.First().RequestMessage;
|
||||||
Check.That(receivedRequest.BodyData.BodyAsString).IsEqualTo("stringContent");
|
Check.That(receivedRequest.BodyData.BodyAsString).IsEqualTo("stringContent");
|
||||||
Check.That(receivedRequest.Headers).ContainsKey("Content-Type");
|
Check.That(receivedRequest.Headers).ContainsKey("Content-Type");
|
||||||
@@ -92,7 +91,7 @@ namespace WireMock.Net.Tests
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task FluentMockServer_Proxy_Should_exclude_blacklisted_content_header_in_mapping()
|
public async Task FluentMockServer_Proxy_Should_exclude_blacklisted_content_header_in_mapping()
|
||||||
{
|
{
|
||||||
// given
|
// Assign
|
||||||
string path = $"/prx_{Guid.NewGuid().ToString()}";
|
string path = $"/prx_{Guid.NewGuid().ToString()}";
|
||||||
var serverForProxyForwarding = FluentMockServer.Start();
|
var serverForProxyForwarding = FluentMockServer.Start();
|
||||||
serverForProxyForwarding
|
serverForProxyForwarding
|
||||||
@@ -111,7 +110,7 @@ namespace WireMock.Net.Tests
|
|||||||
};
|
};
|
||||||
var server = FluentMockServer.Start(settings);
|
var server = FluentMockServer.Start(settings);
|
||||||
|
|
||||||
// when
|
// Act
|
||||||
var requestMessage = new HttpRequestMessage
|
var requestMessage = new HttpRequestMessage
|
||||||
{
|
{
|
||||||
Method = HttpMethod.Post,
|
Method = HttpMethod.Post,
|
||||||
@@ -122,7 +121,7 @@ namespace WireMock.Net.Tests
|
|||||||
requestMessage.Headers.Add("ok", "ok-value");
|
requestMessage.Headers.Add("ok", "ok-value");
|
||||||
await new HttpClient().SendAsync(requestMessage);
|
await new HttpClient().SendAsync(requestMessage);
|
||||||
|
|
||||||
// then
|
// Assert
|
||||||
var receivedRequest = serverForProxyForwarding.LogEntries.First().RequestMessage;
|
var receivedRequest = serverForProxyForwarding.LogEntries.First().RequestMessage;
|
||||||
Check.That(receivedRequest.Headers).Not.ContainsKey("bbb");
|
Check.That(receivedRequest.Headers).Not.ContainsKey("bbb");
|
||||||
Check.That(receivedRequest.Headers).ContainsKey("ok");
|
Check.That(receivedRequest.Headers).ContainsKey("ok");
|
||||||
@@ -337,6 +336,5 @@ namespace WireMock.Net.Tests
|
|||||||
string content2 = await response2.Content.ReadAsStringAsync();
|
string content2 = await response2.Content.ReadAsStringAsync();
|
||||||
Check.That(content2).IsEqualTo("[]");
|
Check.That(content2).IsEqualTo("[]");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17,15 +17,15 @@ namespace WireMock.Net.Tests
|
|||||||
public async Task FluentMockServer_ProxyAndRecordSettings_ShouldProxy()
|
public async Task FluentMockServer_ProxyAndRecordSettings_ShouldProxy()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var server = FluentMockServer.Start();
|
var serverAsProxy = FluentMockServer.Start();
|
||||||
|
serverAsProxy.Given(Request.Create().UsingPost())
|
||||||
server.Given(Request.Create().UsingPost().WithHeader("prx", "1"))
|
|
||||||
.RespondWith(Response.Create().WithProxy(server.Urls[0]));
|
|
||||||
|
|
||||||
server.Given(Request.Create().UsingPost())
|
|
||||||
.RespondWith(Response.Create().WithStatusCode(201).WithBodyAsJson(new { p = 42 }).WithHeader("Content-Type", "application/json"));
|
.RespondWith(Response.Create().WithStatusCode(201).WithBodyAsJson(new { p = 42 }).WithHeader("Content-Type", "application/json"));
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
|
var server = FluentMockServer.Start();
|
||||||
|
server.Given(Request.Create().UsingPost().WithHeader("prx", "1"))
|
||||||
|
.RespondWith(Response.Create().WithProxy(serverAsProxy.Urls[0]));
|
||||||
|
|
||||||
var request = new HttpRequestMessage
|
var request = new HttpRequestMessage
|
||||||
{
|
{
|
||||||
Method = HttpMethod.Post,
|
Method = HttpMethod.Post,
|
||||||
@@ -41,6 +41,9 @@ namespace WireMock.Net.Tests
|
|||||||
Check.That(content).IsEqualTo("{\"p\":42}");
|
Check.That(content).IsEqualTo("{\"p\":42}");
|
||||||
Check.That(response.StatusCode).IsEqualTo(HttpStatusCode.Created);
|
Check.That(response.StatusCode).IsEqualTo(HttpStatusCode.Created);
|
||||||
Check.That(response.Content.Headers.GetValues("Content-Type").First()).IsEqualTo("application/json");
|
Check.That(response.Content.Headers.GetValues("Content-Type").First()).IsEqualTo("application/json");
|
||||||
|
|
||||||
|
server.Dispose();
|
||||||
|
serverAsProxy.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -154,25 +154,23 @@ namespace WireMock.Net.Tests
|
|||||||
// Check.That(result).Contains("google");
|
// Check.That(result).Contains("google");
|
||||||
//}
|
//}
|
||||||
|
|
||||||
#if !NET452
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task FluentMockServer_Should_not_exclude_restrictedResponseHeader_for_ASPNETCORE()
|
public async Task FluentMockServer_Should_exclude_restrictedResponseHeader()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
string path = $"/foo_{Guid.NewGuid()}";
|
string path = $"/foo_{Guid.NewGuid()}";
|
||||||
var _server = FluentMockServer.Start();
|
var server = FluentMockServer.Start();
|
||||||
|
|
||||||
_server
|
server
|
||||||
.Given(Request.Create().WithPath(path).UsingGet())
|
.Given(Request.Create().WithPath(path).UsingGet())
|
||||||
.RespondWith(Response.Create().WithHeader("Keep-Alive", "k").WithHeader("test", "t"));
|
.RespondWith(Response.Create().WithHeader("Transfer-Encoding", "chunked").WithHeader("test", "t"));
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
var response = await new HttpClient().GetAsync("http://localhost:" + _server.Ports[0] + path);
|
var response = await new HttpClient().GetAsync("http://localhost:" + server.Ports[0] + path);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Check.That(response.Headers.Contains("test")).IsTrue();
|
Check.That(response.Headers.Contains("test")).IsTrue();
|
||||||
Check.That(response.Headers.Contains("Keep-Alive")).IsTrue();
|
Check.That(response.Headers.Contains("Transfer-Encoding")).IsFalse();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using NFluent;
|
||||||
|
using WireMock.Models;
|
||||||
|
using WireMock.ResponseBuilders;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace WireMock.Net.Tests.ResponseBuilders
|
||||||
|
{
|
||||||
|
public class ResponseWithHandlebarsRandomTests
|
||||||
|
{
|
||||||
|
private const string ClientIp = "::1";
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Response_ProvideResponseAsync_Handlebars_Random1()
|
||||||
|
{
|
||||||
|
// Assign
|
||||||
|
var request = new RequestMessage(new UrlDetails("http://localhost:1234"), "GET", ClientIp);
|
||||||
|
|
||||||
|
var response = Response.Create()
|
||||||
|
.WithBodyAsJson(new
|
||||||
|
{
|
||||||
|
Text = "{{Random Type=\"Text\" Min=8 Max=20}}",
|
||||||
|
DateTime = "{{Random Type=\"DateTime\"}}",
|
||||||
|
Integer = "{{Random Type=\"Integer\" Min=1000 Max=1000}}",
|
||||||
|
Long = "{{Random Type=\"Long\" Min=77777777 Max=99999999}}"
|
||||||
|
})
|
||||||
|
.WithTransformer();
|
||||||
|
|
||||||
|
// Act
|
||||||
|
var responseMessage = await response.ProvideResponseAsync(request);
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
JObject j = JObject.FromObject(responseMessage.BodyData.BodyAsJson);
|
||||||
|
Check.That(j["Text"]).IsNotNull();
|
||||||
|
Check.That(j["Integer"].Value<int>()).IsEqualTo(1000);
|
||||||
|
Check.That(j["Long"].Value<int>()).IsStrictlyGreaterThan(77777777).And.IsStrictlyLessThan(99999999);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Response_ProvideResponseAsync_Handlebars_Random1_Guid()
|
||||||
|
{
|
||||||
|
// Assign
|
||||||
|
var request = new RequestMessage(new UrlDetails("http://localhost:1234"), "GET", ClientIp);
|
||||||
|
|
||||||
|
var response = Response.Create()
|
||||||
|
.WithBodyAsJson(new
|
||||||
|
{
|
||||||
|
Guid1 = "{{Random Type=\"Guid\" Uppercase=false}}",
|
||||||
|
Guid2 = "{{Random Type=\"Guid\"}}"
|
||||||
|
})
|
||||||
|
.WithTransformer();
|
||||||
|
|
||||||
|
// Act
|
||||||
|
var responseMessage = await response.ProvideResponseAsync(request);
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
JObject j = JObject.FromObject(responseMessage.BodyData.BodyAsJson);
|
||||||
|
string guid1 = j["Guid1"].Value<string>();
|
||||||
|
Check.That(guid1.ToUpper()).IsNotEqualTo(guid1);
|
||||||
|
string guid2 = j["Guid2"].Value<string>();
|
||||||
|
Check.That(guid2.ToUpper()).IsEqualTo(guid2);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Response_ProvideResponseAsync_Handlebars_Random1_StringList()
|
||||||
|
{
|
||||||
|
// Assign
|
||||||
|
var request = new RequestMessage(new UrlDetails("http://localhost:1234"), "GET", ClientIp);
|
||||||
|
|
||||||
|
var response = Response.Create()
|
||||||
|
.WithBodyAsJson(new
|
||||||
|
{
|
||||||
|
StringValue = "{{Random Type=\"StringList\" Values=[\"a\", \"b\", \"c\"]}}"
|
||||||
|
})
|
||||||
|
.WithTransformer();
|
||||||
|
|
||||||
|
// Act
|
||||||
|
var responseMessage = await response.ProvideResponseAsync(request);
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
JObject j = JObject.FromObject(responseMessage.BodyData.BodyAsJson);
|
||||||
|
string value = j["StringValue"].Value<string>();
|
||||||
|
Check.That(new[] { "a", "b", "c" }.Contains(value)).IsTrue();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Response_ProvideResponseAsync_Handlebars_Random2()
|
||||||
|
{
|
||||||
|
// Assign
|
||||||
|
var request = new RequestMessage(new UrlDetails("http://localhost:1234"), "GET", ClientIp);
|
||||||
|
|
||||||
|
var response = Response.Create()
|
||||||
|
.WithBodyAsJson(new
|
||||||
|
{
|
||||||
|
Integer = "{{#Random Type=\"Integer\" Min=10000000 Max=99999999}}{{this}}{{/Random}}",
|
||||||
|
})
|
||||||
|
.WithTransformer();
|
||||||
|
|
||||||
|
// Act
|
||||||
|
var responseMessage = await response.ProvideResponseAsync(request);
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
JObject j = JObject.FromObject(responseMessage.BodyData.BodyAsJson);
|
||||||
|
Check.That(j["Integer"].Value<int>()).IsStrictlyGreaterThan(10000000).And.IsStrictlyLessThan(99999999);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using NFluent;
|
using NFluent;
|
||||||
using WireMock.Models;
|
using WireMock.Models;
|
||||||
using WireMock.ResponseBuilders;
|
using WireMock.ResponseBuilders;
|
||||||
@@ -12,7 +13,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
|
|||||||
private const string ClientIp = "::1";
|
private const string ClientIp = "::1";
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async void Response_ProvideResponse_Handlebars_RegexMatch()
|
public async Task Response_ProvideResponseAsync_Handlebars_RegexMatch()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var body = new BodyData { BodyAsString = "abc", DetectedBodyType = BodyType.String };
|
var body = new BodyData { BodyAsString = "abc", DetectedBodyType = BodyType.String };
|
||||||
@@ -31,7 +32,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async void Response_ProvideResponse_Handlebars_RegexMatch_NoMatch()
|
public async Task Response_ProvideResponseAsync_Handlebars_RegexMatch_NoMatch()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var body = new BodyData { BodyAsString = "abc", DetectedBodyType = BodyType.String };
|
var body = new BodyData { BodyAsString = "abc", DetectedBodyType = BodyType.String };
|
||||||
@@ -50,7 +51,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async void Response_ProvideResponse_Handlebars_RegexMatch_NoMatch_WithDefaultValue()
|
public async Task Response_ProvideResponseAsync_Handlebars_RegexMatch_NoMatch_WithDefaultValue()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var body = new BodyData { BodyAsString = "abc", DetectedBodyType = BodyType.String };
|
var body = new BodyData { BodyAsString = "abc", DetectedBodyType = BodyType.String };
|
||||||
@@ -69,7 +70,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async void Response_ProvideResponse_Handlebars_RegexMatch2()
|
public async Task Response_ProvideResponseAsync_Handlebars_RegexMatch2()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var body = new BodyData { BodyAsString = "https://localhost:5000/", DetectedBodyType = BodyType.String };
|
var body = new BodyData { BodyAsString = "https://localhost:5000/", DetectedBodyType = BodyType.String };
|
||||||
@@ -88,7 +89,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async void Response_ProvideResponse_Handlebars_RegexMatch2_NoMatch()
|
public async Task Response_ProvideResponseAsync_Handlebars_RegexMatch2_NoMatch()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var body = new BodyData { BodyAsString = "{{\\test", DetectedBodyType = BodyType.String };
|
var body = new BodyData { BodyAsString = "{{\\test", DetectedBodyType = BodyType.String };
|
||||||
@@ -107,7 +108,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async void Response_ProvideResponse_Handlebars_RegexMatch2_NoMatch_WithDefaultValue()
|
public async Task Response_ProvideResponseAsync_Handlebars_RegexMatch2_NoMatch_WithDefaultValue()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var body = new BodyData { BodyAsString = "{{\\test", DetectedBodyType = BodyType.String };
|
var body = new BodyData { BodyAsString = "{{\\test", DetectedBodyType = BodyType.String };
|
||||||
@@ -126,7 +127,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void Response_ProvideResponse_Handlebars_RegexMatch2_Throws()
|
public void Response_ProvideResponseAsync_Handlebars_RegexMatch2_Throws()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var body = new BodyData { BodyAsString = "{{\\test", DetectedBodyType = BodyType.String };
|
var body = new BodyData { BodyAsString = "{{\\test", DetectedBodyType = BodyType.String };
|
||||||
|
|||||||
@@ -31,10 +31,10 @@ namespace WireMock.Net.Tests.StandAlone
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void SimpleCommandLineParser_Parse_ArgumentsWithSingleQuotes()
|
public void SimpleCommandLineParser_Parse_ArgumentsAsCombinedKeyAndValue()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
_parser.Parse(new[] { "'--test1", "one'", "'--test2", "two'", "'--test3", "three'" });
|
_parser.Parse(new[] { "--test1 one", "--test2 two", "--test3 three" });
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
string value1 = _parser.GetStringValue("test1");
|
string value1 = _parser.GetStringValue("test1");
|
||||||
@@ -51,7 +51,7 @@ namespace WireMock.Net.Tests.StandAlone
|
|||||||
public void SimpleCommandLineParser_Parse_ArgumentsMixed()
|
public void SimpleCommandLineParser_Parse_ArgumentsMixed()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
_parser.Parse(new[] { "'--test1", "one'", "--test2", "two", "--test3", "three" });
|
_parser.Parse(new[] { "--test1 one", "--test2", "two", "--test3 three" });
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
string value1 = _parser.GetStringValue("test1");
|
string value1 = _parser.GetStringValue("test1");
|
||||||
@@ -68,7 +68,7 @@ namespace WireMock.Net.Tests.StandAlone
|
|||||||
public void SimpleCommandLineParser_Parse_GetBoolValue()
|
public void SimpleCommandLineParser_Parse_GetBoolValue()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
_parser.Parse(new[] { "'--test1", "false'", "--test2", "true" });
|
_parser.Parse(new[] { "'--test1", "false'", "--test2 true" });
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
bool value1 = _parser.GetBoolValue("test1");
|
bool value1 = _parser.GetBoolValue("test1");
|
||||||
@@ -85,7 +85,7 @@ namespace WireMock.Net.Tests.StandAlone
|
|||||||
public void SimpleCommandLineParser_Parse_GetIntValue()
|
public void SimpleCommandLineParser_Parse_GetIntValue()
|
||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
_parser.Parse(new[] { "'--test1", "42'", "--test2", "55" });
|
_parser.Parse(new[] { "--test1", "42", "--test2 55" });
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
int? value1 = _parser.GetIntValue("test1");
|
int? value1 = _parser.GetIntValue("test1");
|
||||||
|
|||||||
@@ -8,39 +8,40 @@
|
|||||||
<PackageId>WireMock.Net.Tests</PackageId>
|
<PackageId>WireMock.Net.Tests</PackageId>
|
||||||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
||||||
<ProjectGuid>{31DC2EF8-C3FE-467D-84BE-FB5D956E612E}</ProjectGuid>
|
<ProjectGuid>{31DC2EF8-C3FE-467D-84BE-FB5D956E612E}</ProjectGuid>
|
||||||
|
|
||||||
<!-- https://github.com/tonerdo/coverlet/issues/6 -->
|
<!-- https://github.com/tonerdo/coverlet/issues/6 -->
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
|
<SonarQubeTestProject>True</SonarQubeTestProject>
|
||||||
|
<SonarQubeExclude>True</SonarQubeExclude>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Remove="FluentMockServerTests.Proxy.cs" />
|
|
||||||
<Compile Remove="FluentMockServerTests.Proxy2.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\src\WireMock.Net.StandAlone\WireMock.Net.StandAlone.csproj" />
|
<ProjectReference Include="..\..\src\WireMock.Net.StandAlone\WireMock.Net.StandAlone.csproj" />
|
||||||
<ProjectReference Include="..\..\src\WireMock.Net\WireMock.Net.csproj" />
|
<ProjectReference Include="..\..\src\WireMock.Net\WireMock.Net.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="coverlet.msbuild" Version="2.3.0">
|
<PackageReference Include="Codecov" Version="1.1.0" />
|
||||||
|
<PackageReference Include="coverlet.msbuild" Version="2.3.1">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="System.Threading" Version="4.3.0" />
|
<PackageReference Include="System.Threading" Version="4.3.0" />
|
||||||
|
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
||||||
<PackageReference Include="MimeKitLite" Version="2.0.1" />
|
<PackageReference Include="MimeKitLite" Version="2.0.7" />
|
||||||
<PackageReference Include="Moq" Version="4.8.3" />
|
<PackageReference Include="Moq" Version="4.10.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||||
<PackageReference Include="NFluent" Version="2.2.0" />
|
<PackageReference Include="NFluent" Version="2.4.0" />
|
||||||
<PackageReference Include="OpenCover" Version="4.6.519" />
|
<PackageReference Include="OpenCover" Version="4.6.519" />
|
||||||
<PackageReference Include="ReportGenerator" Version="3.1.2" />
|
<PackageReference Include="ReportGenerator" Version="3.1.2" />
|
||||||
<PackageReference Include="SimMetrics.Net" Version="1.0.4" />
|
<PackageReference Include="SimMetrics.Net" Version="1.0.5" />
|
||||||
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.8.18" />
|
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.9" />
|
||||||
<PackageReference Include="xunit" Version="2.4.0" />
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(TargetFramework)' == 'net452'">
|
<ItemGroup Condition="'$(TargetFramework)' == 'net452'">
|
||||||
@@ -48,7 +49,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
|
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
|
||||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.2" />
|
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.4" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user