Example #1
0
        public void IsTransientReturnsTrueIfComplexIdHasDefaultValue()
        {
            var entity = new EntityWithComplexId();

            entity.IsTransient()
            .Should()
            .BeTrue();
        }
Example #2
0
        public void IsTransientReturnsFalseIfComplexIdDoesNotHaveDefaultValue()
        {
            var entity = new EntityWithComplexId {
                Id = new VersionId(1, 0)
            };

            entity.IsTransient()
            .Should()
            .BeFalse();
        }