Class ContextManagerMock
This is essentially a clone of the ContextManager class from Function Monkey. The AsyncLocal is still needed to scope
any set contexts when tests are running in parallel
Inheritance
System.Object
ContextManagerMock
Implements
IContextProvider
Assembly: FunctionMonkey.Testing.dll
Syntax
public class ContextManagerMock : IContextSetter, IContextProvider
Properties
|
Improve this Doc
View Source
BlobContext
Declaration
public BlobContext BlobContext { get; }
Property Value
Type |
Description |
BlobContext |
|
|
Improve this Doc
View Source
EventHubContext
Declaration
public EventHubContext EventHubContext { get; }
Property Value
Type |
Description |
EventHubContext |
|
|
Improve this Doc
View Source
ExecutionContext
Declaration
public Abstractions.Contexts.ExecutionContext ExecutionContext { get; }
Property Value
|
Improve this Doc
View Source
HttpContext
Declaration
public HttpContext HttpContext { get; }
Property Value
Type |
Description |
HttpContext |
|
|
Improve this Doc
View Source
ServiceBusContext
Declaration
public ServiceBusContext ServiceBusContext { get; }
Property Value
Type |
Description |
ServiceBusContext |
|
|
Improve this Doc
View Source
StorageQueueContext
Declaration
public StorageQueueContext StorageQueueContext { get; }
Property Value
Type |
Description |
StorageQueueContext |
|
Methods
|
Improve this Doc
View Source
SetHttpContext(ClaimsPrincipal, String, Dictionary<String, IReadOnlyCollection<String>>)
Declaration
public void SetHttpContext(ClaimsPrincipal claimsPrincipal, string requestUrl, Dictionary<string, IReadOnlyCollection<string>> headers)
Parameters
Type |
Name |
Description |
ClaimsPrincipal |
claimsPrincipal |
|
System.String |
requestUrl |
|
Dictionary<System.String, IReadOnlyCollection<System.String>> |
headers |
|
Implements
IContextProvider
Extension Methods