protected override void given_the_context_of() { _expectationsWasSet = false; var methodFactory = new DefaultMethodFactory(); _handler = StrictMock<IRoutedMessageHandler>(); _notifier = new TheNotifierClass(); _observer = new DependencyObserver(_handler, methodFactory, _notifier); _trigger = Mock<IMessageTrigger>(); }
protected override void given_the_context_of() { factory = new DefaultMethodFactory(); conventionManager = Mock <IConventionManager>(); binder = new DefaultMessageBinder(conventionManager); handlingNode = Stub <IInteractionNode>(); sourceNode = Stub <IInteractionNode>(); host = new ControlHost(); sourceNode.Stub(x => x.UIElement).Return(host).Repeat.Any(); }
protected override void given_the_context_of() { expectationsWasSet = false; var methodFactory = new DefaultMethodFactory(); handler = StrictMock <IRoutedMessageHandler>(); notifier = new TheNotifierClass(); observer = new DependencyObserver(handler, methodFactory, notifier); trigger = Mock <IMessageTrigger>(); }
protected override void given_the_context_of() { factory = new DefaultMethodFactory(); conventionManager = Mock<IConventionManager>(); binder = new DefaultMessageBinder(conventionManager); handlingNode = Stub<IInteractionNode>(); sourceNode = Stub<IInteractionNode>(); host = new ControlHost(); sourceNode.Stub(x => x.UIElement).Return(host).Repeat.Any(); }
protected override void given_the_context_of() { var methodFactory = new DefaultMethodFactory(); action = new OverloadedAction("Test"); var infos = typeof(MethodHost) .GetMethods() .Where(x => x.Name == "Test"); foreach (var info in infos) { action.AddOverload( new SynchronousAction( Stub <IServiceLocator>(), methodFactory.CreateFrom(info), Stub <IMessageBinder>(), Stub <IFilterManager>(), false ) ); } }
protected override void given_the_context_of() { var methodFactory = new DefaultMethodFactory(); action = new OverloadedAction("Test"); var infos = typeof(MethodHost) .GetMethods() .Where(x => x.Name == "Test"); foreach(var info in infos) { action.AddOverload( new SynchronousAction( Stub<IServiceLocator>(), methodFactory.CreateFrom(info), Stub<IMessageBinder>(), Stub<IFilterManager>(), false ) ); } }