public void MapBuilder_ShouldMapPublicProperties_MinusExclusions() { var mapBuilder = new MapBuilder(); var maps = mapBuilder.BuildColumnsExcept<UnmappedPerson>("ID", "Name"); Assert.IsTrue(maps.Count == 4); Assert.IsNotNull(maps["Age"]); Assert.IsNotNull(maps["BirthDate"]); Assert.IsNotNull(maps["IsHappy"]); Assert.IsNotNull(maps["Pets"]); }
public void MapBuilder_ShouldMapPublicProperties_MinusExclusions() { var mapBuilder = new MapBuilder(); var maps = mapBuilder.BuildColumnsExcept <UnmappedPerson>("ID", "Name"); Assert.IsTrue(maps.Count == 4); Assert.IsNotNull(maps["Age"]); Assert.IsNotNull(maps["BirthDate"]); Assert.IsNotNull(maps["IsHappy"]); Assert.IsNotNull(maps["Pets"]); }
public void MapBuilder_ShouldMapPublicProperties_MinusExclusions() { var mapBuilder = new MapBuilder(); var maps = mapBuilder.BuildColumnsExcept<UnmappedPerson>("ID", "Name"); Assert.IsTrue(maps.MappedColumns.Count == 4); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("Age")); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("BirthDate")); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("IsHappy")); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("Pets")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("Age")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("BirthDate")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("IsHappy")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("Pets")); }
public void MapBuilder_ShouldMapPublicProperties_MinusExclusions() { var mapBuilder = new MapBuilder(); var maps = mapBuilder.BuildColumnsExcept <UnmappedPerson>("ID", "Name"); Assert.IsTrue(maps.MappedColumns.Count == 4); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("Age")); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("BirthDate")); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("IsHappy")); Assert.IsNotNull(maps.MappedColumns.GetByColumnName("Pets")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("Age")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("BirthDate")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("IsHappy")); Assert.IsNotNull(_mapRepository.Columns[_personType].GetByColumnName("Pets")); }