Class FakeWebAssemblyHostEnvironment
- Namespace
- Bunit.TestDoubles
- Assembly
- Bunit.Web.dll
Represents a fake IWebAssemblyHostEnvironment that makes the Environment and BaseAddress settable.
public class FakeWebAssemblyHostEnvironment : IWebAssemblyHostEnvironment
- Inheritance
-
FakeWebAssemblyHostEnvironment
- Implements
- Inherited Members
- Extension Methods
Constructors
FakeWebAssemblyHostEnvironment()
public FakeWebAssemblyHostEnvironment()
Properties
BaseAddress
Gets or sets the base address. Default is /.
public string BaseAddress { get; set; }
Property Value
Environment
Gets or sets the name of the environment. Default is Production.
public string Environment { get; set; }
Property Value
Methods
SetEnvironmentToDevelopment()
Sets the Environment property to Development.
public void SetEnvironmentToDevelopment()
SetEnvironmentToProduction()
Sets the Environment property to Production.
public void SetEnvironmentToProduction()
SetEnvironmentToStaging()
Sets the Environment property to Staging.
public void SetEnvironmentToStaging()