import { DaffCartItemFactory } from '@daffodil/cart/testing'
@Injectable()
class DaffCartItemFactory extends DaffModelFactory<DaffCartItem> {
_instantiationArgs: ConstructorParameters<Klass>
type: Constructable<DaffAccountRegistration, any[]>
fromProduct(product: DaffProduct): DaffCartItem
create(partial: Partial<T> = {}): T
createMany(
qty: number = 1
partial: Partial<T> = {}
): T[]
}
DaffCartItem| Parameter | product: DaffProduct |
|---|---|
| Description |
T| Parameter | partial: Partial |
|---|---|
| Default | {} |
| Description |
T[]| Parameter | qty: number |
|---|---|
| Default | 1 |
| Description |
| Parameter | partial: Partial |
|---|---|
| Default | {} |
| Description |