protected override void Act() { attributes = new NameValueCollection(); attributes.Add("key1", "value1"); attributes.Add("key2", "value2"); authUsingCustom = ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed <CustomAuthorizationProvider>("custom provider", attributes); }
protected override void Act() { attributes = new NameValueCollection(); attributes.Add("key1", "value1"); attributes.Add("key2", "value2"); cacheInCustomStore = ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed <CustomSecurityCacheProvider>("custom provider", attributes); }
protected override void Act() { cacheInCustomStore = ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed <CustomSecurityCacheProvider>("custom provider"); }
protected override void Act() { customCacheStore = ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed("custom provider", typeof(CustomSecurityCacheProvider)); }
public void Then_CacheSecurityInCustomStoreNamed_ThrowsArgumentNullException() { ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed("custom cache", typeof(CustomSecurityCacheProvider), null); }
public void Then_CacheSecurityInCustomStoreNamed_ThrowsArgumentException() { ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed("custom cache", typeof(object)); }
public void Then_AuthorizeUsingRuleProviderNamed_ThrowsArgumentException() { ConfigureSecuritySettings.AuthorizeUsingRuleProviderNamed(null); }
public void Then_CacheSecurityInCacheStoreNamed_ThrowsArgumentException() { ConfigureSecuritySettings.CacheSecurityInCacheStoreNamed(null); }
protected override void Arrange() { base.Arrange(); cachingStoreProvider = ConfigureSecuritySettings.CacheSecurityInCacheStoreNamed("cache store"); }
protected override void Act() { authorizeWithAzMan = ConfigureSecuritySettings.AuthorizeUsingAzManProviderNamed("az man provider"); }
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(); }