Class ProtoExecutionContextExtensions

Namespace
ProtoTest.WireMock
Assembly
ProtoTest.WireMock.dll

Reaches the suite's fake HTTP services from the running test.

public static class ProtoExecutionContextExtensions
Inheritance
ProtoExecutionContextExtensions
Inherited Members

Methods

WireMock(ProtoExecutionContext, string?)

Gets the fake's client, starting its server on first use. Without a name the suite's only fake is used; a name is required when several fakes are registered, and an unknown name fails naming AddWireMock and the known fakes. A per-test fake starts a fresh server for this test and stops it with the test; a per-run fake shares the run's server.

public static ProtoWireMockClient WireMock(this ProtoExecutionContext context, string? name = null)

Parameters

context ProtoExecutionContext
name string

Returns

ProtoWireMockClient