public ChartTemplatingTask(IChartTemplatePersistor chartTemplatePersistor, IChartFromTemplateService chartFromTemplateService, ICurveChartToCurveChartTemplateMapper chartTemplateMapper, IMoBiApplicationController applicationController, IDialogCreator dialogCreator, ICloneManagerForModel cloneManager, IMoBiContext context, IChartUpdater chartUpdater) : base(applicationController, chartTemplatePersistor, cloneManager, chartTemplateMapper, chartFromTemplateService, chartUpdater, dialogCreator) { _context = context; }
public ChartTestPresenter(IChartTestView view, IChartEditorAndDisplayPresenter chartEditorAndDisplayPresenter, TestEnvironment testEnvironment, IDataColumnToPathElementsMapper dataColumnToPathColumnValuesMapper, IDataRepositoryCreator dataRepositoryCreator, IOSPSuiteXmlSerializerRepository ospSuiteXmlSerializerRepository, DataPersistor dataPersistor, IChartFromTemplateService chartFromTemplateService, IChartTemplatePersistor chartTemplatePersistor, IDimensionFactory dimensionFactory, IChartUpdater chartUpdater) : base(view) { _model = testEnvironment.Model.Root; _dataRepositories = new Cache <string, DataRepository>(repository => repository.Name); _chartEditorAndDisplayPresenter = chartEditorAndDisplayPresenter; _dataRepositoryCreator = dataRepositoryCreator; _ospSuiteXmlSerializerRepository = ospSuiteXmlSerializerRepository; _dataPersistor = dataPersistor; _chartFromTemplateService = chartFromTemplateService; _chartTemplatePersistor = chartTemplatePersistor; _dimensionFactory = dimensionFactory; _chartUpdater = chartUpdater; _view.AddChartEditorView(chartEditorAndDisplayPresenter.EditorPresenter.View); _view.AddChartDisplayView(chartEditorAndDisplayPresenter.DisplayPresenter.View); _simulationSettings = new SimulationSettings(); AddSubPresenters(chartEditorAndDisplayPresenter); configureChartEditorPresenter(dataColumnToPathColumnValuesMapper); bindCurveChartToEditor(); configureChartEditorEvents(); InitializeWith(new OSPSuiteMacroCommand <IOSPSuiteExecutionContext>()); }
protected ChartTemplatingTask(IApplicationController applicationController, IChartTemplatePersistor chartTemplatePersistor, ICloneManager cloneManager, ICurveChartToCurveChartTemplateMapper chartTemplateMapper, IChartFromTemplateService chartFromTemplateService, IChartUpdater chartUpdater, IDialogCreator dialogCreator) { _applicationController = applicationController; _chartTemplatePersistor = chartTemplatePersistor; _cloneManager = cloneManager; _chartTemplateMapper = chartTemplateMapper; _chartFromTemplateService = chartFromTemplateService; _chartUpdater = chartUpdater; _dialogCreator = dialogCreator; }
protected override void Context() { _chartTemplatePeristor = A.Fake <IChartTemplatePersistor>(); _chartFromTeplateService = A.Fake <IChartFromTemplateService>(); _chartTemplateMapper = A.Fake <ICurveChartToCurveChartTemplateMapper>(); _applicationController = A.Fake <IMoBiApplicationController>(); _messagePresenter = A.Fake <IDialogCreator>(); _cloneManager = A.Fake <ICloneManagerForModel>(); _executionContext = A.Fake <IMoBiContext>(); _chartUpdater = A.Fake <IChartUpdater>(); sut = new ChartTemplatingTask(_chartTemplatePeristor, _chartFromTeplateService, _chartTemplateMapper, _applicationController, _messagePresenter, _cloneManager, _executionContext, _chartUpdater); _existingTemplates = new List <CurveChartTemplate>(); }
protected override void Context() { _chartFromTemplateService = A.Fake <IChartFromTemplateService>(); _projectRetriever = A.Fake <IProjectRetriever>(); _chartTemplatePersistor = A.Fake <IChartTemplatePersistor>(); _stringCompression = A.Fake <IStringCompression>(); _dialogCreator = A.Fake <IDialogCreator>(); _chartFactory = A.Fake <IPKSimChartFactory>(); _quantityDisplayPathMapper = A.Fake <IQuantityPathToQuantityDisplayPathMapper>(); _chartTemplateMapper = A.Fake <ICurveChartToCurveChartTemplateMapper>(); _chartTask = A.Fake <IChartTask>(); _cloneManager = A.Fake <ICloneManager>(); _applicationController = A.Fake <IApplicationController>(); _executionContext = A.Fake <IExecutionContext>(); _chartUpdater = A.Fake <IChartUpdater>(); sut = new ChartTemplatingTask(_chartFromTemplateService, _projectRetriever, _chartTemplatePersistor, _chartUpdater, _dialogCreator, _chartFactory, _quantityDisplayPathMapper, _chartTemplateMapper, _executionContext, _applicationController, _cloneManager, _chartTask); }
public ChartTemplatingTask( IChartFromTemplateService chartFromTemplateService, IProjectRetriever projectRetriever, IChartTemplatePersistor chartTemplatePersistor, IStringCompression stringCompression, IDialogCreator dialogCreator, IPKSimChartFactory chartFactory, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper, ICurveChartToCurveChartTemplateMapper chartTemplateMapper, IExecutionContext executionContext, IApplicationController applicationController, ICloneManager cloneManager) : base(applicationController, chartTemplatePersistor, cloneManager, chartTemplateMapper, chartFromTemplateService) { _chartFromTemplateService = chartFromTemplateService; _projectRetriever = projectRetriever; _stringCompression = stringCompression; _dialogCreator = dialogCreator; _chartFactory = chartFactory; _quantityDisplayPathMapper = quantityDisplayPathMapper; _chartTemplateMapper = chartTemplateMapper; _executionContext = executionContext; }
public ChartTemplatingTask(IApplicationController applicationController, IChartTemplatePersistor chartTemplatePersistor, ICloneManager cloneManager, ICurveChartToCurveChartTemplateMapper chartTemplateMapper, IChartFromTemplateService chartFromTemplateService, IChartUpdater chartUpdater, IDialogCreator dialogCreator) : base(applicationController, chartTemplatePersistor, cloneManager, chartTemplateMapper, chartFromTemplateService, chartUpdater, dialogCreator) { }