Files
api-generator/Generator/Repo/ExportRepo.cs
2025-10-11 13:08:09 +02:00

26 lines
551 B
C#

using Core;
using Core.Templates;
using Generator.Daos;
using Generator.Infrastructure.Export;
namespace Generator.Repo;
public class ExportRepo
{
private readonly TemplateDao _templateDao;
private readonly Exporter _exporter;
public ExportRepo(TemplateDao templateDao)
{
_templateDao = templateDao;
_exporter = new Exporter(new MustacheTemplateFactory());
}
public void PlantUml(ISpecFile file)
{
var export = _templateDao.PlantUml(file);
_exporter.PlantUml(export, file);
}
}