Info
Version: | 2.0.110 |
Author(s): | Davyd McColl |
Last Update: | Wednesday, November 13, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/fluffynuts/NExpect |
NuGet Url: | https://www.nuget.org/packages/NExpect.Matchers.AspNetCore |
Install
Install-Package NExpect.Matchers.AspNetCore
dotnet add package NExpect.Matchers.AspNetCore
paket add NExpect.Matchers.AspNetCore
NExpect.Matchers.AspNetCore Download (Unzip the "nupkg" after downloading)
Dependencies
- NExpect(>= 1.0.190)
- Microsoft.AspNetCore.Mvc.Core(>= 2.2.5)
[Route] and [Http*] annotations like so:
```
Expect(typeof(SomeController)
.To.Have.Method(nameof(SomeController.MethodName))
.Supporting(HttpMethod.Delete)
.And(HttpMethod.Post)
.With.Route("first-route")
.And.Route("second-route");
```.