Beispiel #1
0
        protected ScenarioTest(ITestOutputHelper output)
        {
            this.output = output;

            var ignoredMessages   = new List <IMessageDescriptor>();
            var pendingOperations = new PendingOperations();

            IgnoredMessages = ignoredMessages;

            var container     = CreateContainer(pendingOperations, ignoredMessages);
            var configuration = new MessageBusConfigurationBuilder().HasServiceProvider(container).CreateConfiguration();

            Bus   = new InMemoryMessageBus(configuration, pendingOperations);
            Setup = new ScenarioBuilder(Bus);
            RegisterCommandHandlers(configuration);
            RegisterEventReceivers(configuration);
            RegisterSagas(configuration);
            Bus.Start(new MessageObserver(output));
        }
Beispiel #2
0
 public MintScenario(ScenarioBuilder builder) => this.builder = builder;
Beispiel #3
0
 public OrderScenario(ScenarioBuilder builder) => this.builder = builder;