protected override void Context()
        {
            _executionContext                 = A.Fake <IOSPSuiteExecutionContext>();
            _sensitivityAnalysisFactory       = A.Fake <ISensitivityAnalysisFactory>();
            _sensitivityAnalysisSwapCorrector = A.Fake <ISensitivityAnalysisSimulationSwapCorrector>();
            _sensitivityAnalysisSwapValidator = A.Fake <ISensitivityAnalysisSimulationSwapValidator>();
            _dialogCreator = A.Fake <IDialogCreator>();
            _sensitivityParameterFactory = A.Fake <ISensitivityParameterFactory>();

            sut = new SensitivityAnalysisTask(_sensitivityAnalysisFactory, _executionContext, _sensitivityAnalysisSwapCorrector, _sensitivityAnalysisSwapValidator, _sensitivityParameterFactory, _dialogCreator);
        }
示例#2
0
        protected override void Context()
        {
            _executionContext                 = A.Fake <IOSPSuiteExecutionContext>();
            _sensitivityAnalysisFactory       = A.Fake <ISensitivityAnalysisFactory>();
            _applicationController            = A.Fake <IApplicationController>();
            _sensitivityAnalysisSwapCorrector = A.Fake <ISensitivityAnalysisSimulationSwapCorrector>();
            _sensitivityAnalysisSwapValidator = A.Fake <ISensitivityAnalysisSimulationSwapValidator>();
            _dialogCreator = A.Fake <IDialogCreator>();
            sut            = new SensitivityAnalysisTask(_sensitivityAnalysisFactory, _executionContext, _applicationController, _sensitivityAnalysisSwapCorrector, _sensitivityAnalysisSwapValidator, _dialogCreator);

            _validationMessagesPresenter = A.Fake <IValidationMessagesPresenter>();
            A.CallTo(() => _applicationController.Start <IValidationMessagesPresenter>()).Returns(_validationMessagesPresenter);
        }
示例#3
0
 public SensitivityAnalysisTask(
     ISensitivityAnalysisFactory sensitivityAnalysisFactory,
     IOSPSuiteExecutionContext executionContext,
     IApplicationController applicationController,
     ISensitivityAnalysisSimulationSwapCorrector sensitivityAnalysisSimulationSwapCorrector,
     ISensitivityAnalysisSimulationSwapValidator sensitivityAnalysisSimulationSwapValidator,
     IDialogCreator dialogCreator)
 {
     _sensitivityAnalysisFactory = sensitivityAnalysisFactory;
     _executionContext           = executionContext;
     _applicationController      = applicationController;
     _sensitivityAnalysisSimulationSwapCorrector = sensitivityAnalysisSimulationSwapCorrector;
     _sensitivityAnalysisSimulationSwapValidator = sensitivityAnalysisSimulationSwapValidator;
     _dialogCreator = dialogCreator;
 }