import { inject , injectable } from 'inversify' ; import { ReportNameGeneratorBuilder } from './report-name-generator-builder' ; @ injectable ( ) export class ReportNameGenerator { constructor ( @ inject ( ReportNameGeneratorBuilder ) private readonly reportNameGeneratorBuilder ) { } public generateName ( baseName , scanDate ) { return `${ baseName }-${ this . reportNameGeneratorBuilder . getDateSegment ( scanDate ) }-${ this . reportNameGeneratorBuilder . getTimeSegment ( scanDate ) }` ; } }