예제 #1
0
            public void ReturnsThePushNextTransition()
            {
                var state = new ResetAPIDelayState(Substitute.For <IRetryDelayService>());

                var transition = state.Start().Wait();

                transition.Result.Should().Be(state.PushNext);
            }
예제 #2
0
            public void ResetsTheRetryDelayServiceAfterProcessingThisState()
            {
                var delay = Substitute.For <IRetryDelayService>();
                var state = new ResetAPIDelayState(delay);

                state.Start().Wait();

                delay.Received().Reset();
            }