public void TestGeneratedRandomFileNameWithComplexClass2AsData()
        {
            List <SimpleClass1> lstSimpleClass1 = new List <SimpleClass1>();


            lstSimpleClass1.Add(new SimpleClass1
            {
                Field1 = "Field 1 Line 1",
                Field2 = "Field 2 Line 1"
            });

            lstSimpleClass1.Add(new SimpleClass1
            {
                Field1 = "Field 1 Line 2",
                Field2 = "Field 2 Line 2"
            });

            lstSimpleClass1.Add(new SimpleClass1
            {
                Field1 = "Field 1 Line 3",
                Field2 = "Field 2 Line 3"
            });

            ComplexClass2 data = new ComplexClass2()
            {
                SC0 = "Hello 0",
                SC1 = lstSimpleClass1,
                SC2 = "Hello 3"
            };

            String generatedReportFileName;

            XlReportGenerator.Generate(data, "D:\\Test", "Report 1235", out generatedReportFileName);
        }
        public void TestGeneratedRandomFileNameWithComplexClass2AsData()
        {
            List<SimpleClass1> lstSimpleClass1 = new List<SimpleClass1>();

            lstSimpleClass1.Add(new SimpleClass1
            {
                Field1 = "Field 1 Line 1",
                Field2 = "Field 2 Line 1"
            });

            lstSimpleClass1.Add(new SimpleClass1
            {
                Field1 = "Field 1 Line 2",
                Field2 = "Field 2 Line 2"
            });

            lstSimpleClass1.Add(new SimpleClass1
            {
                Field1 = "Field 1 Line 3",
                Field2 = "Field 2 Line 3"
            });

            ComplexClass2 data = new ComplexClass2()
            {
                SC0 = "Hello 0",
                SC1 = lstSimpleClass1,
                SC2 = "Hello 3"
            };

            String generatedReportFileName;
            XlReportGenerator.Generate(data, "D:\\Test", "Report 1235", out generatedReportFileName);
        }