protected override void Act() { attributes = new NameValueCollection(); attributes.Add("key1", "value1"); attributes.Add("key2", "value2"); authUsingCustom = ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed <CustomAuthorizationProvider>("custom provider", attributes); }
public void Then_AuthorizeUsingCustomProviderNamed_ThrowsArgumentException() { ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed("custom authz", typeof(object)); }
public void Then_AuthorizeUsingCustomProviderNamed_ThrowsArgumentNullException() { ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed("custom authz", null); }
public void Then_AuthorizeUsingCustomProviderNamed_ThrowsArgumentException() { ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed(null, typeof(CustomAuthorizationProvider)); }
protected override void Act() { authUsingCustom = ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed("custom provider", typeof(CustomAuthorizationProvider)); }
protected override void Act() { var authUsingCustom = ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed <CustomAuthorizationProvider>("custom provider"); authUsingCustom.SetAsDefault(); }