public void CatSetLength()
 {
     var hbm = new HbmMapKey();
     var mapper = new MapKeyMapper(hbm);
     mapper.Length(55);
     hbm.length.Should().Be("55");
 }
Exemple #2
0
        public void CatSetLength()
        {
            var hbm    = new HbmMapKey();
            var mapper = new MapKeyMapper(hbm);

            mapper.Length(55);
            hbm.length.Should().Be("55");
        }
        public void WhenSetBasicColumnValuesThroughShortCutThenMergeColumn()
        {
            var mapping = new HbmMapKey();
            var mapper = new MapKeyMapper(mapping);
            mapper.Column("pizza");
            mapper.Length(50);

            mapping.Items.Should().Be.Null();
            mapping.column.Should().Be("pizza");
            mapping.length.Should().Be("50");
        }
Exemple #4
0
        public void WhenSetBasicColumnValuesThroughShortCutThenMergeColumn()
        {
            var mapping = new HbmMapKey();
            var mapper  = new MapKeyMapper(mapping);

            mapper.Column("pizza");
            mapper.Length(50);

            mapping.Items.Should().Be.Null();
            mapping.column.Should().Be("pizza");
            mapping.length.Should().Be("50");
        }