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)); }
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); }