public void Then_CustomAuthorizationProviderDataHasAppropriateAttributes() { var customAuthZProvider = AuthorizationProviders.OfType <CustomAuthorizationProviderData>().First(); Assert.AreEqual(attributes.Count, customAuthZProvider.Attributes.Count); foreach (string key in attributes) { Assert.AreEqual(attributes[key], customAuthZProvider.Attributes[key]); } }
public void Then_CustomAuthorizationProviderDataHasAppropriateType() { var customAuthZProvider = AuthorizationProviders.OfType <CustomAuthorizationProviderData>().First(); Assert.AreEqual(typeof(CustomAuthorizationProvider), customAuthZProvider.Type); }
public void Then_CustomAuthorizationProviderDataHasAppropriateName() { var customAuthZProvider = AuthorizationProviders.OfType <CustomAuthorizationProviderData>().First(); Assert.AreEqual("custom provider", customAuthZProvider.Name); }
public void Then_CustomAuthorizationProviderDataIsAddedToSecurityConfiguration() { Assert.AreEqual(1, AuthorizationProviders.OfType <CustomAuthorizationProviderData>().Count()); }