- Home
- .NET tutorials
.NET tutorials
Read & write to a CSV file using a list in ASP.NET Core
Learn how to read and write CSV files in ASP.NET Core using lists, including handling headers and mapping different header titles easily.
Add request logging to a database in an ASP.NET Core Web API
Learn how to add request logging to a database in an ASP.NET Core Web API using Entity Framework Core to effectively monitor and analyse API traffic.
xUnit v3 update: Ability to skip tests & a new TestContext
Learn how to upgrade your xUnit project to v3 to use new features like skip assertions, TheoryDataRow, MatrixTheoryData, and a new TestContext.
Use fixtures in xUnit for shared context in unit tests
Learn how to use xUnit fixtures like IClassFixture and ICollectionFixture to share setup and context across your unit tests efficiently.
xUnit advanced Assert methods: Throws, IsType + more
Master advanced xUnit assert methods like Throws, Raises, and IsType to create precise, reliable, and easy-to-read unit tests.
xUnit Assert basics: True/False, Equal, Same, Matches and more
Learn xUnit basic assert methods like boolean checks, range validations, and string assertions to write clear, reliable, and maintainable unit tests.
How to use InlineData, MemberData and ClassData in xUnit
Master xUnit Theory attributes like InlineData, MemberData, and ClassData to build powerful, parameterised unit tests with ease.
How to add unit testing to Minimal APIs routes using xUnit
Learn how to unit test minimal API endpoint handlers in ASP.NET Core using xUnit by organising routes and handlers into separate classes.
Add API key authentication to an Minimal API endpoint
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.
Watch .NET tutorials
Subscribe to our YouTube channel