GitHub

DaffInMemoryCategoryService

Service

import { DaffInMemoryCategoryService } from '@daffodil/category/driver/in-memory'

The category in memory driver for mocking the DaffCategoryDriver with in memory data.

@Injectable()
class DaffInMemoryCategoryService extends DaffInMemoryDriverBase implements DaffCategoryServiceInterface {
  get(categoryRequest: DaffCategoryIdRequest): any
  getByUrl(categoryRequest: DaffCategoryUrlRequest): any
}

() Methods

get
any

Fetch a category by its ID.

Parameters
ParametercategoryRequest: DaffCategoryIdRequest
Description
getByUrl
any

Fetch a category by its associated URL.

Parameters
ParametercategoryRequest: DaffCategoryUrlRequest
Description