コード例 #1
0
    public void Can_Map_Name_Property()
    {
        // Act
        var column = new PropertyGroupMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("Name");

        // Assert
        Assert.That(column, Is.EqualTo("[cmsPropertyTypeGroup].[text]"));
    }
コード例 #2
0
        public void Can_Map_SortOrder_Property()
        {
            // Act
            string column = new PropertyGroupMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("SortOrder");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyTypeGroup].[sortorder]"));
        }
コード例 #3
0
        public void Can_Map_Id_Property()
        {
            // Act
            string column = new PropertyGroupMapper(MockSqlContext(), CreateMaps()).Map("Id");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyTypeGroup].[id]"));
        }
コード例 #4
0
        public void Can_Map_Name_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider();

            // Act
            string column = new PropertyGroupMapper().Map("Name");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyTypeGroup].[text]"));
        }
コード例 #5
0
        public void Can_Map_SortOrder_Property()
        {
            // Arrange
            var sqlSyntaxProvider = new SqlCeSyntaxProvider();

            // Act
            string column = new PropertyGroupMapper().Map(sqlSyntaxProvider, "SortOrder");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyTypeGroup].[sortorder]"));
        }
コード例 #6
0
        public void Can_Map_ParentId_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = SqlCeSyntax.Provider;

            // Act
            string column = new PropertyGroupMapper().Map("ParentId");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyTypeGroup].[parentGroupId]"));
        }