Cezary Piątek
e5cc6f570c
Code generator improvements ( #940 )
...
* Fix quotation marks escaping in multiline string
* Add support for JsonPartialMatcher and JsonPartialWildcardMatcher in mapping code generator
2023-05-25 20:59:13 +02:00
Stef Heyenrath
11f4c47851
Add more unitests for CSharpFormatter utils ( #938 )
...
* Add unit-tests for CSharpFormatter
* .
* t
2023-05-19 16:14:26 +02:00
Cezary Piątek
8444c8c506
Code generator improvements ( #934 )
...
* Handle new line escaping in C# mapping code generator
* Prevent date conversion when value persisted as string
* Handle object properties named as csharp keywords
* Refactor: Extract logic responsible for generating anonymous object definition to a separate class
2023-05-13 09:33:25 +02:00
Cezary Piątek
7d9e450814
C# code generator improvements ( #933 )
...
* Escape quotes in generated C# strings
* Handle response with JSON body in C# code generator
2023-05-07 14:37:48 +02:00
Stef Heyenrath
d29f3e81f3
Add property 'IsStartedWithAdminInterface' to 'IWireMockServer' ( #931 )
...
* Add property 'IsStartedWithAdminInterface' to 'IWireMockServer'
* update tests
* .
2023-05-06 13:12:00 +02:00
Stef Heyenrath
ccd8026884
Update C# mapping code generator for WithStatusCode ( #930 )
2023-05-06 10:24:53 +02:00
Cezary Piątek
1214ba5108
Enrich generated code with status code ( #927 )
2023-05-06 09:40:41 +02:00
Cezary Piątek
427715a38a
Fix csharp mapping code generator ( #926 )
2023-05-02 16:48:32 +02:00
nudejustin
9ef8bd0b7b
Allow removal of prefix when proxying to another server ( #630 ) ( #924 )
...
* #630 Allow removal of prefix when proxying to another server
* #630 Rename replace to replace settings and ensure properties used in place of fields
* #630 Update replace settings type name to ProxyUrlReplaceSettings
* #630 Add admin model and update settings parser to parse new values
* Fix formatting issues
* #630 Ensure json mapping between admin model and internal model takes place
* #630 Refactor parsing and structure of extracting new proxy url
* Reduce function complexity
* #630 Fix line length issues and remove try prefix from parser methods
2023-04-23 09:31:38 +02:00
Stef Heyenrath
090e0eb437
Add WithProbability ( #922 )
...
* WithProbability
* fix
* x
* ,
* .
* .
* .
2023-04-12 20:48:53 +02:00
Stef Heyenrath
a8775c3b77
Include WireMockOpenApiParser project ( #916 )
...
* Fix some nullability warnings for WireMockOpenApiParser
* .
* .
* .
* opt
* FromText
* ab
* .
* private const string AdminOpenApi = "/__admin/openapi";
* fix test
* rnd
* .
* urldetails
* 0
* ,
* .
* tests
* .
* CompressionUtilsTests
* ut
* .
2023-04-08 21:25:17 +02:00
Walid Haidari
95bf8e31aa
#912 add excluded params to proxy mapping ( #914 )
2023-03-24 16:35:09 +01:00
Stef Heyenrath
7ca4294de6
Fixed QueryStringParser for UrlEncoded values ( #911 )
2023-03-22 16:15:50 +01:00
Stef Heyenrath
66245409f9
RequestBuilder : add WithBodyAsJson and WithBody (with IJsonConverter) ( #908 )
...
* RequestBuilder : add WithBodyAsJson and WithBody (with IJsonConverter)
* tests
2023-03-22 15:47:58 +01:00
Stef Heyenrath
b30e4faab6
Fix issue with application/x-www-form-urlencoded and ExactMatcher ( #907 )
2023-03-19 10:21:47 +01:00
Stef Heyenrath
1221d52c69
Add DeserializeFormUrl Encoded to the settings ( #905 )
...
* Add DeserializeFormUrlEncoded to Settings
* EmptyArray<>.Value
* .
2023-03-19 09:19:53 +01:00
Stef Heyenrath
78b94d2ebc
Add WithBody with IDictionary (form-urlencoded values) ( #903 )
...
* .
* x
* fx
* fix
* f
* tests
* fix tests
* add tst
2023-03-17 17:08:45 +01:00
Stef Heyenrath
19701f5260
Update Handlebars.Net.Helpers to 2.3.15 ( #904 )
2023-03-15 18:30:34 +01:00
Stef Heyenrath
7426bf76ee
Add 'Data' to response which can be used during transforming the response ( #893 )
...
* Add 'Data' to response which can be used during transforming the response
* md
* hb
* fix
* Linq
* fix test
* v4
* 14
* .
* x
* remove
* s
2023-03-09 17:20:34 +01:00
Stef Heyenrath
674fa89c3e
ProxySettings : Add logic to not save some requests depending on HttpMethods ( #900 )
...
* Add ExcludedHttpMethods to ProxySettings
* tst
* fix
* SaveMappingSettings
* .
2023-03-09 15:28:52 +01:00
Stef Heyenrath
61cdc13fae
Add extra test for WithCallback
2023-03-01 12:10:03 +01:00
Stef Heyenrath
c344b73f45
Cleanup some code from JsonUtils.cs
2023-02-27 21:23:43 +01:00
Stef Heyenrath
7ac89e85b7
Add WithBodyAsJson builder method with accepts a Func ( #881 )
...
* Add WithBodyAsJson builder method with accepts a Func
* ut
2023-02-06 20:50:11 +01:00
Stef Heyenrath
6839b11d35
Add WithProxy(string proxyUrl, X509Certificate2 certificate) ( #880 )
2023-02-01 10:42:35 +01:00
Stef Heyenrath
7fe2c8af78
Update REST Admin interface to support "Get Mapping(s) as C# Code" ( #878 )
...
* Add /__admin/mappings/code endpoint
* api
* fix
* .
* fix
* .
* .
* .
2023-01-29 10:24:58 +01:00
Stef Heyenrath
770a670e53
Generate C# code from Mapping ( #842 )
...
* 1
* .
* v
* .
* .
* -
* b
* res b
* Fix UT
* .
* Verify
* v
* ...
* .
* .
* dir
* m
2023-01-24 16:45:47 +01:00
Stef Heyenrath
c85eaf1072
Add unit test example for Transformer Handlebars String.Append String.Join ( #877 )
...
* Response_ProvideResponse_Transformer_WithBodyAsJson_Handlebars_StringAppend
* fix
2023-01-20 08:21:59 +01:00
Stef Heyenrath
b2a8178161
Fix unsubscribe from LogEntriesChanged event handler ( #872 )
...
* Fix unsubscribe from LogEntriesChanged event handler
* .
* f
2023-01-19 14:23:38 +01:00
Stef Heyenrath
20eb37b0c8
Add MappingBuilder to build mappings in code and export to Models or JSON ( #869 )
...
* MappingBuilder
* .
* ...
* sc
* t
* .
2023-01-06 19:11:56 +01:00
billybraga
9ed6a75384
Add client certificate support ( #862 )
...
* Add client certificate support
* Add missing test certificate file
* Review fixes
* Review fixes
* Review fixes
* Review fixes
2022-12-11 20:30:47 +01:00
Stef Heyenrath
9606fee8cb
Update Transformer functionality to return value instead of string ( #858 )
2022-12-11 11:07:56 +01:00
Stef Heyenrath
e2f3ffd33a
Add UpdatedAt property to Mapping ( #859 )
...
* Add UpdatedAt property to Mapping
* .
2022-12-09 14:18:50 +01:00
Stef Heyenrath
53adb17e07
Update some dependencies ( #857 )
...
* fb
* .
* linq
* ,,,
* anno
* log
* rd
2022-12-03 11:45:44 +01:00
Stef Heyenrath
795dcf42e2
Add .Net 7 ( #853 )
...
* Add .NET 7
* UseDotNet
* 7
* Ubuntu 6
* 'Use .NET 7'
* 67
* .
* use 7
* use 7
* test = 7
* coverage.7.0.opencover.xml
2022-12-03 11:03:57 +01:00
Stef Heyenrath
be1cbc5a12
Fix logic for QueryParameterMultipleValueSupport ( #854 )
...
* Add more QueryParameterMultipleValueSupport NoComma tests
* fix tests
* fx
* cf
* Fix
* cf
* select id, name, value from table where id in (1, 2, 3, 4, 5)
2022-12-03 11:03:45 +01:00
Stef Heyenrath
35d42a5c0d
Fix Linux CI build + Fix opencover ( #851 )
...
* Fix Linux CI Test (opencover.xml)
* 2
* Build & Execute Unit tests
* ,cmd
* cout
* 12
* b
* server
* b =b
* /p:CoverletOutput=./test/WireMock.Net.Tests/WireMock.Net.Tests
* co?
* 2p
* 2?
* failOnStderr: false
* e0
* cc
* pub
* sc
* coverlet
* props
* pt
* coverage.net6.0.opencover.xml
2022-11-25 18:13:02 +01:00
Stef Heyenrath
38634ac65a
Use try-catch when adding or removing logEntry ( #848 )
...
* Use try-catch when removing logEntry
* .
* try catch add
* Add extra check
* ...
2022-11-21 07:30:27 +01:00
Stef Heyenrath
ef5f988786
Add Settings.QueryParameterMultipleValueSupport ( #836 )
...
* QueryParameterMultipleValueSupport
* .
* ,
* ,
2022-11-08 19:27:44 +01:00
Gerhard Gradnig
49b29d74dc
Webhook: Use the transformed URL to create the HttpRequestMessage ( #843 )
...
Co-authored-by: Gerhard Gradnig <gerhard.gradnig@admiral.at >
2022-11-05 10:54:39 +01:00
Stef Heyenrath
31298d281d
Support deleting / resetting a single scenario ( #834 )
...
* Support deleting / resetting a single scenario
* move files
2022-10-26 08:43:51 +02:00
Stef Heyenrath
57115f1a3d
Add setting to skip saving the string-response in the logging when using WithBody(Func...) ( #828 )
...
* Add extra unit-test for Response WithBody (dynamic code)
* DoNotSaveDynamicResponseInLogEntry
* update SettingsModel
* fix
* .
2022-10-21 14:47:26 +02:00
Stef Heyenrath
306c69f478
Fixes for WireMock.Net.FluentAssertions (callcount behaviour) ( #832 )
...
* UsingAnyMethod
* fix
* .
2022-10-17 21:50:24 +02:00
Stef Heyenrath
36037627bc
WebHook - Transform Url ( #824 )
...
* WebHook - Url
* .
2022-10-15 08:55:05 +02:00
Stef Heyenrath
55afc8041f
ExactMatcher : IgnoreCase ( #817 )
...
* ...
* mm
* fix some null warnings
* fx
2022-10-15 08:23:58 +02:00
Stef Heyenrath
b523ab9125
Some fixes to WireMock.Net.Assertions ( #816 )
...
* Add extra unit test for UsingPost
* .X
* ok
* ok2
* header
2022-10-15 08:21:48 +02:00
Stef Heyenrath
f7b04f3234
Add UseDefinedRequestMatchers to ProxyAndRecordSettings ( #821 )
...
* .
* UseDefinedRequestMatchers
* ok
* .
* ClientIP
* t
* fix ut
* .
* cf
* cf2
2022-09-30 11:25:11 +02:00
Stef Heyenrath
98a0f2fa28
WebHook : UseFireAndForget + Delay ( #803 )
...
* UseFireAndForget
* ...
* delay
* async
* updated code accorsing to proposal
* Change nuget to package reference for WireMock.Net.Console.Net472.Classic, move the new FireAndForget into the main mapping, out of individual webhook mappings making it all or nothing, update tests, change Middleware to await or not the firing of all webhooks. Update models as needed. (#804 )
Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com >
* small update
* Tweak middleware and fix bug in example (#806 )
Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com >
* .ConfigureAwait(false)
Co-authored-by: mattisking <mattisking@gmail.com >
Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com >
2022-09-12 20:30:40 +02:00
Stef Heyenrath
74480c8ba9
Add support to use 'mapping' object in in reponse templating ( #798 )
...
* mapping
* .
* .
2022-09-03 08:52:05 +02:00
Rafael Moreira Fonseca
862c04e722
Add assertions for request methods ( #802 )
...
* Add assertions for request methods
* Fix assertions tests when using connect method
* Remove unnecessary clear and fix assert condition
2022-09-03 08:49:39 +02:00
Stef Heyenrath
2d4f513753
Update some NuGet packages ( #781 )
2022-08-24 08:26:35 +02:00