Пример #1
0
        public void DeleteAndReturnValuesSequence()
        {
            var resp = connection.Run(testTable.DeleteAndReturnChanges());

            Assert.That(resp, Is.Not.Null);
            Assert.That(resp.FirstError, Is.Null);
            Assert.That(resp.Deleted, Is.EqualTo(1));
            Assert.That(resp.GeneratedKeys, Is.Null);
            Assert.That(resp.Changes, Is.Not.Null);
            Assert.That(resp.Changes, Has.Length.EqualTo(1));
            Assert.That(resp.Changes[0].OldValue, Is.Not.Null);
            Assert.That(resp.Changes[0].OldValue.Id, Is.EqualTo(insertedObject.Id));
            Assert.That(resp.Changes[0].NewValue, Is.Null);
        }