import { MockDaffCustomerPaymentPageFacade } from '@daffodil/customer-payment/state/testing'
Mocks out facade fields and methods for testing purposes.
@Injectable()
class MockDaffCustomerPaymentPageFacade extends MockDaffOperationStateFacade implements DaffCustomerPaymentPageFacadeInterface {
payments$: BehaviorSubject<DaffCustomerPaymentEntity[]> = new BehaviorSubject<DaffCustomerPaymentEntity[]>([])
errors$: BehaviorSubject<DaffStateError[]> = new BehaviorSubject<DaffStateError[]>([])
getPayment(): any
dispatch(action: Action<string>): void
}
BehaviorSubject<DaffCustomerPaymentEntity[]>| Default | new BehaviorSubject<DaffCustomerPaymentEntity[]>([]) |
|---|---|
| Description | A list of all customer payment entities. |
BehaviorSubject<DaffStateError[]>| Default | new BehaviorSubject<DaffStateError[]>([]) |
|---|---|
| Description |
anyGet a payment entity by ID.
void| Parameter | action: Action |
|---|---|
| Description |