public void ShouldSetAndGetRevision(Type entityType) { var revision = Guid.NewGuid().ToString(); var entity = Activator.CreateInstance(entityType); var descriptor = DefaultEntityConfigConventions.GetRevisionMember(entityType); descriptor.SetValue(entity, revision); var returnedRevision = descriptor.GetValue(entity); Assert.Equal(revision, returnedRevision); }
public void ShouldReturnFalseIfNoRevisionProperty() { var isPresent = DefaultEntityConfigConventions.GetRevisionMember(typeof(IdPrivatePropertyEntity)).IsDefined; Assert.False(isPresent); }