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");
        }
Exemplo n.º 2
0
        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");
        }