Skip to content

mhdbouk/minimal-api-integration-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Minimal API Demo & Integration Tests

This repository contains the source code for a tutorial on how to write integration tests for minimal APIs using .NET 7, WebApplicationFactory, and XUnit. The tutorial can be found at Say Hello to Reliable Minimal APIs with Integration Tests.

Projects structure

The repository includes a minimal API project (MinimalApiDemo.Api) and an XUnit project for integration tests (MinimalApiDemo.Tests). The tests can be found in the TodoTests.cs file.

Running the code

To run the code, you'll need to have the .NET 7 SDK installed on your machine. You can then clone the repository and run dotnet run from the MinimalApiDemo.Api directory.

To run the tests, navigate to the MinimalApiDemo.Tests directory and run dotnet test.

πŸš€ Happy coding!

About

Say Hello to Reliable Minimal APIs with Integration Tests πŸ’ͺ This repository contains the source code for the accompanying blog post on how to use WebApplicationFactory and XUnit to write integration tests for your minimal APIs in .NET 7. πŸš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages