public void CanDetectTransientException() { var jobStoreSupport = new TestJobStoreSupport(); var npgsqlException = new NpgsqlException("timeout", new TimeoutException()); Assert.That(jobStoreSupport.IsTransientPublic(npgsqlException), Is.True); var sqlException = new SqlExceptionSimulator(); Assert.That(jobStoreSupport.IsTransientPublic(sqlException), Is.True); }
public void SetUp() { jobStoreSupport = new TestJobStoreSupport(); driverDelegate = A.Fake<IDriverDelegate>(); jobStoreSupport.DirectDelegate = driverDelegate; }
public void SetUp() { jobStoreSupport = new TestJobStoreSupport(); driverDelegate = MockRepository.GenerateMock<IDriverDelegate>(); jobStoreSupport.DirectDelegate = driverDelegate; }
public void SetUp() { jobStoreSupport = new TestJobStoreSupport(); driverDelegate = MockRepository.GenerateMock <IDriverDelegate>(); jobStoreSupport.DirectDelegate = driverDelegate; }