public InMemoryTestFixture(bool busPerTest = false) { _baseAddress = new Uri("loopback://localhost/"); _inputQueueAddress = new Uri("loopback://localhost/input_queue"); if (busPerTest) { _busCreationScope = new PerTestBusCreationScope(SetupBus, TeardownBus); } else { _busCreationScope = new PerTestFixtureBusCreationScope(SetupBus, TeardownBus); } }
public InMemoryTestFixture(InMemoryTestHarness harness, bool busPerTest = false) : base(harness) { InMemoryTestHarness = harness; if (busPerTest) { _busCreationScope = new PerTestBusCreationScope(SetupBus, TeardownBus); } else { _busCreationScope = new PerTestFixtureBusCreationScope(SetupBus, TeardownBus); } InMemoryTestHarness.OnConfigureInMemoryBus += ConfigureInMemoryBus; InMemoryTestHarness.OnConfigureInMemoryReceiveEndpoint += ConfigureInMemoryReceiveEndpoint; }