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]")); }
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]")); }
public void Can_Map_Id_Property() { // Act string column = new PropertyGroupMapper(MockSqlContext(), CreateMaps()).Map("Id"); // Assert Assert.That(column, Is.EqualTo("[cmsPropertyTypeGroup].[id]")); }
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]")); }
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]")); }
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]")); }