Пример #1
0
    public void Can_Map_Alias_Property()
    {
        // Act
        var column = new RelationTypeMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("Alias");

        // Assert
        Assert.That(column, Is.EqualTo("[umbracoRelationType].[alias]"));
    }
Пример #2
0
        public void Can_Map_ChildObjectType_Property()
        {
            // Act
            string column = new RelationTypeMapper(MockSqlContext(), CreateMaps()).Map("ChildObjectType");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[childObjectType]"));
        }
Пример #3
0
        public void Can_Map_IsBidirectional_Property()
        {
            // Act
            string column = new RelationTypeMapper(MockSqlContext(), CreateMaps()).Map("IsBidirectional");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[dual]"));
        }
Пример #4
0
        public void Can_Map_Id_Property()
        {
            // Act
            string column = new RelationTypeMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("Id");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[id]"));
        }
        public void Can_Map_IsBidirectional_Property()
        {
            // Act
            string column = new RelationTypeMapper().Map(new SqlCeSyntaxProvider(), "IsBidirectional");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[dual]"));
        }
        public void Can_Map_ChildObjectType_Property()
        {
            // Act
            string column = new RelationTypeMapper().Map(new SqlCeSyntaxProvider(), "ChildObjectType");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[childObjectType]"));
        }
        public void Can_Map_Alias_Property()
        {
            // Act
            string column = new RelationTypeMapper().Map(new SqlCeSyntaxProvider(), "Alias");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[alias]"));
        }
        public void Can_Map_Id_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider();

            // Act
            string column = new RelationTypeMapper().Map("Id");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[id]"));
        }
Пример #9
0
        public void Can_Map_Alias_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = SqlCeSyntax.Provider;

            // Act
            string column = new RelationTypeMapper().Map("Alias");

            // Assert
            Assert.That(column, Is.EqualTo("[umbracoRelationType].[alias]"));
        }