Skip to content

IItemBuilder<TFixtureItem>.Build method

Builds a concrete instance of type TFixtureItem as configured by this builder. If TFixtureItem is a twizzar base-type a unique value of the given type will be returned. If TFixtureItem is an interface, it will be a stub of Type TFixtureItem. If TFixtureItem is a class, the type itself will be created via reflection.

Unique has different meaning for different types:

  • Numeric value: Uses an algorithm to create a unique value.
  • String: generates a GUID. * Chars: Uses the same algorithm as Numeric values.
  • Bool: Returns True.
csharp
public TFixtureItem Build()
public TFixtureItem Build()

Return Value

A instance of type TFixtureItem.

See Also