Esempio n. 1
0
        public void NewPersonWithIntAsIdIsTransient()
        {
            var person = new PersonWithIntAsId();

            Assert.True(person.IsTransient());
            //person.IsTransient().Should().BeTrue();
        }
        public void PersonWithIntAsIdWithValueIsNotTransient()
        {
            var person = new PersonWithIntAsId {
                Id = 4
            };

            person.IsTransient().Should().BeFalse();
        }
Esempio n. 3
0
        public void SetIdentitySetANonTransientEntity()
        {
            //Arrange
            var entity = new PersonWithIntAsId {
                Id = 1
            };

            //Assert
            Assert.False(entity.IsTransient());
        }
        public void NewPersonWithIntAsIdIsTransient()
        {
            var person = new PersonWithIntAsId();

            person.IsTransient().Should().BeTrue();
        }