예제 #1
0
        public void TheWhereContainerisChangedButTheConnectionStringIsTheSame()
        {
            var firstColumnIsEqualToFirstValue =
               new Where()
                   [
                       FirstColumn.IsEqualTo(FirstValue)
                   ];

            var deleteStatement = new Delete(SomeTable).Where(firstColumnIsEqualToFirstValue).ConnectTo("a");
            var record = deleteStatement.Where(new Where()[FirstColumn.IsEqualTo(1)]);

            RetrieveValueFromObject(deleteStatement, ConnectionKeyword).Should().Be(RetrieveValueFromObject(record, ConnectionKeyword));
        }
예제 #2
0
        public void TheWhereContainerisChangedButANewDeleteIsCreated()
        {
            var firstColumnIsEqualToFirstValue =
               new Where()
                   [
                       FirstColumn.IsEqualTo(FirstValue)
                   ];

            var deleteStatement = new Delete(SomeTable).Where(firstColumnIsEqualToFirstValue).ConnectTo("a");
            var record = deleteStatement.Where(new Where()[FirstColumn.IsEqualTo(1)]);

            deleteStatement.Should().NotBe(record);
        }