import { QueryHandler } from '../../../../Shared/domain/QueryHandler' ; import { FindCoursesCounterQuery } from './FindCoursesCounterQuery' ; import { FindCoursesCounterResponse } from './FindCoursesCounterResponse' ; import { Query } from '../../../../Shared/domain/Query' ; import { CoursesCounterFinder } from './CoursesCounterFinder' ; export class FindCoursesCounterQueryHandler implements QueryHandler < FindCoursesCounterQuery , FindCoursesCounterResponse > { constructor ( private finder ) { } subscribedTo ( ) { return FindCoursesCounterQuery ; } handle ( _query ) { return this . finder . run ( ) ; } }