コード例 #1
0
ファイル: MockCommand.cs プロジェクト: stgwilli/structuremap
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation)_expectations.Dequeue();
            return(_currentExpectation.VerifyExecution(_inputs));
        }
コード例 #2
0
ファイル: MockCommand.cs プロジェクト: stgwilli/structuremap
 public void AddExpectation(CommandExpectation expectation)
 {
     _expectations.Enqueue(expectation);
 }
コード例 #3
0
 public void AddCommandExpectation(string name, CommandExpectation expectation)
 {
     var command = (MockCommand) _commands[name];
     command.AddExpectation(expectation);
 }
コード例 #4
0
ファイル: MockCommand.cs プロジェクト: hp4711/structuremap
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation) _expectations.Dequeue();
            return _currentExpectation.VerifyExecution(_inputs);
        }
コード例 #5
0
ファイル: MockCommand.cs プロジェクト: hp4711/structuremap
 public void AddExpectation(CommandExpectation expectation)
 {
     _expectations.Enqueue(expectation);
 }
コード例 #6
0
        public void AddCommandExpectation(string name, CommandExpectation expectation)
        {
            var command = (MockCommand)_commands[name];

            command.AddExpectation(expectation);
        }