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

Provides a faked implementation of IHttpRequestFeature. More...

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

Public Member Functions

 FakeHttpRequestFeature (Func< HttpRequest > factory)
 Constructs a faked HttpRequestFeature tied to the HttpRequest provided by the factory.

Properties

string Protocol [get, set]
string Scheme [get, set]
string Method [get, set]
string PathBase [get, set]
string Path [get, set]
string QueryString [get, set]
string??? RawTarget [get, set]
IHeaderDictionary Headers [get, set]
Stream Body [get, set]

Detailed Description

Provides a faked implementation of IHttpRequestFeature.

Constructor & Destructor Documentation

◆ FakeHttpRequestFeature()

PeanutButter.TestUtils.AspNetCore.Fakes.FakeHttpRequestFeature.FakeHttpRequestFeature ( Func< HttpRequest > factory)

Constructs a faked HttpRequestFeature tied to the HttpRequest provided by the factory.

Parameters
factory
Exceptions
NotImplementedException

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