public void Generate_PathToFormModelEmpty_ShouldThrow() { Action action = () => _pdfFormFillingServiceGenerator.Generate(new List <FormField>(), string.Empty); var exception = Assert.Throws <ArgumentException>(action); Assert.Equal("Path to Pdf form filling service class not provided.", exception.Message); }
private static string GeneratePdfFormFillingService(List <FormField> formFields, string pathToPdfFormFillingService) { var pdfFormFillingServiceGenerator = new PdfFormFillingServiceGenerator(); var pdfFormFillingServiceContent = pdfFormFillingServiceGenerator.Generate(formFields, pathToPdfFormFillingService); return(pdfFormFillingServiceContent); }