Table of Contents

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

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()
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.