예제 #1
0
        public void IsTransient()
        {
            //Arrange
            IEntity entity;

            //Act
            entity = new FakeEntity();

            // Assert
            Assert.IsTrue(entity.IsTransient());
        }
예제 #2
0
        public void IsNotTransient()
        {
            //Arrange
            IEntity entity;

            //Act
            entity = new FakeEntity { Identity = Guid.NewGuid() };

            // Assert
            Assert.IsFalse(entity.IsTransient());
        }