Affecto.Patterns.Cqrs.Tests.CommandBusTests.Setup C# (CSharp) Method

Setup() private method

private Setup ( ) : void
return void
        public void Setup()
        {
            command = new TestCommand();
            commandHandler = Substitute.For<ICommandHandler<TestCommand>>();
            
            commandHandlerResolver = Substitute.For<ICommandHandlerResolver>();
            commandHandlerResolver.ResolveCommandHandler<ICommandHandler<TestCommand>>().Returns(commandHandler);

            sut = new CommandBus(commandHandlerResolver);
        }