Exemple #1
0
        public void StringShouldBeConstructed()
        {
            var builder  = new EdmPropertyBuilder();
            var property = builder.Build <string>("Name");

            property.Should().NotBeNull();
            property.Name.Should().Be("Name");
            property.PrimitiveType.Should().Be(PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.String));
        }
Exemple #2
0
        public void Int32ShouldBeConstructed()
        {
            var builder  = new EdmPropertyBuilder();
            var property = builder.Build <int>("ID");

            property.Should().NotBeNull();
            property.Name.Should().Be("ID");
            property.PrimitiveType.Should().Be(PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Int32));
        }