public void SelectString_쿼리_가져오기() { MysqlORMHelper helper = new MysqlORMHelper(); MysqlRepositoryString RepositoryString = new MysqlRepositoryString(helper); TestClass t = new TestClass(); string expect = "SELECT * FROM Test WHERE 1=1"; var actual = RepositoryString.SelectString(t); Assert.Equal(expect, actual); t.Id = 1; string expect2 = "SELECT * FROM Test WHERE 1=1 AND Test.Id = @Id"; var actual2 = RepositoryString.SelectString(t); Assert.Equal(expect2, actual2); }
public MysqlRepositoryStringTest() { helper = new MysqlORMHelper(); RepositoryString = new MysqlRepositoryString(helper); }