Release v5.0.0 includes a lot of new features and updates. All Mountebank API capabilities are now supported as well as almost all of the predicate and response types. Support has been added for both SMTP imposters and custom protocol imposters. The documentation for the project has also been completely rewritten and updated for these new features.
There were a variety of breaking changes introduced in this release. Please review the migration guide for specific guidance on the changes that will be necessary.
Changes:
- All client methods are now async (#60) and have
CancellationToken
parameters (#74) IHttpClientWrapper
/HttpClientWrapper
are no longer publicly accessible (#52)HttpClient
will be re-used between requests (#52)- Predicates now support
jsonpath
(#55) - Validate key/cert parameters are valid PEM-formatted strings when creating HTTPS imposters (#75)
- Added client method to support replacing stubs on running imposters (#76)
- Added support for the
exists
predicate (#72) - Updated
HttpPredicateFields.Headers
andHttpPredicateFields.QueryParameter
to be aDictionary<string, object>
(#78) - Added support for form encoded key-value pairs on
HttpPredicateFields
(#73) - Updated
HttpRequest.QueryParameters
to be aDictionary<string, object>
(#80) - Added support for SMTP imposters (#88)
- Added ability to retrieve config information (#94)
- Added ability to retrieve logs (#92)
- Added ability to retrieve list of imposters (#92, #99, #103)
- Added XML documentation comments to all public members (#108)
- Renamed abstract base classes:
PredicateBase
->Predicate
,ResponseBase
->Response
,StubBase
->Stub
(#110) - Updated
CreateHttpImposter
/CreateHttpsImposter
/CreateTcpImposter
client methods to accept a configuration callback and actually create the imposters in Mountebank (#111) - Removed
Submit
client methods (#111) - Added support for replacing, adding, and removing stubs from imposters (#117)
- Updated collection types to be more appropriate for their use case (#119)
- Included debug symbols in the NuGet package (#120)
- Add support for custom protocol imposters (#124)
- Improved documentation (#125)
- Updated
MountebankClient
constructor to take aUri
instead of astring
(#126) - Removed the
MbDotNet.Enums
namespace (#127) - Added support for deleting saved proxy responses (#128)
- Added support for the
fault
response type (#130) - Updated responses to include an array of behaviors (#131)