Class ProtoDataValueContext

Namespace
ProtoTest.Data
Assembly
ProtoTest.Data.dll

Per-member context supplied to configured value providers.

public sealed class ProtoDataValueContext
Inheritance
ProtoDataValueContext
Inherited Members
Extension Methods

Properties

MemberName

public string MemberName { get; }

Property Value

string

ObjectSequence

public long ObjectSequence { get; }

Property Value

long

Services

public IServiceProvider Services { get; }

Property Value

IServiceProvider

TargetType

public Type TargetType { get; }

Property Value

Type

TestId

public string TestId { get; }

Property Value

string

ValueType

public Type ValueType { get; }

Property Value

Type

Methods

NextGuid()

Creates a reproducible GUID unique to this object member and call index.

public Guid NextGuid()

Returns

Guid

NextString()

Creates a readable deterministic string for this member.

public string NextString()

Returns

string

Ref<T>(string?)

Resolves an object provisioned earlier in this test, so a default can reference it.

public T Ref<T>(string? identity = null)

Parameters

identity string

Returns

T

Type Parameters

T