public void Setup() { _mockIdentification = new Mock<Identification>(); _mockInputGateway = new Mock<IInputGateway<IControlMessage, MessageHeader>>(); _mockOutputGateway = new Mock<IOutputGateway<IControlMessage>>(); _mockHandlerRepository = new Mock<IHandlerRepository>(); _subject = ProcessorsFactory.CreateControlProcessor(_mockIdentification.Object, _mockInputGateway.Object, _mockOutputGateway.Object, _mockHandlerRepository.Object) as ControlProcessor; }
public void Setup() { _mockIdentification = new Mock <Identification>(); _mockInputGateway = new Mock <IInputGateway <IControlMessage, MessageHeader> >(); _mockOutputGateway = new Mock <IOutputGateway <IControlMessage> >(); _mockHandlerRepository = new Mock <IHandlerRepository>(); _subject = ProcessorsFactory.CreateControlProcessor(_mockIdentification.Object, _mockInputGateway.Object, _mockOutputGateway.Object, _mockHandlerRepository.Object) as ControlProcessor; }
public void Line2DArrayShouldHaveFourElements() { var control = new ControlProcessor(); Assert.AreEqual(0, control.Outlines.Count); }
private void Window_Loaded(object sender, RoutedEventArgs e) { ControlProcessor.SetupControls(BattlefieldCanvas); CompositionTarget.Rendering += CompositionTarget_Rendering; }
public void Line2DArrayShouldHaveFourElements() { var control = new ControlProcessor(new UIEditorViewModel(new MockService("", ""))); Assert.AreEqual(4, control.OutLines.Length); }