public void CurrentTimeInMiddleOfTimeStep(int secondsIntoTimeStep, int remainingSeconds) { $"Given a time step of {ThirtySeconds} seconds" .x(() => {}); $"And a current UTC Time {secondsIntoTimeStep} seconds into a time step" .x(() => DateTime.SetupGet(x => x.UtcNow) .Returns(UnixEpoch.AddSeconds(ThirtySeconds * Faker.Random.Int(1, 5000) + secondsIntoTimeStep))); "When I calculate the remaining seconds in the current time interval" .x(() => remainingSeconds = TestInstance.RemainingSecondsInCurrentInterval()); $"Then the remaining seconds should be {ThirtySeconds - secondsIntoTimeStep}" .x(() => remainingSeconds.ShouldBe(ThirtySeconds - secondsIntoTimeStep)); }