<PackageReference Include="Relativity.Server.Testing.Framework.SDK" Version="5000.1.0" />

CreateStrategy<T>

public abstract class CreateStrategy<T> : ICreateStrategy<T> where T : Artifact
Represents base strategy of entity creation.
protected CreateStrategy()

protected static void FillRequiredProperties(T entity)

Fills the required properties of the entity.

protected static void ValidateEntity(T entity)

Validates the entity.

public T Create(T entity)

Creates the specified entity. Before the creation ensures that entity is not null and fills required properties of entity if it implements IFillsRequiredProperties<T>. After the creation adds created entity to the current session.

protected abstract T DoCreate(T entity)

Does create the specified entity.