Beispiel #1
0
        public virtual void TestDescendIsolation()
        {
            EmbeddedClientObjectContainerTestCase.Item storedItem = StoreItemToClient1AndCommit
                                                                        ();
            storedItem._name = ChangedName;
            _client1.Store(storedItem);
            int    id            = (int)_client1.GetID(storedItem);
            object retrievedItem = _client2.GetByID(id);

            Assert.IsNotNull(retrievedItem);
            object descendValue = _client2.Descend(retrievedItem, new string[] { FieldName });

            Assert.AreEqual(OriginalName, descendValue);
            _client1.Commit();
            descendValue = _client2.Descend(retrievedItem, new string[] { FieldName });
            Assert.AreEqual(ChangedName, descendValue);
        }