Learn how to unit test minimal API endpoint handlers in ASP.NET Core using xUnit by organising routes and handlers into separate classes.
Learn how to add API key authentication to minimal API endpoints using a saved key in the config and apply a fallback policy to secure all routes.
Learn how to add multiple endpoint filters to minimal API routes to run custom logic before and after your endpoint handlers.
Learn when to use TypedResults vs Results in minimal APIs and explore the different response types available for returning API responses.
Learn how to use parameter binding in minimal API routes with wildcards and constraints, and how to use them in endpoint handlers with special types.
Learn how to create minimal API routes in one line, add endpoints to OpenAPI documentation, and group related routes for better organisation.
Looking at how you can avoid common errors in ASP.NET Core dependency injection like not registering a service and circular dependency.
Learn how to write xUnit tests for a class that injects services that uses ASP.NET Core dependency injection using mock and real instances.
Learn how to resolve scoped and transient services in an ASP.NET Core background service by creating a new scope and how it can also be used for multithreading.
Find out whether you should use the GetService or GetRequiredService method in the IServiceProvider type to resolve a service from ASP.NET Core dependency injection.