public void SetSqlDelete() { var mapdoc = new HbmMapping(); var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.SqlDelete("blah"); Assert.That(hbmJoin.SqlDelete, Is.Not.Null); Assert.That(hbmJoin.SqlDelete.Text[0], Is.EqualTo("blah")); }
public void SetSqlDelete() { var mapdoc = new HbmMapping(); var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.SqlDelete("blah"); hbmJoin.SqlDelete.Should().Not.Be.Null(); hbmJoin.SqlDelete.Text[0].Should().Be("blah"); }
public void SetSqlDeleteWithCheck() { var mapdoc = new HbmMapping(); var hbmJoin = new HbmJoin(); var mapper = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc); mapper.SqlDelete("blah", SqlCheck.RowCount); Assert.That(hbmJoin.SqlDelete, Is.Not.Null); Assert.That(hbmJoin.SqlDelete.Text[0], Is.EqualTo("blah")); Assert.That(hbmJoin.SqlDelete.checkSpecified, Is.True); Assert.That(hbmJoin.SqlDelete.check, Is.EqualTo(HbmCustomSQLCheck.Rowcount)); }