Exemple #1
0
        public void Can_Map_DataTypeDatabaseType_Property()
        {
            // Act
            string column = new PropertyTypeMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("ValueStorageType");

            // Assert
            Assert.That(column, Is.EqualTo($"[{Constants.DatabaseSchema.Tables.DataType}].[dbType]"));
        }
Exemple #2
0
        public void Can_Map_SortOrder_Property()
        {
            // Act
            string column = new PropertyTypeMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("SortOrder");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[sortOrder]"));
        }
Exemple #3
0
        public void Can_Map_PropertyEditorAlias_Property()
        {
            // Act
            string column = new PropertyTypeMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("PropertyEditorAlias");

            // Assert
            Assert.That(column, Is.EqualTo($"[{Constants.DatabaseSchema.Tables.DataType}].[propertyEditorAlias]"));
        }
        public void Can_Map_DataTypeDatabaseType_Property()
        {
            // Act
            string column = new PropertyTypeMapper().Map(new SqlCeSyntaxProvider(), "ValueStorageType");

            // Assert
            Assert.That(column, Is.EqualTo($"[{Constants.DatabaseSchema.Tables.DataType}].[dbType]"));
        }
Exemple #5
0
        public void Can_Map_DataTypeDefinitionId_Property()
        {
            // Act
            string column = new PropertyTypeMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("DataTypeId");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[dataTypeId]"));
        }
        public void Can_Map_SortOrder_Property()
        {
            // Act
            string column = new PropertyTypeMapper().Map(new SqlCeSyntaxProvider(), "SortOrder");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[sortOrder]"));
        }
        public void Can_Map_PropertyEditorAlias_Property()
        {
            // Act
            string column = new PropertyTypeMapper().Map(new SqlCeSyntaxProvider(), "PropertyEditorAlias");

            // Assert
            Assert.That(column, Is.EqualTo($"[{Constants.DatabaseSchema.Tables.DataType}].[propertyEditorAlias]"));
        }
        public void Can_Map_Alias_Property()
        {
            // Act
            string column = new PropertyTypeMapper().Map(new SqlCeSyntaxProvider(), "Alias");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[Alias]"));
        }
        public void Can_Map_DataTypeDefinitionId_Property()
        {
            // Act
            string column = new PropertyTypeMapper().Map(new SqlCeSyntaxProvider(), "DataTypeId");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[dataTypeId]"));
        }
Exemple #10
0
    public void Can_Map_Alias_Property()
    {
        // Act
        var column = new PropertyTypeMapper(TestHelper.GetMockSqlContext(), TestHelper.CreateMaps()).Map("Alias");

        // Assert
        Assert.That(column, Is.EqualTo("[cmsPropertyType].[Alias]"));
    }
Exemple #11
0
        public void Can_Map_Alias_Property()
        {
            // Act
            string column = new PropertyTypeMapper(MockSqlContext(), CreateMaps()).Map("Alias");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[Alias]"));
        }
Exemple #12
0
        public void Can_Map_DataTypeDatabaseType_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider();

            // Act
            string column = new PropertyTypeMapper().Map("DataTypeDatabaseType");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsDataType].[dbType]"));
        }
Exemple #13
0
        public void Can_Map_PropertyEditorAlias_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider();

            // Act
            string column = new PropertyTypeMapper().Map("PropertyEditorAlias");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsDataType].[propertyEditorAlias]"));
        }
Exemple #14
0
        public void Can_Map_Id_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider();

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

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[id]"));
        }
Exemple #15
0
        public void Can_Map_DataTypeControlId_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = SqlCeSyntax.Provider;

            // Act
            string column = new PropertyTypeMapper().Map("DataTypeId");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsDataType].[controlId]"));
        }
Exemple #16
0
        public void Can_Map_SortOrder_Property()
        {
            // Arrange
            SqlSyntaxContext.SqlSyntaxProvider = SqlCeSyntax.Provider;

            // Act
            string column = new PropertyTypeMapper().Map("SortOrder");

            // Assert
            Assert.That(column, Is.EqualTo("[cmsPropertyType].[sortOrder]"));
        }