public void Executig_it_should_redirect_the_given_command_to_initialized_action()
        {
            var theCommand = new TheCommand();
            Action<ICommand> action = (c) => c.Should().BeSameAs(theCommand);

            var target = new CommandExecutorWrapper<ICommand>(action);
            target.Execute(theCommand);
        }
Exemple #2
0
        public void Executig_it_should_redirect_the_given_command_to_initialized_action()
        {
            var theCommand           = new TheCommand();
            Action <ICommand> action = (c) => c.Should().BeSameAs(theCommand);

            var target = new CommandExecutorWrapper <ICommand>(action);

            target.Execute(theCommand);
        }
        public void Executig_it_should_redirect_call_to_initialized_action()
        {
            bool redirected = false;
            Action<ICommand> action = (c) => redirected = true;
            var cmd = new TheCommand();

            var target = new CommandExecutorWrapper<ICommand>(action);
            target.Execute(cmd);

            redirected.Should().BeTrue();
        }
Exemple #4
0
        public void Executig_it_should_redirect_call_to_initialized_action()
        {
            bool redirected          = false;
            Action <ICommand> action = (c) => redirected = true;
            var cmd = new TheCommand();

            var target = new CommandExecutorWrapper <ICommand>(action);

            target.Execute(cmd);

            redirected.Should().BeTrue();
        }