Example #1
0
        public void CreateDefinition()
        {
            ApplicationDefinition application = DemoModel.Create();

            Assert.AreEqual("Demo", application.Name);
            Assert.AreEqual(application.Databases.Count, 1);
        }
Example #2
0
        public void CreateDefinition()
        {
            ApplicationDefinition application = DemoModel.Create();

            DatabaseDefinition database = application.Databases.First();

            Assert.AreEqual("Database", database.Name);
            Assert.AreEqual(1, database.Tables.Count);
        }
Example #3
0
        public void CreateDefinition()
        {
            ApplicationDefinition application = DemoModel.Create();

            DatabaseDefinition database = application.Databases.First();
            TableDefinition    table    = database.Tables.First();
            FieldDefinition    field    = table.Fields.First();

            Assert.AreEqual("ID", field.Name);
        }
Example #4
0
        public void CreateDefinition()
        {
            ApplicationDefinition application = DemoModel.Create();

            DatabaseDefinition database = application.Databases.First();
            TableDefinition    table    = database.Tables.First();

            Assert.AreEqual("Customer", table.Name);
            Assert.AreEqual(3, table.Fields.Count);
        }
Example #5
0
        public void CreateInfo()
        {
            ApplicationDefinition application = DemoModel.Create();

            ApplicationInfo applicationInfo = new ApplicationInfo();

            applicationInfo.Set(application);

            Assert.AreEqual("Demo", applicationInfo.Name);
            Assert.AreEqual(applicationInfo.Databases.Count, 1);
        }
Example #6
0
        public void CreateDefinition()
        {
            ApplicationDefinition application     = DemoModel.Create();
            ApplicationInfo       applicationInfo = new ApplicationInfo();

            applicationInfo.Set(application);

            EfFactory factory = new EfFactory();

            Shipment shipment = new Shipment();

            factory.Manufacture(shipment, applicationInfo);
        }
Example #7
0
        public void CreateInfo()
        {
            ApplicationDefinition applicationDefinition = DemoModel.Create();

            ApplicationInfo application = new ApplicationInfo();

            application.Set(applicationDefinition);

            DatabaseInfo database = application.Databases.First();

            Assert.AreEqual("Database", database.Name);
            Assert.AreEqual(1, database.Tables.Count);
        }
Example #8
0
        public void CreateInfo()
        {
            ApplicationDefinition applicationDefinition = DemoModel.Create();

            ApplicationInfo application = new ApplicationInfo();

            application.Set(applicationDefinition);

            DatabaseInfo database = application.Databases.First();
            TableInfo    table    = database.Tables.First();
            IFieldInfo   field    = table.Fields.First();

            Assert.AreEqual("ID", field.Name);
        }
Example #9
0
        public void CreateInfo()
        {
            ApplicationDefinition applicationDefinition = DemoModel.Create();

            ApplicationInfo application = new ApplicationInfo();

            application.Set(applicationDefinition);

            DatabaseInfo database = application.Databases.First();
            TableInfo    table    = database.Tables.First();

            Assert.AreEqual("Customer", table.Name);
            Assert.AreEqual(3, table.Fields.Count);
        }