Skip to content

Compono.NSubstituteProvider.NSubstituteProvider(Compono.NSubstituteOptions)

Compono.NSubstitute

Compono.NSubstituteProvider

NSubstituteProvider(NSubstituteOptions) Constructor

Creates an NSubstituteProvider, snapshotting options's current values - the provider never retains the caller-owned NSubstituteOptions instance itself, so a caller mutating it after construction can't change this already-registered provider's behavior (ADR-0024's immutable-provider-registration guarantee).

public NSubstituteProvider(Compono.NSubstituteOptions options);

Parameters

options NSubstituteOptions

The options to snapshot.