public void CreateDefinition() { ApplicationDefinition application = DemoModel.Create(); Assert.AreEqual("Demo", application.Name); Assert.AreEqual(application.Databases.Count, 1); }
public void CreateDefinition() { ApplicationDefinition application = DemoModel.Create(); DatabaseDefinition database = application.Databases.First(); Assert.AreEqual("Database", database.Name); Assert.AreEqual(1, database.Tables.Count); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }