Skip to content

Releases: by-pinja/Protacon.NetCore.WebApi.TestUtil

.NET 7 support

09 Jan 11:09
6252dc5
Compare
Choose a tag to compare

What's Changed

**Dropped .net 5 and .netcoreapp 3.1 support.

Full Changelog: 4.3.0...4.4.0

Net 6.x support

09 Dec 13:29
b6b8506
Compare
Choose a tag to compare
net6 (#13)

* Initial updates to support net6 like json options fix

* Preprocessor clause fix

* Buildfix

* Tests with net 6

Support for PATCH method

10 Nov 09:31
7c49e8c
Compare
Choose a tag to compare
  • Added support for patch methods with builtin helper extensions.

Serialization settings from host (same as MVC settings)

22 Feb 07:30
Compare
Choose a tag to compare
  • 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

05 Nov 12:45
32499f9
Compare
Choose a tag to compare
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

05 Nov 07:48
44e8cdf
Compare
Choose a tag to compare
3.2.0

Added WaitFor assertion helper to wait response content (#9)

HttpContentHeaders with HeaderPassing

06 Apr 12:47
ad8e422
Compare
Choose a tag to compare

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

17 Dec 08:25
b24e43a
Compare
Choose a tag to compare

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

07 May 12:01
4b80ab5
Compare
Choose a tag to compare

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

21 Jun 09:30
d21f50c
Compare
Choose a tag to compare
2.3.3

Updated structure to support lazy invocation of http requests. (#2)