GitHub

DaffTestingCategoryService

The category testing driver to mock DaffCategoryServiceInterface.

import { DaffTestingCategoryService } from '@daffodil/category/driver/testing'
@Injectable()
class DaffTestingCategoryService implements DaffCategoryServiceInterface {
  get(categoryRequest: DaffCategoryIdRequest): Observable<DaffGetCategoryResponse>
  getByUrl(categoryRequest: DaffCategoryUrlRequest): Observable<DaffGetCategoryResponse>
}

Properties

Name Type Description
get Observable<DaffGetCategoryResponse>

Fetch a category by its ID.

getByUrl Observable<DaffGetCategoryResponse>

Fetch a category by its associated URL.