protected virtual void BuildRemoteBus(LocalRemoteTestScenarioImpl scenario) { _remoteConfigurator.ChangeSettings(x => { x.EndpointCache = scenario.EndpointCache; }); _remoteConfigurator.AddSubscriptionObserver((bus, coordinator) => { _remoteLoopback = new SubscriptionLoopback(bus, coordinator); return(_remoteLoopback); }); scenario.RemoteBus = _remoteConfigurator.CreateServiceBus(); }
public override BusTestScenario Build() { IEndpointFactory endpointFactory = BuildEndpointFactory(); var scenario = new BusTestScenarioImpl(endpointFactory); _configurator.ChangeSettings(x => { x.EndpointCache = scenario.EndpointCache; }); _configurator.EnableMessageTracing(); scenario.Bus = _configurator.CreateServiceBus(); return(scenario); }