Beispiel #1
0
        public void TestEmptyFilterParamsSchema()
        {
            var schema       = new FilterParamsSchema();
            var filterParams = new FilterParams();

            var results = schema.Validate(filterParams);

            Assert.Equal(0, results.Count);
        }
Beispiel #2
0
        public void TestNonEmptyFilterParamsSchema()
        {
            var schema       = new FilterParamsSchema();
            var filterParams = new FilterParams()
            {
                { "key", "test" }
            };

            var results = schema.Validate(filterParams);

            Assert.Empty(results);
        }