public void ReturnsThePushNextTransition() { var state = new ResetAPIDelayState(Substitute.For <IRetryDelayService>()); var transition = state.Start().Wait(); transition.Result.Should().Be(state.PushNext); }
public void ResetsTheRetryDelayServiceAfterProcessingThisState() { var delay = Substitute.For <IRetryDelayService>(); var state = new ResetAPIDelayState(delay); state.Start().Wait(); delay.Received().Reset(); }