Exemplo n.º 1
0
        public Program(AppLaunchingCommandLine commandLine)
        {
            _commandLine = commandLine;
            StartEmuAutomationController();

            var driverCommands = new DeviceControllerCommands()
            {
                DeviceController = _automationController.DeviceController,
                CommandLine      = _commandLine
            };

            AddCommands(driverCommands);

            var inputCommands = new DisplayInputCommands()
            {
                DisplayInputController = _automationController.DisplayInputController
            };

            AddCommands(inputCommands);

            var phoneAutomationCommands = new PhoneAutomationCommands()
            {
                ApplicationAutomationController =
                    _automationController.ApplicationAutomationController
            };

            AddCommands(phoneAutomationCommands);
        }
Exemplo n.º 2
0
        public Program(AppLaunchingCommandLine commandLine)
        {
            _commandLine = commandLine;
            StartEmuAutomationController();

            var driverCommands = new DriverCommands()
                                     {
                                         Driver = _emuAutomationController.Driver,
                                         CommandLine = _commandLine
                                     };
            AddCommands(driverCommands);

            var inputCommands = new DisplayInputCommands()
                                    {
                                        DisplayInputController = _emuAutomationController.DisplayInputController
                                    };
            AddCommands(inputCommands);

            var phoneAutomationCommands = new PhoneAutomationCommands()
                                              {
                                                  PhoneAutomationController =
                                                      _emuAutomationController.PhoneAutomationController
                                              };
            AddCommands(phoneAutomationCommands);
        }