Exemplo n.º 1
0
        private static UrlTemplate TestUrlTemplate()
        {
            var o = new UrlTemplate
            {
                Id        = 12,
                Version   = 123,
                Comment   = "alalala",
                UrlString = "URL String"
            };

            o.XmlSerializeToFile();
            return(o);
        }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     UrlTemplate o1 = TestUrlTemplate();
     //
     JarZipFile o2 = TestJarZipFile();
     //
     FinderPath o3 = TestFinderPath();
     //
     ExcludePattern o4 = TestExcludePattern();
     //
     DriverManager o5 = TestDriverManager(o1, o2);
     //
     DriverManagerConfiguration o6 = TestDriverManagerConfiguration();
     //
     ConnectionProperty o7 = TestConnectionProperty();
     //
     DataStore o8 = TestDataStore();
     //
     DataColumn o9 = TestDataColumn();
 }
Exemplo n.º 3
0
        private static DriverManager TestDriverManager(UrlTemplate o1, JarZipFile o2)
        {
            var o = new DriverManager
            {
                Id                = 12,
                Version           = 123,
                Comment           = "alalala",
                Name              = "QWERTY",
                JarZipFileList    = new System.Collections.Generic.List <JarZipFile>(),
                UrlTemplateList   = new System.Collections.Generic.List <UrlTemplate>(),
                MainClassNameList = new System.Collections.Generic.List <string>()
            };

            o.MainClassNameList.Add("org.j256.h2");
            o.MainClassNameList.Add("org.jdbc.Oracle");
            o.UrlTemplateList.Add(o1);
            o.UrlTemplateList.Add(o1);
            o.JarZipFileList.Add(o2);
            o.JarZipFileList.Add(o2);
            o.JarZipFileList.Add(o2);

            o.XmlSerializeToFile();
            return(o);
        }