Learn how to use xUnit fixtures like IClassFixture and ICollectionFixture to share setup and context across your unit tests efficiently.
Master advanced xUnit assert methods like Throws, Raises, and IsType to create precise, reliable, and easy-to-read unit tests.
Learn xUnit basic assert methods like boolean checks, range validations, and string assertions to write clear, reliable, and maintainable unit tests.
Master xUnit Theory attributes like InlineData, MemberData, and ClassData to build powerful, parameterised unit tests with ease.
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.