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); }
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); }
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; }