public void Should_not_replace_column_with_explict_name()
        {
            var mapping = new TestMapping();
            var columnMapping = new ColumnMapping(typeof(Customer).GetProperty("DateOfBirth"));
            columnMapping.Named("Foo");

            mapping.Mappings.Add(columnMapping);
            modification.ApplyTo(mapping);

            Assert.That(columnMapping.Attributes["Name"], Is.EqualTo("Foo"));
        }
Exemplo n.º 2
0
        public void Should_not_replace_column_with_explict_name()
        {
            var mapping       = new TestMapping();
            var columnMapping = new ColumnMapping(typeof(Customer).GetProperty("DateOfBirth"));

            columnMapping.Named("Foo");

            mapping.Mappings.Add(columnMapping);
            modification.ApplyTo(mapping);

            Assert.That(columnMapping.Attributes["Name"], Is.EqualTo("Foo"));
        }