An open API service indexing awesome lists of open source software.

https://github.com/aimenux/webapiintegrationtestsdemo

Using integration tests with web api projects
https://github.com/aimenux/webapiintegrationtestsdemo

alba fluent-assertions integration-testing net80 webapi xunit-tests

Last synced: about 1 year ago
JSON representation

Using integration tests with web api projects

Awesome Lists containing this project

README

          

[![.NET](https://github.com/aimenux/WebApiIntegrationTestsDemo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aimenux/WebApiIntegrationTestsDemo/actions/workflows/ci.yml)

# WebApiIntegrationTestsDemo
```
Using integration tests with web api projects
```

> In this repo, i m exploring ways in order to setup integration tests with web api projects
>
> :one: `Example01` use minimal api
>
> :two: `Example02` use controller api
>
> :bulb: Integration tests are based on [Microsoft.AspNetCore.Mvc.Testing](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.testing) for example 1.
>
> :bulb: Integration tests are based on [Alba](https://jasperfx.github.io/alba) for example 2.
>

**`Tools`** : net 8.0, web api, integration-testing, alba, fluent-assertions, xunit