public void IsNew_ForNewInstance_ReturnsTrue()
        {
            var entity = new EntityWithIdOfInt();

            Assert.AreEqual(0, entity.Id);
            Assert.IsTrue(entity.IsNew());
        }
        public void IsNew_WithNonDefaultValues_ReturnFalse()
        {
            var entity = new EntityWithIdOfInt
            {
                Id = 1
            };

            Assert.IsFalse(entity.IsNew());
        }