ViewModel for GUIManualSteering. \todo Way to inform View about errors, like not being connected to robot.(Example messaging.)
        public GUIManualSteering()
        {
            InitializeComponent();

            // ViewModel
            vmmsViewModel = new ViewModelManualSteering();
            this.DataContext = vmmsViewModel;
        }
        public void ManualControl_SetsIt_GetsSaved()
        {
            // Setup
            vmmsTestObj = new ViewModelManualSteering();
            ManualController mcTmp = new ManualController();

            // Test
            vmmsTestObj.ManualControl = mcTmp;

            // Verify
            Assert.AreSame(mcTmp, vmmsTestObj.ManualControl);
        }
        public void moveAxisBaseRight_Called_CallsManualControllermoveAxisBaseWithMANUAL_MOVE_RIGHT()
        {
            // Setup
            vmmsTestObj = new ViewModelManualSteering();
            IManualController imcManualControllerMock = MockRepository.GenerateMock<IManualController>();
            vmmsTestObj.ManualControl = imcManualControllerMock;

            // Test
            vmmsTestObj.moveAxisBaseRight();

            // Verify
            imcManualControllerMock.AssertWasCalled(t => t.moveAxisBase(enumLeftRight.MANUAL_MOVE_RIGHT));
        }
        public void closeGripper_Called_CallsManualControllermoveAxisGripperWithMANUAL_CLOSE()
        {
            // Setup
            vmmsTestObj = new ViewModelManualSteering();
            IManualController imcManualControllerMock = MockRepository.GenerateMock<IManualController>();
            vmmsTestObj.ManualControl = imcManualControllerMock;

            // Test
            vmmsTestObj.closeGripper();

            // Verify
            imcManualControllerMock.AssertWasCalled(t => t.moveAxisGripper(enumCloseOpen.MANUAL_CLOSE));
        }
        public void Speed_SetsItTo50_ManualControllerSpeedPropertyCalled()
        {
            // Setup
            vmmsTestObj = new ViewModelManualSteering();
            IManualController imcTmp = MockRepository.GenerateMock<IManualController>();

            // Test
            vmmsTestObj.ManualControl = imcTmp;
            vmmsTestObj.Speed = 50;

            // Verify
            imcTmp.AssertWasCalled(t => t.Speed = 50);
        }
        public void Speed_SetsItTo50_GetsSetInManualController()
        {
            // Setup
            vmmsTestObj = new ViewModelManualSteering();

            // Test
            vmmsTestObj.Speed = 50;

            // Verify
            Assert.AreEqual(50, vmmsTestObj.Speed);
        }
        public void moveCoordZIncreasing_Called_CallsManualControllermoveCoordZWithMANUAL_MOVE_INC()
        {
            // Setup
            vmmsTestObj = new ViewModelManualSteering();
            IManualController imcManualControllerMock = MockRepository.GenerateMock<IManualController>();
            vmmsTestObj.ManualControl = imcManualControllerMock;

            // Test
            vmmsTestObj.moveCoordZIncreasing();

            // Verify
            imcManualControllerMock.AssertWasCalled(t => t.moveCoordZ(enumIncDec.MANUAL_MOVE_INC));
        }
        public void moveAxisPitchUp_Called_CallsManualControllermoveAxisPitchWithMANUAL_MOVE_UP()
        {
            // Setup
            vmmsTestObj = new ViewModelManualSteering();
            IManualController imcManualControllerMock = MockRepository.GenerateMock<IManualController>();
            vmmsTestObj.ManualControl = imcManualControllerMock;

            // Test
            vmmsTestObj.moveAxisPitchUp();

            // Verify
            imcManualControllerMock.AssertWasCalled(t => t.moveAxisPitch(enumUpDown.MANUAL_MOVE_UP));
        }