Esempio n. 1
0
 public RunParameterIdentificationQualificationStepRunner(
     IParameterIdentificationEngineFactory parameterIdentificationEngineFactory,
     ITransferOptimizedParametersToSimulationsTask transferOptimizedParametersToSimulationsTask,
     ILogger logger) : base(logger)
 {
     _parameterIdentificationEngineFactory         = parameterIdentificationEngineFactory;
     _transferOptimizedParametersToSimulationsTask = transferOptimizedParametersToSimulationsTask;
 }
Esempio n. 2
0
 public ParameterIdentificationRunner(IParameterIdentificationEngineFactory parameterIdentificationEngineFactory, IDialogCreator dialogCreator,
                                      IEntityValidationTask entityValidationTask, IOSPSuiteExecutionContext executionContext)
 {
     _parameterIdentificationEngineFactory = parameterIdentificationEngineFactory;
     _dialogCreator        = dialogCreator;
     _entityValidationTask = entityValidationTask;
     _executionContext     = executionContext;
 }
Esempio n. 3
0
        protected override void Context()
        {
            _engineFactory        = A.Fake <IParameterIdentificationEngineFactory>();
            _dialogCreator        = A.Fake <IDialogCreator>();
            _entityValidationTask = A.Fake <IEntityValidationTask>();
            _context = A.Fake <IOSPSuiteExecutionContext>();
            sut      = new ParameterIdentificationRunner(_engineFactory, _dialogCreator, _entityValidationTask, _context);

            _parameterIdentification = A.Fake <ParameterIdentification>();
        }
        protected override Task Context()
        {
            _parameterIdentificationEngineFactory         = A.Fake <IParameterIdentificationEngineFactory>();
            _transferOptimizedParametersToSimulationsTask = A.Fake <ITransferOptimizedParametersToSimulationsTask>();
            _logger = A.Fake <ILogger>();
            sut     = new RunParameterIdentificationQualificationStepRunner(_parameterIdentificationEngineFactory, _transferOptimizedParametersToSimulationsTask, _logger);

            _parameterIdentification        = new ParameterIdentification();
            _runParameterIdentificationStep = new RunParameterIdentificationQualificationStep
            {
                ParameterIdentification = _parameterIdentification
            };

            _parameterIdentificationEngine = A.Fake <IParameterIdentificationEngine>();
            A.CallTo(() => _parameterIdentificationEngineFactory.Create()).Returns(_parameterIdentificationEngine);
            return(_completed);
        }