Ejemplo 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);
 }
Ejemplo 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);
 }