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