Class ReadOnlyResponseStore
Inheritance
ReadOnlyResponseStore
Assembly: FakeHttp.dll
Syntax
public class ReadOnlyResponseStore : IReadOnlyResponseStore
Constructors
|
Improve this Doc
View Source
ReadOnlyResponseStore(IReadOnlyResources)
Declaration
public ReadOnlyResponseStore(IReadOnlyResources resources)
Parameters
Type |
Name |
Description |
IReadOnlyResources |
resources |
An instance that manages the underlying storage of response resources
|
Exceptions
|
Improve this Doc
View Source
ReadOnlyResponseStore(IReadOnlyResources, IResponseCallbacks)
Declaration
public ReadOnlyResponseStore(IReadOnlyResources resources, IResponseCallbacks callbacks)
Parameters
Type |
Name |
Description |
IReadOnlyResources |
resources |
An instance that manages the underlying storage of response resources
|
IResponseCallbacks |
callbacks |
Object used to allow client code to modify responses during load and storage
|
Exceptions
Methods
|
Improve this Doc
View Source
FindResponse(HttpRequestMessage)
Retrieve response message from storage based on a request message
Declaration
public HttpResponseMessage FindResponse(HttpRequestMessage request)
Parameters
Returns
Type |
Description |
HttpResponseMessage |
The response messsage assoicated with the request. Returns a 404 message if none is found.
|
Implements
Exceptions
|
Improve this Doc
View Source
ResponseExists(HttpRequestMessage)
Declaration
public bool ResponseExists(HttpRequestMessage request)
Parameters
Returns
Type |
Description |
Boolean |
True if a response exists for the request. Otherwise false
|
Implements
Exceptions