protected override void Arrange() { this.command = new SqlCommand(TestSqlSupport.ValidSqlText); this.connectionStrategy = new TestRetryStrategy(); this.commandStrategy = new TestRetryStrategy(); this.connectionPolicy = new RetryPolicy<AlwaysTransientErrorDetectionStrategy>(this.connectionStrategy); this.commandPolicy = new RetryPolicy<AlwaysTransientErrorDetectionStrategy>(this.commandStrategy); }
protected override void Arrange() { this.command = new SqlCommand(TestSqlSupport.InvalidSqlText); this.connectionStrategy = new TestRetryStrategy(); this.commandStrategy = new TestRetryStrategy(); this.reliableConnection = new ReliableSqlConnection( TestSqlSupport.SqlAWTestConnectionString, new RetryPolicy<AlwaysTransientErrorDetectionStrategy>(this.connectionStrategy), new RetryPolicy<AlwaysTransientErrorDetectionStrategy>(this.commandStrategy)); }