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

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

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

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

            authUsingCustom.SetAsDefault();
        }