public void ShouldBindModelToTableModel() { ModelTest model = new ModelTest() { id = 1, name = "test"}; TableModel tModel = new ModelLinker<ModelTest>(model).LinkModel(); Assert.AreEqual("TAB_MODEL", tModel.GetTableName()); Assert.AreEqual(1, tModel.GetColumnValue("MODEL_ID")); Assert.AreEqual("test", tModel.GetColumnValue("name")); }
public void ShouldGenerateInsertSQLStatement() { ModelTest model = new ModelTest() { id = 1, name = "test"}; XBind xbind = default_xbind(); xbind.Save<ModelTest>(model); }