Comments (2)
Hi,
This is a challenge with the isolated worker model where Microsoft introduced new types, versus the more widely used HttpRequest
and HttpResponse
. Thankfully, Microsoft has now (recently) added support for these types; see this article for guidance on usage.
Generally, my guidance is to use HttpRequest
and HttpResponse
as there are many other libraries, etc. out there that support, and means development is largely consistent with an ASP.NET Core implementation.
Cheers...
from unittestex.
Thankfully, Microsoft has now (recently) added support for these types; see this article for guidance on usage.
Thanks!! I skimmed that article but wasn't sure if it was worth it to migrate. I will now because this library really takes the pain out of testing Azure code.
from unittestex.
Related Issues (20)
- Add delay (sleep) option so response is not always immediate
- Enable access to Services (IServiceColllection) from testers to enable one-off instantiations
- 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
- Issue with Asserts? HOT 2
- Using Flurl with UnitTestEx HOT 2
- Security Policy violation Outside Collaborators HOT 46
- Enhancement: Lambda Assertions HOT 2
- HttpTriggerTester Expression Tree Limitations HOT 3
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.