21 lines
532 B
Plaintext
21 lines
532 B
Plaintext
{{#apiInfo}}
|
|
{{#apis}}
|
|
{{#operations}}
|
|
import { Provider } from '@angular/core';
|
|
|
|
import { {{constantName}}_REPOSITORY } from '@/domain/repositories/{{classFilename}}.repository.contract';
|
|
import { mock{{classname}}RepositoryImpl } from '@/data/repositories/{{classFilename}}.repository.impl.mock';
|
|
|
|
export function mock{{classname}}Repository(): Provider[] {
|
|
return [
|
|
{
|
|
provide: {{constantName}}_REPOSITORY,
|
|
useFactory: () => mock{{classname}}RepositoryImpl()
|
|
}
|
|
];
|
|
}
|
|
|
|
{{/operations}}
|
|
{{/apis}}
|
|
{{/apiInfo}}
|