Stubbery
Stubbery copied to clipboard
Library for creating Api stubs in .NET. https://markvincze.github.io/Stubbery/
This throws if aspnet is unable to parse the route as a valid template, i think this is acceptable as it signals the developer to fix the test setups. just...
This ignores invalid routes passed to stubs, so allows this new test to pass (before was red, as one failing parse fails all others after it) ```csharp [Fact] public async...
We can already set up preconditions on the Route with the syntax ``` sut.Request(HttpMethod.Get) .IfRoute("/testget") ... ``` But we don't have any way to have a precondition for a specific...
Digging into the code to understand my issue with #9, I noticed that the `IfQueryArg()` condition is forced as an "OR" condition: https://github.com/markvincze/Stubbery/blob/cc58462fdcc4353dd7652322791c4ab2ee0fd61d/src/Stubbery/RequestMatching/Setup.cs#L23 I believe there should be an extra...
I´m noticing a difference between setting up the ApiStub and what is actually being matched. The stubbed route needs to be without url encoding. Example: This is the request that...