コード例 #1
0
ファイル: JoinMapperTests.cs プロジェクト: jrauber/GH1429
        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"));
        }
コード例 #2
0
        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");
        }
コード例 #3
0
        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));
        }