Пример #1
0
 public LazyLoadTask(IContentLoader contentLoader, ISimulationResultsLoader simulationResultsLoader, ISimulationChartsLoader simulationChartsLoader,
                     ISimulationComparisonContentLoader simulationComparisonContentLoader, ISimulationAnalysesLoader simulationAnalysesLoader,
                     IParameterIdentificationContentLoader parameterIdentificationContentLoader, ISensitivityAnalysisContentLoader sensitivityAnalysisContentLoader,
                     IRegistrationTask registrationTask,
                     IProgressManager progressManager)
 {
     _contentLoader                        = contentLoader;
     _simulationResultsLoader              = simulationResultsLoader;
     _simulationChartsLoader               = simulationChartsLoader;
     _registrationTask                     = registrationTask;
     _progressManager                      = progressManager;
     _simulationComparisonContentLoader    = simulationComparisonContentLoader;
     _simulationAnalysesLoader             = simulationAnalysesLoader;
     _parameterIdentificationContentLoader = parameterIdentificationContentLoader;
     _sensitivityAnalysisContentLoader     = sensitivityAnalysisContentLoader;
 }
Пример #2
0
        protected override void Context()
        {
            _registrationTask                        = A.Fake <IRegistrationTask>();
            _progressManager                         = A.Fake <IProgressManager>();
            _progressUpdater                         = A.Fake <IProgressUpdater>();
            _contentLoader                           = A.Fake <IContentLoader>();
            _simulationChartsLoader                  = A.Fake <ISimulationChartsLoader>();
            _simulationResultsLoader                 = A.Fake <ISimulationResultsLoader>();
            _simulationComparisonContentLoader       = A.Fake <ISimulationComparisonContentLoader>();
            _simulationAnalysesLoader                = A.Fake <ISimulationAnalysesLoader>();
            _parameterIdentificationContentendLoader = A.Fake <IParameterIdentificationContentLoader>();
            _sensitivityAnalysisContentLoader        = A.Fake <ISensitivityAnalysisContentLoader>();

            A.CallTo(() => _progressManager.Create()).Returns(_progressUpdater);
            sut = new LazyLoadTask(_contentLoader, _simulationResultsLoader, _simulationChartsLoader,
                                   _simulationComparisonContentLoader, _simulationAnalysesLoader, _parameterIdentificationContentendLoader, _sensitivityAnalysisContentLoader,
                                   _registrationTask, _progressManager);
            _objectToLoad    = A.Fake <IPKSimBuildingBlock>();
            _objectToLoad.Id = "objectId";
        }