예제 #1
0
        public void Generate_PathToFormModelEmpty_ShouldThrow()
        {
            Action action = () => _formModelGenerator.Generate(new List <FormField>(), string.Empty);

            var exception = Assert.Throws <ArgumentException>(action);

            Assert.Equal("Path to FormModel class not provided.", exception.Message);
        }
예제 #2
0
파일: Program.cs 프로젝트: drmacm/pdfiller
        private static string GenerateFormModel(List <FormField> formFields, string pathToFormModel)
        {
            var formModelGenerator = new FormModelGenerator();
            var formModelContent   = formModelGenerator.Generate(formFields, pathToFormModel);

            return(formModelContent);
        }