Esempio n. 1
0
        public void GivenAnUntypedUnversionedReferenceThenTheSameInstanceIsReturned()
        {
            var aggregate = new SerializableAggregateRoot();
            var original  = Reference.Create(aggregate.Id, aggregate.GetType());

            Reference unversioned = original.ToUnversioned();

            Assert.Equal(original, unversioned);
            Assert.Same(original, unversioned);
            Assert.False(original.IsVersioned);
            Assert.False(unversioned.IsVersioned);
        }