Interface IProtoData

Namespace
ProtoTest.Data
Assembly
ProtoTest.Data.dll

Creates deterministic, explainable data builders and resolves what they provisioned.

public interface IProtoData
Extension Methods

Methods

For<T>()

Starts building an instance of T.

ProtoDataObjectBuilder<T> For<T>()

Returns

ProtoDataObjectBuilder<T>

Type Parameters

T

Ref<T>(string?)

Resolves an object provisioned earlier in this test so a value can reference it, for example a foreign key. Pass identity when several objects of the type were provisioned.

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

Parameters

identity string

Returns

T

Type Parameters

T