Ejemplo n.º 1
0
        public void AuthenticationTypeEnabledForUser_ActiveDirectoryDisabled()
        {
            var generalSeetings = new GeneralSettingsApp {
                AuthenticateActiveDirectory = false
            };

            Assert.AreEqual(false, ApplicationOAuthProvider.AuthenticationTypeEnabledForUser(AuthenticationType.ActiveDirectory, generalSeetings));
        }
Ejemplo n.º 2
0
        public void AuthenticationTypeEnabledForUser_DataBaseDisabled()
        {
            var generalSeetings = new GeneralSettingsApp {
                AuthenticateDataBase = false
            };

            Assert.AreEqual(false, ApplicationOAuthProvider.AuthenticationTypeEnabledForUser(AuthenticationType.DataBase, generalSeetings));
        }