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]")); }
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]")); }
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]")); }
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]")); }
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]")); }
public void Can_Map_Alias_Property() { // Act string column = new PropertyTypeMapper(MockSqlContext(), CreateMaps()).Map("Alias"); // Assert Assert.That(column, Is.EqualTo("[cmsPropertyType].[Alias]")); }
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]")); }
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]")); }
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]")); }
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]")); }
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]")); }