コード例 #1
0
 public void FiltersToOverrideReturnsCorrectType()
 {
     var wrapper = new AuthorizationFilterOverrideWrapper(new FilterMetadata());
     Assert.That(wrapper.FiltersToOverride, Is.EqualTo(typeof(IAuthorizationFilter)));
 }
コード例 #2
0
 public void MetadataKeyReturnsOverrideValue()
 {
     var wrapper = new AuthorizationFilterOverrideWrapper(new FilterMetadata());
     Assert.That(wrapper.MetadataKey, Is.EqualTo(AutofacWebApiFilterProvider.AuthorizationFilterOverrideMetadataKey));
 }