Comments (1)
Times now supported:
var mcf = MockHttpClientFactory.Create();
var mc = mcf.CreateClient("XXX", new Uri("https://d365test"));
mc.Request(HttpMethod.Post, "products/xyz").Times(Times.Exactly(2)).WithJsonBody(new Person { FirstName = "Bob", LastName = "Jane" })
.Respond.WithJsonResource("MockHttpClientTest-UriAndBody_WithJsonResponse3.json", HttpStatusCode.Accepted);
from unittestex.
Related Issues (17)
- Asserts should be explicit and not attempt to do too much, split into multiple where appropriate
- Add `ObjectComparer.Assert` which compares two objects and will fail, and report, where there is no match.
- Add option to update other properties of the ServiceBus message HOT 1
- Execute a function with a `ServiceBusTrigger` simulating Azure Function runtime. HOT 1
- `ActionResultAssertor.Assert` with object value does not correctly compare when result is `ContentResult`
- Provide a means to cast a `ResultAssertor` to an `ActionResultAssertor` where the result `Type` is `IActionResult` HOT 1
- `TypeTester.Run` and `RunAsync` methods should support `Func` versus `Expression<Func>` to simplify runtime usage
- The `IServiceCollection.Replace` extension methods need to support `ReplaceXxx<T>()` and `ReplaceXxx<T, T>()` to match the `Add` methods HOT 1
- Result not being output in log correctly HOT 1
- UnitTests fail when there's a comment in local.settings.json HOT 1
- Feature request: ability to set test configuration via appsettings.unittest.json
- Issues with using expressions HOT 1
- Add support for sequences; i.e. multiple different responses HOT 1
- MockServiceBus mock object does not work as intended HOT 1
- Add delay (sleep) option so response is not always immediate
- Enable access to Services (IServiceColllection) from testers to enable one-off instantiations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unittestex.