Esempio n. 1
0
        public void DataContainerMapIsFlattenedSerializable()
        {
            DataContainerMap map = DataManagerTestHelper.GetDataContainerMap(TestableClientTransaction.DataManager);

            DataContainerMap deserializedMap = FlattenedSerializer.SerializeAndDeserialize(map);

            Assert.That(deserializedMap, Is.Not.Null);
        }
Esempio n. 2
0
        public void DataContainerMap_Content()
        {
            DataContainerMap map = DataManagerTestHelper.GetDataContainerMap(TestableClientTransaction.DataManager);

            DomainObjectIDs.Order1.GetObject <Order> ();
            Assert.That(map.Count, Is.EqualTo(1));

            DataContainerMap deserializedMap = FlattenedSerializer.SerializeAndDeserialize(map);

            Assert.That(deserializedMap.TransactionEventSink, Is.Not.Null);
            Assert.That(deserializedMap.Count, Is.EqualTo(1));
        }