Esempio n. 1
0
        public void When_A_SevenSecondPrice_IsBelowThreshold_ShouldNotChangeThreshold()
        {
            var sut        = CreateSut();
            int startPrice = 100;

            sut.ProcessMessage(new PositionAcquiredMessage(startPrice));

            sut.ProcessMessage(new PriceUpdateMessage(89));
            _mockPublisher.ClearReceivedCalls();

            // act
            sut.ProcessMessage(new RemoveFromSevenSecondMessage(89));

            _mockPublisher.DidNotReceive().Publish(Arg.Any <ThresholdUpdatedMessage>());
        }
 public void TearDown() => publisher.ClearReceivedCalls();