Esempio n. 1
0
        public void MetadataKeyReturnsOverrideValue()
        {
            var wrapper = new AuthorizationFilterOverrideWrapper(new FilterMetadata());

            Assert.Equal(AutofacWebApiFilterProvider.AuthorizationFilterOverrideMetadataKey, wrapper.MetadataKey);
        }
 public void MetadataKeyReturnsOverrideValue()
 {
     var wrapper = new AuthorizationFilterOverrideWrapper(new FilterMetadata());
     Assert.Equal(AutofacWebApiFilterProvider.AuthorizationFilterOverrideMetadataKey, wrapper.MetadataKey);
 }
Esempio n. 3
0
        public void FiltersToOverrideReturnsCorrectType()
        {
            var wrapper = new AuthorizationFilterOverrideWrapper(new FilterMetadata());

            Assert.Equal(typeof(IAuthorizationFilter), wrapper.FiltersToOverride);
        }
 public void FiltersToOverrideReturnsCorrectType()
 {
     var wrapper = new AuthorizationFilterOverrideWrapper(new FilterMetadata());
     Assert.Equal(typeof(IAuthorizationFilter), wrapper.FiltersToOverride);
 }