public void CheckMappingOfVersionedEntity() { var mappedType = TypeMapperFactory .CreateByConventions(null, null, new VersionConvention()) .Map <VersionedEntity>(); mappedType.Primitives.Single() .Name.Should().Be("Name"); mappedType.Version .Name.Should().Be("Version"); }
public void CheckMappingOfVersionedEntity() { var mappedType = TypeMapperFactory .CreateByConventions(null, null, new VersionConvention()) .Map <VersionedEntityWithBlob>(); mappedType .Primitives .Select(x => x.Name) .Should().BeEquivalentTo("Name", "Data"); mappedType.Version .Name.Should().Be("Version"); }