import { CourseName } from '../../../../../src/Contexts/Mooc/Courses/domain/CourseName' ; import { WordMother } from '../../../Shared/domain/WordMother' ; export class CourseNameMother { static create ( value ) { return new CourseName ( value ) ; } static random ( ) { return this . create ( WordMother . random ( { maxLength : 30 } ) ) ; } static invalidName ( ) { return "a" . repeat ( 40 ) ; } }