public void SetUp() { Builder = new FuncBuilder(); InMemoryFaultManager = new NServiceBus.Faults.InMemory.FaultManager(); TransportBuilder = new FakeTransportBuilder(); Configure.With(new Assembly[0]); Configure.Instance.Builder = Builder; RegisterTypes(); Builder.Register <IManageMessageFailures>(() => InMemoryFaultManager); var configurer = new SatelliteConfigurer(); configurer.Init(); //configurer.Run(); var launcher = new NonThreadingSatelliteLauncher { Builder = Builder, TransportBuilder = TransportBuilder }; BeforeRun(); launcher.Run(); }
public void SetUp() { Builder = new FuncBuilder(); InMemoryFaultManager = new Faults.InMemory.FaultManager(); FakeReceiver = new FakeReceiver(); Transport = new TransportReceiver { Receiver = FakeReceiver, TransactionSettings = TransactionSettings.Default }; Configure.With(new Assembly[0]) .DefineEndpointName("Test") .DefaultBuilder(); Configure.Instance.Builder = Builder; RegisterTypes(); Builder.Register <IManageMessageFailures>(() => InMemoryFaultManager); Builder.Register <TransportReceiver>(() => Transport); var configurer = new SatelliteConfigurer(); configurer.Init(); var launcher = new SatelliteLauncher { Builder = Builder, }; BeforeRun(); launcher.Start(); }