Skip to content

Wafer is a Web API Integration Testing Host Runner. In short, it provides an in-memory testing host for your ASP.NET Web API.

License

Notifications You must be signed in to change notification settings

fredrikholm/wafer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wafer

Wafer - a Web API Integration Testing Host Runner

Wafer provides an in-memory testing host for your ASP.NET Web API. It creates an HttpServer for you and provide you with a simple way to issue "real" requests against your endpoints, like this:

public class UsersControllerTests
{
    private readonly HostRunner _hostRunner;

    public UsersControllerTests()
    {
        _hostRunner = new HostRunner(new Uri("http://localhost"), WebApiConfig.Register);
    }

    [Fact]
    public async Task Can_Get_List_Of_Users()
    {
        var response = await _hostRunner.GetAsync("api/users");

        response.StatusCode.Should().Be(HttpStatusCode.OK);
    }
}

What about the name?

Web API Integration Testing Host Runner --> W.A.I.T.H.R. --> Waithr --> Wafer.

How do I get a hold of it?

The lib is available as a NuGet package:

PM> Install-Package Wafer

About

Wafer is a Web API Integration Testing Host Runner. In short, it provides an in-memory testing host for your ASP.NET Web API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages