UNPKG

@bitloops/bl-transpiler

Version:
14 lines 709 B
import { BoundedContextModuleBuilder } from './boundedContextModuleBuilder.js'; import { WordsWithSpacesBuilder } from './wordsWithSpacesBuilder.js'; export class BoundedContextModuleBuilderDirector { builder; constructor() { this.builder = new BoundedContextModuleBuilder(); } buildBoundedContextModule({ boundedContextName, moduleName, }) { const boundedContext = new WordsWithSpacesBuilder().withName(boundedContextName).build(); const module = new WordsWithSpacesBuilder().withName(moduleName).build(); return this.builder.withBoundedContext(boundedContext).withModule(module).build(); } } //# sourceMappingURL=boundedContextModuleBuilderDirector.js.map