MockDaffCategoryFacade

Can be used to mock out the DaffCategoryFacade in testing environments.

Properties

Name Type Description
category$ BehaviorSubject<DaffCategory> The currently selected category.
loadingState$ BehaviorSubject<DaffCategoryReducerState['daffState']>
loading$ BehaviorSubject<boolean>
mutating$ BehaviorSubject<boolean>
resolving$ BehaviorSubject<boolean>
hasErrors$ BehaviorSubject<boolean>
products$ BehaviorSubject<DaffProduct[]> Products of the current category.
errors$ BehaviorSubject<DaffStateError[]>
isCategoryEmpty$ BehaviorSubject<boolean> Is the category page empty of products.
getCategoryById BehaviorSubject<DaffCategory> Get a category by the provided Id.
getProductsByCategory BehaviorSubject<DaffProduct[]> Get products by a category Id.
getTotalProductsByCategory BehaviorSubject<number> Get products by a category Id.
dispatch
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.