Beispiel #1
0
 public void LogoutCallsSwithcedProviderIfNotNull(
     AuthenticationProvider switchedProvider)
 {
     using (new Switcher <AuthenticationProvider>(switchedProvider))
     {
         var sut = new SwitchingAuthenticationProvider();
         sut.Logout();
         switchedProvider.Received().Logout();
     }
 }
Beispiel #2
0
        public void LogoutCallsDefaultProviderIfNotSwitched(
            AuthenticationProvider defaultProvider)
        {
            var sut = new SwitchingAuthenticationProvider
            {
                DefaultProvider = defaultProvider
            };

            sut.Logout();
            defaultProvider.Received().Logout();
        }
Beispiel #3
0
        public void LogoutDoesNotThrowIfNoAnyProfiderSet()
        {
            var sut = new SwitchingAuthenticationProvider();

            sut.Logout();
        }