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

            _currentExpectation = (CommandExpectation)_expectations.Dequeue();
            return(_currentExpectation.VerifyExecution(_inputs));
        }
Beispiel #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);
 }
Beispiel #4
0
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation) _expectations.Dequeue();
            return _currentExpectation.VerifyExecution(_inputs);
        }
Beispiel #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);
        }