import { DaffDefaultProductFactory } from '@daffodil/product/testing'
Factory for creating simple DaffProducts of no special kind.
@Injectable()
class DaffDefaultProductFactory extends DaffModelFactory<DaffProduct> {
_instantiationArgs: ConstructorParameters<Klass>
type: Constructable<DaffAccountRegistration, any[]>
create(partial: Partial<T> = {}): T
createMany(
qty: number = 1
partial: Partial<T> = {}
): T[]
}
T| Parameter | partial: Partial |
|---|---|
| Default | {} |
| Description |
T[]| Parameter | qty: number |
|---|---|
| Default | 1 |
| Description |
| Parameter | partial: Partial |
|---|---|
| Default | {} |
| Description |