Exemple #1
0
        public void CanDeployMsiFileApp()
        {
            var task = new DeployApplication
            {
                ApplicationManagementUrl =
                    "http://localhost/mnowcommunicationservice/applicationmanagement.svc",
                InstallFilePath          = @"C:\Temp\mCORECommandCenter_7.2.12524.msi",
                DeviceGroup              = "Test",
                DeviceGroupManagementUrl =
                    "http://localhost/mnowcommunicationservice/devicegroupmanagement.svc",
                ShouldRemovePreviousVersion = true,
            };

            var result = task.Execute();

            Assert.IsTrue(result);
        }
        public void CanDeployMsiFileApp()
        {
            var task = new DeployApplication
                           {
                               ApplicationManagementUrl =
                                   "http://localhost/mnowcommunicationservice/applicationmanagement.svc",
                               InstallFilePath = @"C:\Temp\mCORECommandCenter_7.2.12524.msi",
                               DeviceGroup = "Test",
                               DeviceGroupManagementUrl =
                                   "http://localhost/mnowcommunicationservice/devicegroupmanagement.svc",
                               ShouldRemovePreviousVersion = true,
                           };

            var result = task.Execute();

            Assert.IsTrue(result);
        }
Exemple #3
0
        public void CanDeployCabFileApp()
        {
            var task = new DeployApplication
            {
                ApplicationManagementUrl =
                    "http://localhost/mnowcommunicationservice/applicationmanagement.svc",
                InstallFilePath          = @"C:\Temp\AmeyMobile_2.0.11805.cab",
                DeviceGroup              = "Test",
                DeviceGroupManagementUrl =
                    "http://localhost/mnowcommunicationservice/devicegroupmanagement.svc",
                Version = "2.0.11805"
            };

            var result = task.Execute();

            Assert.IsTrue(result);
        }
        public void CanDeployCabFileApp()
        {
            var task = new DeployApplication
                           {
                               ApplicationManagementUrl =
                                   "http://localhost/mnowcommunicationservice/applicationmanagement.svc",
                               InstallFilePath = @"C:\Temp\AmeyMobile_2.0.11805.cab",
                               DeviceGroup = "Test",
                               DeviceGroupManagementUrl =
                                   "http://localhost/mnowcommunicationservice/devicegroupmanagement.svc",
                               Version = "2.0.11805"
                           };

            var result = task.Execute();

            Assert.IsTrue(result);
        }
Exemple #5
0
        /// <summary>
        ///     Handles the action.
        /// </summary>
        /// <param name="actionString">The action string.</param>
        private void HandleAction(string actionString)
        {
            var action = ( ApplicationAction )Enum.Parse(typeof(ApplicationAction), actionString);

            switch (action)
            {
            case ApplicationAction.Delete:
            {
                var delete = new DeleteApplication(this);
                delete.ShowDialog( );

                if (delete.ViewModel.PackagesDeleted)
                {
                    RefreshAll( );
                }
            }
            break;

            case ApplicationAction.Deploy:
            {
                var deploy = new DeployApplication(this);
                deploy.ShowDialog( );
            }
            break;

            case ApplicationAction.Export:
            {
                var export = new ExportApplication(this);
                export.ShowDialog( );
            }
            break;

            case ApplicationAction.Repair:
            {
                var repair = new RepairApplication(this);
                repair.ShowDialog( );
            }
            break;

            default:
            {
            }
            break;
            }
        }