MockDaffGeographyFacade
import { MockDaffGeographyFacade } from '@daffodil/geography/state/testing'
@Injectable()
class MockDaffGeographyFacade implements DaffGeographyFacadeInterface {
loading$: BehaviorSubject<boolean>
errors$: BehaviorSubject<DaffStateError[]>
countries$: BehaviorSubject<DaffCountry[]>
countryIds$: BehaviorSubject<DaffCountry['id'][]>
countryCount$: BehaviorSubject<number>
countryEntities$: BehaviorSubject<Dictionary<DaffCountry>>
getCountry(id)
getCountrySubdivisions(id)
isCountryFullyLoaded(id)
dispatch(action: Action<string>)
}
Properties
Name | Type | Description |
---|---|---|
loading$ | BehaviorSubject<boolean> | |
errors$ | BehaviorSubject<DaffStateError[]> | |
countries$ | BehaviorSubject<DaffCountry[]> | |
countryIds$ | BehaviorSubject<DaffCountry['id'][]> | |
countryCount$ | BehaviorSubject<number> | |
countryEntities$ | BehaviorSubject<Dictionary<DaffCountry>> | |
getCountry | ||
getCountrySubdivisions | ||
isCountryFullyLoaded | ||
dispatch |