GitHub

DaffCustomerPaymentEntityFactory

Model Factory

import { DaffCustomerPaymentEntityFactory } from '@daffodil/customer-payment/state/testing'

Model factory for DaffCustomerPaymentEntity.

@Injectable()
class DaffCustomerPaymentEntityFactory extends DaffModelFactory<DaffCustomerPaymentEntity> {
  override
  _instantiationArgs: ConstructorParameters<Klass>
  type: Constructable<DaffAccountRegistration, any[]>

  create<T extends DaffCustomerPayment = DaffCustomerPayment>(partial?: Partial<DaffOperationEntity<DaffCustomerPayment<unknown>>> & Exclude<T, DaffOperationEntity<DaffIdentifiable>>): DaffOperationEntity<T>
  createMany(
    qty: number = 1
    partial: Partial<T> = {}
  ): T[]
}

() Methods

Parameters
Parameterpartial: Partial<DaffOperationEntity<DaffCustomerPayment>> & ExcludeDaffOperationEntity<DaffIdentifiable>>
Description
createMany
T[]
Parameters
Parameterqty: number
Default1
Description
Parameterpartial: Partial
Default{}
Description