public void PublisherShouldReceiveOrderAddedData() { var limitOrder = new LimitOrder("ABC", 21, 20d, WayEnum.Buy, 90); outgoingQueue.EnqueueAddedLimitOrder(limitOrder); Thread.Sleep(100); messagePublisherMock.AssertWasCalled(a => a.OnNext(Arg <ServerToClientMessage> .Matches(b => b.MessageType == ServerToClientMessageTypeEnum.LimitOrderAccepted && b.LimitOrder.ClientId == 90 && b.LimitOrder.Price == 20d && b.LimitOrder.Quantity == 21 && b.LimitOrder.Symbol == "ABC" && b.LimitOrder.Way == WayEnum.Buy), Arg <long> .Is.Anything, Arg <bool> .Is.Anything), options => options.Repeat.Once()); }