public SqlUserRepositoryIntegrationTests() { _settings = new SqlUserRepositorySettings { ConnectionString = ConfigurationManager.ConnectionStrings["TestDatabase"].ConnectionString, QueryTimeout = TimeSpan.Parse(ConfigurationManager.AppSettings["QueryTimeout"]) }; _userRepository = new SqlUserRepository(_settings); }
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); }