This repository demonstrates API test automation using .NET tools and BDD practices.
- .NET 8 (LTS)
- xUnit
- FluentAssertions
- Reqnroll (BDD)
- ASP.NET Core Web API
- WebApplicationFactory
The project contains:
- A simple REST API for managing products (CRUD operations)
- Unit tests for core logic
- BDD-style integration tests for API behavior
The focus of this project is on behavior-driven API testing.
BDD scenarios describe the expected behavior of the API, for example:
- Creating a product
- Retrieving all products
- Deleting a product
Each scenario runs in isolation using a fresh test fixture to avoid shared state between tests.
dotnet testTests are automatically executed using GitHub Actions.
This project is intended as a portfolio example to demonstrate:
- API test automation in .NET
- BDD with Reqnroll
- Clean and maintainable test structure