Example #1
0
        private void CopyModel(ICommandAdapter adapter, string binPath, string model, string modelFile)
        {
            var    copyFileCommand   = new CopyFileCommand();
            string destinationFile   = Path.Combine(binPath, model);
            var    deleteFileCommand = new DeleteFileCommand();

            deleteFileCommand.Parameters.MainParameter = new MainParameter(destinationFile);
            deleteFileCommand.Execute(adapter);
            copyFileCommand.Execute(adapter, _testParameters, modelFile, destinationFile);
            if (this.ParameterValue <ModelOperation>(Operation) != ModelOperation.None)
            {
                var actionCommand = new ActionCommand();
                actionCommand.DoAction(adapter, "Parameter", Path.GetFileNameWithoutExtension(model));
                actionCommand.DoAction(adapter, "EasyTestAction", this.ParameterValue <ModelOperation>(Operation).ToString());
            }
        }
        protected override void InternalExecute(ICommandAdapter adapter)
        {
            var winCheckValidationResultCommand = new WinCheckValidationResultCommand();

            winCheckValidationResultCommand.SetApplicationOptions(_applicationOptions);
            winCheckValidationResultCommand.SynchWith(this);
            winCheckValidationResultCommand.Execute(adapter);
            var actionCommand = new ActionCommand();

            actionCommand.DoAction(adapter, "Close", null);
        }
 internal void DoAction(string name, string paramValue)
 {
     ActionCommand.DoAction(adapter, name, paramValue);
 }