public void IsNew_ForNewInstance_ReturnsTrue() { var entity = new EntityWithIdOfGuid(); Assert.AreEqual(Guid.Empty, entity.Id); Assert.IsTrue(entity.IsNew()); }
public void IsNew_WithNonDefaultValues_ReturnFalse() { var entity = new EntityWithIdOfGuid { Id = Guid.NewGuid() }; Assert.IsFalse(entity.IsNew()); }