Beispiel #1
0
        public void Should_Infer_Result_Filter_Generic_Types()
        {
            var handler  = new FilterResolver();
            var provider = new FilterAttribute(typeof(RequestFilterRes <>));
            var filter   = provider.GetFilters(typeof(string), typeof(int), handler)
                           .ToArray();

            Assert.AreEqual(typeof(RequestFilterRes <int>), handler.RequestedType);
        }