public DocumentParser() { DocumentBuilder documentBuilder = new DocumentBuilder(); AbstractDocument document = documentBuilder.BuildDocument(); document.GenerateDocument(); var template = CreateMainFile(); var hi = Mustache.cs.Mustache.render(template, document); Console.WriteLine(hi.ToString()); }
public AbstractDocument BuildDocument(DocumentToBuildEnum?documentToBuild = null) { AbstractDocument document = null; switch (documentToBuild) { case DocumentToBuildEnum.FreeOfChargeDocument: break; case DocumentToBuildEnum.TaxDocument: break; case DocumentToBuildEnum.WithholdingTaxDocument: break; default: document = new GenericDocument(); break; } return(document); }