private WaitAndRetryWithRandomSleepDurations CreateTarget( int maxRetryCount = 3, int maxSleepDurationMs = 1000) { var randomValueProvider = _randomValueProviderMock.Object; var config = new WaitAndRetryWithRandomSleepDurationsConfiguration( maxRetryCount, maxSleepDurationMs); return(new WaitAndRetryWithRandomSleepDurations( config, randomValueProvider)); }
public void Ctor_Creates_New_Instance() { // ARRANGE const int maxRetryCount = 10; const int maxSleepDurationMs = 5_000; // ACT var result = new WaitAndRetryWithRandomSleepDurationsConfiguration( maxRetryCount, maxSleepDurationMs); // ASSERT Assert.IsNotNull(result); Assert.AreEqual(maxRetryCount, result.MaxRetryCount); Assert.AreEqual(maxSleepDurationMs, result.MaxSleepDurationInMilliseconds); }