Summary
The underlying host type (currently only checked for test host)
This is so that conventions can avoid adding behaviors that might cause issues with unit testing such as writing to the
console or debug pipes, or ensuring that something is configured in a correct way for testing.
Careful consideration is needed to make sure that your system doesn't behave extremely differently in a live scenario
vs a testing scenario
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions - Base Types
-
- Enum
graph BT
Type-->Base0["Enum"]
Type["HostType"]
class Type type-node
Syntax
public sealed class HostType : Enum
Fields
Name | Constant Value | Summary |
---|---|---|
Live | 1 |
This is a live application
This also may apply to in memory integration tests running through the HostBuilder infrastructure
static
|
Undefined | 0 |
No hast type has been defined
static
|
UnitTestHost | 2 |
This is a unit test context
This is so that conventions can avoid adding behaviors that might cause issues with unit testing such as writing to the
console or debug pipes, or ensuring that something is configured in a correct way for testing.
Careful consideration is needed to make sure that your system doesn't behave extremely differently in a live scenario
vs a testing scenario
static
|
value__ |
Extension Methods
Name | Value | Summary |
---|---|---|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|