Esempio n. 1
0
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation)_expectations.Dequeue();
            return(_currentExpectation.VerifyExecution(_inputs));
        }
Esempio n. 2
0
 public void AddExpectation(CommandExpectation expectation)
 {
     _expectations.Enqueue(expectation);
 }
 public void AddCommandExpectation(string name, CommandExpectation expectation)
 {
     var command = (MockCommand) _commands[name];
     command.AddExpectation(expectation);
 }
Esempio n. 4
0
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation) _expectations.Dequeue();
            return _currentExpectation.VerifyExecution(_inputs);
        }
Esempio n. 5
0
 public void AddExpectation(CommandExpectation expectation)
 {
     _expectations.Enqueue(expectation);
 }
        public void AddCommandExpectation(string name, CommandExpectation expectation)
        {
            var command = (MockCommand)_commands[name];

            command.AddExpectation(expectation);
        }