Ejemplo n.º 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());
        }
Ejemplo n.º 2
0
        public void ColumnPrefixFilter_ValueNotSet_ValidationFails()
        {
            var filter = new ColumnPrefixFilter <MockDomainObject>(_map);

            Assert.Throws <FilterException>(() => filter.ToFilterBuild().Validate());
        }