26 lines
551 B
C#
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);
|
|
}
|
|
|
|
} |