import { MockDaffCustomerStoreCreditPageFacade } from '@daffodil/customer-store-credit/state/testing'
Mocks out facade fields and methods for testing purposes.
@Injectable()
class MockDaffCustomerStoreCreditPageFacade extends MockDaffOperationStateFacade implements DaffCustomerStoreCreditPageFacadeInterface {
storeCredit$: BehaviorSubject<DaffCustomerStoreCredit> = new BehaviorSubject<DaffCustomerStoreCredit>(null)
dispatch(action: Action<string>): void
}
BehaviorSubject<DaffCustomerStoreCredit>
Default | new BehaviorSubject<DaffCustomerStoreCredit>(null) |
---|---|
Description | The customer's current store credit. |
void
Parameter | action: Action |
---|---|
Description |