private MessageRoute createLocalRoute(Type messageType) { var destination = _workers.LoopbackUriFor(messageType); var route = new MessageRoute(messageType, destination, "application/json") { Subscriber = _subscribers.GetOrBuild(destination) }; return(route); }
public void select_the_loopback_uri_for_message_type(Type messageType, string uriString) { theWorkers.LoopbackUriFor(messageType).ShouldBe(uriString.ToUri()); }