import { DaffReviewedProductFactory } from '@daffodil/reviews/testing'
Factory for creating DaffReviewedProducts.
It will create a product of random kind with the additional review fields.
@Injectable()
class DaffReviewedProductFactory extends DaffModelFactory<DaffReviewedProduct> {
_instantiationArgs: ConstructorParameters<Klass>
type: Constructable<DaffAccountRegistration, any[]>
create(partial: Partial<DaffReviewedProduct> = {}): DaffReviewedProduct
createMany(
qty: number = 1
partial: Partial<T> = {}
): T[]
}
DaffReviewedProduct| Parameter | partial: Partial<DaffReviewedProduct> |
|---|---|
| Default | {} |
| Description |
T[]| Parameter | qty: number |
|---|---|
| Default | 1 |
| Description |
| Parameter | partial: Partial |
|---|---|
| Default | {} |
| Description |