Skip to content

cleeding/RestAssuredNetDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestAssuredNetDemo

This project contains basic API tests written in C# using the RestAssured.Net library and xUnit test framework.

Overview

The tests target the public JSONPlaceholder API (https://jsonplaceholder.typicode.com) and cover common CRUD operations:

  • Get all posts
  • Get posts by userId
  • Create a new post
  • Update a post
  • Delete a post

Prerequisites

  • .NET 8.0 SDK
  • Visual Studio Code or Visual Studio
  • Internet connection (for hitting JSONPlaceholder API)

Getting Started

  1. Clone this repository:

    git clone https://github.com/yourusername/RestAssuredNetDemo.git
    cd RestAssuredNetDemo
    
  2. Restore dependencies:

    dotnet restore
    
  3. Run the tests:

    dotnet test
    
    

About

A simple API test suite built with C#, xUnit, and RestAssured.Net, targeting the JSONPlaceholder fake REST API. This project demonstrates how to write clean, readable tests for common HTTP operations (GET, POST, PUT, DELETE), including assertions for status codes, headers, and JSON responses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages