Example #1
0
        public SqlUserRepositoryIntegrationTests()
        {
            _settings = new SqlUserRepositorySettings
            {
                ConnectionString = ConfigurationManager.ConnectionStrings["TestDatabase"].ConnectionString,
                QueryTimeout     = TimeSpan.Parse(ConfigurationManager.AppSettings["QueryTimeout"])
            };

            _userRepository = new SqlUserRepository(_settings);
        }
Example #2
0
        public SqlCredentialValidatorIntegrationTests()
        {
            _sqlCredentialValidatorSettings = new SqlCredentialValidatorSettings
            {
                ConnectionString = ConfigurationManager.ConnectionStrings["TestDatabase"].ConnectionString,
                QueryTimeout     = TimeSpan.Parse(ConfigurationManager.AppSettings["QueryTimeout"])
            };

            _hashingProvider        = new Sha256HashingProvider();
            _sqlCredentialValidator = new SqlCredentialValidator(_sqlCredentialValidatorSettings, _hashingProvider);

            _sqlUserRepositorySettings = new SqlUserRepositorySettings
            {
                ConnectionString = ConfigurationManager.ConnectionStrings["TestDatabase"].ConnectionString,
                QueryTimeout     = TimeSpan.Parse(ConfigurationManager.AppSettings["QueryTimeout"])
            };

            _userRepository = new SqlUserRepository(_sqlUserRepositorySettings);
        }