import { MockDaffCustomerAddressPageFacade } from '@daffodil/customer/state/testing'
Mocks out facade fields and methods for testing purposes.
@Injectable()
class MockDaffCustomerAddressPageFacade extends MockDaffOperationStateFacade implements DaffCustomerAddressPageFacadeInterface {
addresses$: BehaviorSubject<DaffCustomerAddressEntity[]> = new BehaviorSubject<DaffCustomerAddressEntity[]>([])
errors$: BehaviorSubject<DaffStateError[]> = new BehaviorSubject<DaffStateError[]>([])
loadingState$: BehaviorSubject<DaffState> = new BehaviorSubject<DaffState>(DaffState.Stable)
loading$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false)
resolving$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false)
mutating$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false)
hasErrors$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false)
getAddress(): any
dispatch(action: Action<string>): void
}
BehaviorSubject<DaffCustomerAddressEntity[]>| Default | new BehaviorSubject<DaffCustomerAddressEntity[]>([]) |
|---|---|
| Description | A list of all customer address entities. |
BehaviorSubject<DaffStateError[]>| Default | new BehaviorSubject<DaffStateError[]>([]) |
|---|---|
| Description |
BehaviorSubject<DaffState>| Default | new BehaviorSubject<DaffState>(DaffState.Stable) |
|---|---|
| Description | The loading state enum. |
BehaviorSubject| Default | new BehaviorSubject<boolean>(false) |
|---|---|
| Description | Whether the operation state is in any of the loading states. |
BehaviorSubject| Default | new BehaviorSubject<boolean>(false) |
|---|---|
| Description | Whether the operation state is resolving. |
BehaviorSubject| Default | new BehaviorSubject<boolean>(false) |
|---|---|
| Description | Whether the operation state is mutating. |
BehaviorSubject| Default | new BehaviorSubject<boolean>(false) |
|---|---|
| Description | Whether the operation state has any errors. If so, it should be considered to be in an "error" state. |
anyvoid| Parameter | action: Action |
|---|---|
| Description |