Exemple #1
0
        private Task <CommandBusResult> Execute(ICommandPipeline pipeline, ICommand command)
        {
            InMemoryCommandBus bus = GetSut(pipeline);

            bus.WithCondition(i =>
            {
                var temp = i as SampleCommand;
                return(temp.Value == 42);
            });

            return(bus.EnqueueAsync(command));
        }