示例#1
0
        public void GetPasswordTest_throws_exception_if_EnablePasswordRetrieval_is_false()
        {
            // Arrange
            var user   = CreateUserFake();
            var config = CreateConfigFake();

            config["enablePasswordRetrieval"] = "false";

            _provider.Initialize(config["applicationName"], config);

            // Act and Assert
            string password = _provider.GetPassword(user.Username, user.PasswordAnswer);
        }