private void executeBehavior(IJsonReader reader) { var behavior = new DeserializeJsonBehavior <Message>(reader, request); var next = MockRepository.GenerateMock <IActionBehavior>(); behavior.InsideBehavior = next; behavior.Invoke(); next.AssertWasCalled(x => x.Invoke()); }
private void executeBehavior(IJsonReader reader) { var behavior = new DeserializeJsonBehavior<Message>(reader, request); var next = MockRepository.GenerateMock<IActionBehavior>(); behavior.InsideBehavior = next; behavior.Invoke(); next.AssertWasCalled(x => x.Invoke()); }