コード例 #1
0
        protected override void Act()
        {
            attributes = new NameValueCollection();
            attributes.Add("key1", "value1");
            attributes.Add("key2", "value2");

            authUsingCustom = ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed <CustomAuthorizationProvider>("custom provider", attributes);
        }
コード例 #2
0
        protected override void Act()
        {
            attributes = new NameValueCollection();
            attributes.Add("key1", "value1");
            attributes.Add("key2", "value2");

            cacheInCustomStore = ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed <CustomSecurityCacheProvider>("custom provider", attributes);
        }
コード例 #3
0
 protected override void Act()
 {
     cacheInCustomStore = ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed <CustomSecurityCacheProvider>("custom provider");
 }
コード例 #4
0
 protected override void Act()
 {
     customCacheStore = ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed("custom provider", typeof(CustomSecurityCacheProvider));
 }
コード例 #5
0
 public void Then_CacheSecurityInCustomStoreNamed_ThrowsArgumentNullException()
 {
     ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed("custom cache", typeof(CustomSecurityCacheProvider), null);
 }
コード例 #6
0
 public void Then_CacheSecurityInCustomStoreNamed_ThrowsArgumentException()
 {
     ConfigureSecuritySettings.CacheSecurityInCustomStoreNamed("custom cache", typeof(object));
 }
コード例 #7
0
 public void Then_AuthorizeUsingRuleProviderNamed_ThrowsArgumentException()
 {
     ConfigureSecuritySettings.AuthorizeUsingRuleProviderNamed(null);
 }
コード例 #8
0
 public void Then_CacheSecurityInCacheStoreNamed_ThrowsArgumentException()
 {
     ConfigureSecuritySettings.CacheSecurityInCacheStoreNamed(null);
 }
コード例 #9
0
        protected override void Arrange()
        {
            base.Arrange();

            cachingStoreProvider = ConfigureSecuritySettings.CacheSecurityInCacheStoreNamed("cache store");
        }
コード例 #10
0
 protected override void Act()
 {
     authorizeWithAzMan = ConfigureSecuritySettings.AuthorizeUsingAzManProviderNamed("az man provider");
 }
コード例 #11
0
 public void Then_AuthorizeUsingCustomProviderNamed_ThrowsArgumentException()
 {
     ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed("custom authz", typeof(object));
 }
コード例 #12
0
 public void Then_AuthorizeUsingCustomProviderNamed_ThrowsArgumentNullException()
 {
     ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed("custom authz", null);
 }
コード例 #13
0
 public void Then_AuthorizeUsingCustomProviderNamed_ThrowsArgumentException()
 {
     ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed(null, typeof(CustomAuthorizationProvider));
 }
コード例 #14
0
 protected override void Act()
 {
     authUsingCustom = ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed("custom provider", typeof(CustomAuthorizationProvider));
 }
コード例 #15
0
        protected override void Act()
        {
            var authUsingCustom = ConfigureSecuritySettings.AuthorizeUsingCustomProviderNamed <CustomAuthorizationProvider>("custom provider");

            authUsingCustom.SetAsDefault();
        }