Table of Contents

Class BunitWebAssemblyHostEnvironment

Namespace
Bunit.TestDoubles
Assembly
bunit.dll

Represents bUnit's own IWebAssemblyHostEnvironment that makes the Environment and BaseAddress settable.

public class BunitWebAssemblyHostEnvironment : IWebAssemblyHostEnvironment
Inheritance
BunitWebAssemblyHostEnvironment
Implements
Inherited Members
Extension Methods

Constructors

BunitWebAssemblyHostEnvironment()

public BunitWebAssemblyHostEnvironment()

Properties

BaseAddress

Gets or sets the base address. Default is /.

public string BaseAddress { get; set; }

Property Value

string

Environment

Gets or sets the name of the environment. Default is Production.

public string Environment { get; set; }

Property Value

string

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()
.NET Foundation

Supported by the .NET Foundation.