4 ms·
This is actually in the official documentation now: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0 https://learn.m
by bob1029 4y ago
This is actually in the official documentation now:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0 https://learn.microsoft.com/en-us/aspnet/core/fundamentals/m...
- throwayyy479087 4y agoThis is remarkably different than it was 2012. This is absolutely fantastic news.
- pan69 4y agoThat looks very TypeScript/NodeJS-esque. I am not very familier with the .NET ech system. How do you write tests for some of these API examples? E.g. in the NodeJS eco-system we have e.g. Jest with Superserver and Nock (for mocking/intercepting outgoing requests). What does a typical test suite in a .NET core project look like?
- c0wb0yc0d3r 4y agoA basic example looks like: https://github.com/davidfowl/CommunityStandUpMinimalAPI/blob/main/TodoApi.Tests/TodoTests.cs https://github.com/davidfowl/CommunityStandUpMinimalAPI/blob... Some more documentation on integration tests: https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-6.0#basic-tests-with-the-default-webapplicationfactory-1 https://learn.microsoft.com/en-us/aspnet/core/test/integrati...