public void Sends_should_contain_reply_endpoint() { var consumer = new SendCurrentMessageConsumer(Bus); Bus.AddInstanceSubscription(consumer); Bus.Send(Bus.LocalEndpoint, new SendMessage()); Assert.IsTrue(consumer.WaitForDelivery()); Assert.AreEqual(Bus.LocalEndpoint, consumer.CurrentMessage.Endpoint); }
public void Sends_should_contain_reply_endpoint() { var consumer = new SendCurrentMessageConsumer(Bus); Bus.AddInstanceSubscription(consumer); Bus.Send(Bus.LocalEndpoint, new SendMessage()); Assert.IsTrue(consumer.WaitForDelivery()); Assert.AreEqual(Bus.LocalEndpoint, consumer.CurrentMessage.Endpoint); }