public void Should_enqueue_reply_when_correlation_id_same_as_request_id() { aggregator.Notify(new ConsumingEnabled(new RogerEndpoint("whatever"), connection)); var requestId = RogerGuid.NewGuid(); sut.Reply(new MyReply(), new CurrentMessageInformation { MessageId = requestId, Endpoint = new RogerEndpoint("someEndpoint") }, null, true, true); Thread.Sleep(100); model.Received().BasicPublish(Arg.Any <string>(), Arg.Any <string>(), true, false, Arg.Is <IBasicProperties>(p => p.CorrelationId == requestId), Arg.Any <byte[]>()); }
public RogerGuid Next() { return(RogerGuid.NewGuid()); }
public void Should_create_new_random_guid() { Assert.AreNotEqual(RogerGuid.NewGuid(), new RogerGuid()); }