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);
        }
예제 #2
0
파일: Program.cs 프로젝트: drmacm/pdfiller
        private static string GeneratePdfFormFillingService(List <FormField> formFields, string pathToPdfFormFillingService)
        {
            var pdfFormFillingServiceGenerator = new PdfFormFillingServiceGenerator();
            var pdfFormFillingServiceContent   = pdfFormFillingServiceGenerator.Generate(formFields, pathToPdfFormFillingService);

            return(pdfFormFillingServiceContent);
        }