PeanutButter
Loading...
Searching...
No Matches
PeanutButter.TestUtils.AspNetCore.Fakes.FakeHttpResponseFeature Class Reference

Provides a faked IHttpResponseFeature. More...

Inheritance diagram for PeanutButter.TestUtils.AspNetCore.Fakes.FakeHttpResponseFeature:

Public Member Functions

 FakeHttpResponseFeature (Func< HttpResponse > factory)
 Constructs a new faked HttpResponseFeature, bound to the HttpResponse provided by the factory.
void OnStarting (Func< object, Task > callback, object state)
void OnCompleted (Func< object, Task > callback, object state)

Properties

int StatusCode [get, set]
string ReasonPhrase [get, set]
IHeaderDictionary Headers [get, set]
Stream Body [get, set]
bool HasStarted [get]

Detailed Description

Provides a faked IHttpResponseFeature.

Constructor & Destructor Documentation

◆ FakeHttpResponseFeature()

PeanutButter.TestUtils.AspNetCore.Fakes.FakeHttpResponseFeature.FakeHttpResponseFeature ( Func< HttpResponse > factory)

Constructs a new faked HttpResponseFeature, bound to the HttpResponse provided by the factory.

Parameters
factory

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeHttpResponseFeature.cs