Exemplo n.º 1
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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
		public void Line2DArrayShouldHaveFourElements()
		{
			var control = new ControlProcessor();
			Assert.AreEqual(0, control.Outlines.Count);
		}
Exemplo n.º 4
0
        public void Line2DArrayShouldHaveFourElements()
        {
            var control = new ControlProcessor();

            Assert.AreEqual(0, control.Outlines.Count);
        }
Exemplo n.º 5
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     ControlProcessor.SetupControls(BattlefieldCanvas);
     CompositionTarget.Rendering += CompositionTarget_Rendering;
 }
Exemplo n.º 6
0
 public void Line2DArrayShouldHaveFourElements()
 {
     var control = new ControlProcessor(new UIEditorViewModel(new MockService("", "")));
     Assert.AreEqual(4, control.OutLines.Length);
 }