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);
        }
 public void ShouldConvertEntityTypeShortNameToCamelCaseWhenTransformingItToDocumnetType()
 {
     Assert.Equal("entity", DefaultEntityConfigConventions.EntityTypeToDocumentType(typeof(Entity)));
 }
        public void ShouldReturnFalseIfNoIdProperty()
        {
            var isPresent = DefaultEntityConfigConventions.GetIdMember(typeof(RevisionPublicFieldEntity)).IsDefined;

            Assert.False(isPresent);
        }