public void SetUp() { theGraph = new ChannelGraph { Name = "FooNode" }; var requirement = new LocalSubscriptionRequirement<BusSettings>(x => x.Upstream); requirement.AddType(typeof(FooMessage)); requirement.AddType(typeof(BarMessage)); theLocalReplyUri = InMemoryTransport.ReplyUriForGraph(theGraph); theGraph.AddReplyChannel("Fake2", "fake2://2".ToUri()); theGraph.AddReplyChannel(InMemoryChannel.Protocol, theLocalReplyUri); theGraph.AddReplyChannel("Fake1", "fake1://1".ToUri()); theSubscriptions = requirement.Determine(theSettings, theGraph); }
public void SetUp() { theGraph = new ChannelGraph { Name = "FooNode" }; var requirement = new LocalSubscriptionRequirement <BusSettings>(x => x.Upstream); requirement.AddType(typeof(FooMessage)); requirement.AddType(typeof(BarMessage)); theLocalReplyUri = InMemoryTransport.ReplyUriForGraph(theGraph); theGraph.AddReplyChannel("Fake2", "fake2://2".ToUri()); theGraph.AddReplyChannel(InMemoryChannel.Protocol, theLocalReplyUri); theGraph.AddReplyChannel("Fake1", "fake1://1".ToUri()); theSubscriptions = requirement.Determine(theSettings, theGraph); }