Releases: by-pinja/Protacon.NetCore.WebApi.TestUtil
Releases · by-pinja/Protacon.NetCore.WebApi.TestUtil
.NET 7 support
Net 6.x support
net6 (#13) * Initial updates to support net6 like json options fix * Preprocessor clause fix * Buildfix * Tests with net 6
Support for PATCH method
- Added support for patch methods with builtin helper extensions.
Serialization settings from host (same as MVC settings)
- Previous serialization was done with default settings. Problem is that in cases like custom converters they doesn't understand how to convert them between json and object forms since options from host are not known. Now serialization settings used are same as MVC is currently using.
- Dropped 2.1 net standard support.
Bugfix for new `WaitFor` method
Fix/http call clone bug (#10) * Added WaitFor assertion helper to wait response content * Fixed bug in clone routine with WaitFor
`WaitFor` utility method to work with asynchronous data handling
3.2.0 Added WaitFor assertion helper to wait response content (#9)
HttpContentHeaders with HeaderPassing
Pass also HttpContentHeaders to the HeaderPassing
method. Before this only HttpHeaders were available for verify.
await TestHost.Run<TestStartup>().Get("/headertest/response-headers/")
.ExpectStatusCode(HttpStatusCode.NoContent)
.HeaderPassing("Content-Language", value => value.Should().Be("fi_FI"))
.HeaderPassing("X-Powered-By", value => value.Should().Be("pinja"));
Support for Net Core 3.1
There were library changes between 2.x -> 3.x which required updates at this library.
Dropped Newtonsoft.Json
depency at same time in favor for System.Text.Json
.
Async/Await
Breaking changes!
Updated library to use async/await. Readme is updated accordingly, in most cases this simply means that you must make test method async and add await in front off library calls.
Fix for WaitForStatuscode methology
2.3.3 Updated structure to support lazy invocation of http requests. (#2)