Provides a faked IHttpResponseFeature.
More...
|
| 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) |
|
int | StatusCode [get, set] |
string | ReasonPhrase [get, set] |
IHeaderDictionary | Headers [get, set] |
Stream | Body [get, set] |
bool | HasStarted [get] |
Provides a faked IHttpResponseFeature.
◆ FakeHttpResponseFeature()
PeanutButter.TestUtils.AspNetCore.Fakes.FakeHttpResponseFeature.FakeHttpResponseFeature |
( |
Func< HttpResponse > | factory | ) |
|
Constructs a new faked HttpResponseFeature, bound to the HttpResponse provided by the factory.
- Parameters
-
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeHttpResponseFeature.cs