GitHub

DaffTestingCategoryService

import { DaffTestingCategoryService } from '@daffodil/category/driver/testing'

The category testing driver to mock DaffCategoryServiceInterface.

@Injectable()
class DaffTestingCategoryService implements DaffCategoryServiceInterface {
  get(categoryRequest: DaffCategoryIdRequest): Observable<DaffGetCategoryResponse>
  getByUrl(categoryRequest: DaffCategoryUrlRequest): Observable<DaffGetCategoryResponse>
}

() Methods

get
Observable<DaffGetCategoryResponse>

Fetch a category by its ID.

Parameters
ParametercategoryRequest: DaffCategoryIdRequest
Description
getByUrl
Observable<DaffGetCategoryResponse>

Fetch a category by its associated URL.

Parameters
ParametercategoryRequest: DaffCategoryUrlRequest
Description