import { DaffProductKindFactory } from '@daffodil/product/testing'
Factory for creating DaffProducts. This will create a random product kind, including extra product kinds that may be provided by optional product packages.
@Injectable()
class DaffProductKindFactory extends DaffModelFactory<DaffProduct> {
_instantiationArgs: ConstructorParameters<Klass>
type: Constructable<DaffAccountRegistration, any[]>
create(partial: Partial<DaffProduct> = {}): DaffProduct
createMany(
qty: number = 1
partial: Partial<T> = {}
): T[]
}
DaffProductCreates a mock product of random kind. Includes extra product kinds that may be provided by optional product packages.
| Parameter | partial: Partial<DaffProduct> |
|---|---|
| Default | {} |
| Description |
T[]| Parameter | qty: number |
|---|---|
| Default | 1 |
| Description |
| Parameter | partial: Partial |
|---|---|
| Default | {} |
| Description |