コード例 #1
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);
        }
コード例 #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);
        }
コード例 #3
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();
        }
コード例 #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();
        }