Constructors
constructor
new EntityBuilder<E extends Entity<any>>( EntityClass: new (props: any, id: any) => E,): EntityBuilder<E> Parameters
- EntityClass: new (props: any, id: any) => E
Methods
withProps
withProps(props: Partial<any>): this
buildMany
buildMany(count: number): E[]
Generic Entity Builder for testing
Provides a fluent API for building test entities.
Example