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;
        }
Exemple #2
0
        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);
		}
        public void Line2DArrayShouldHaveFourElements()
        {
            var control = new ControlProcessor();

            Assert.AreEqual(0, control.Outlines.Count);
        }
Exemple #5
0
 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);
 }