示例#1
0
        public void ColumnPrefixFilter_ValueSet_Builds_OK()
        {
            var filter = new ColumnPrefixFilter <MockDomainObject>(_map);

            filter.ColumnName(Maps.MockDomainObject.NameColumn);

            var expected   = $"ColumnPrefixFilter ('{Maps.MockDomainObject.NameColumn}')";
            var validation = filter.ToFilterBuild();

            Assert.Equal(expected, validation.Build());
        }
示例#2
0
        public void ColumnPrefixFilter_MapNull_RaisesException()
        {
            var filter = new ColumnPrefixFilter <MockDomainObject>(null);

            Assert.Throws <MappingException>(() => filter.ColumnName(x => x.Address.Number));
        }