Skip to content

crazy-X26/dotnet-api-test-automation-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

.NET API Test Automation Demo

This repository demonstrates API test automation using .NET tools and BDD practices.

🚀 Tech Stack

  • .NET 8 (LTS)
  • xUnit
  • FluentAssertions
  • Reqnroll (BDD)
  • ASP.NET Core Web API
  • WebApplicationFactory

📦 Project Overview

The project contains:

  • A simple REST API for managing products (CRUD operations)
  • Unit tests for core logic
  • BDD-style integration tests for API behavior

🧪 Test Approach

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.

▶️ Running the tests

dotnet test

⚙️ CI

Tests are automatically executed using GitHub Actions.

🎯 Purpose

This project is intended as a portfolio example to demonstrate:

  • API test automation in .NET
  • BDD with Reqnroll
  • Clean and maintainable test structure

About

.NET 8 API test automation demo using Reqnroll (BDD), xUnit and GitHub Actions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors