protected override void Context()
 {
     _configuration      = A.Fake <IPKSimConfiguration>();
     _projectRetriever   = A.Fake <IProjectRetriever>();
     _entityPathResolver = A.Fake <IEntityPathResolver>();
     _lazyLoadTask       = A.Fake <ILazyLoadTask>();
     _population         = A.Fake <Population>().WithName("MyPop");
     A.CallTo(() => _population.AllCovariateNames).Returns(new[] { CoreConstants.Covariates.GENDER, CoreConstants.Covariates.RACE });
     sut = new PopulationExportTask(_entityPathResolver, _lazyLoadTask, _projectRetriever, _configuration);
 }
 protected override void Context()
 {
     _configuration               = A.Fake <IPKSimConfiguration>();
     _applicationController       = A.Fake <IApplicationController>();
     _workspace                   = A.Fake <IWorkspace>();
     _entityPathResolver          = A.Fake <IEntityPathResolver>();
     _selectFilePresenter         = A.Fake <ISelectFilePresenter>();
     _lazyLoadTask                = A.Fake <ILazyLoadTask>();
     _simModelExporter            = A.Fake <ISimModelExporter>();
     _modelCoreSimulationMapper   = A.Fake <ISimulationToModelCoreSimulationMapper>();
     _simulationSettingsRetriever = A.Fake <ISimulationSettingsRetriever>();
     _dialogCreator               = A.Fake <IDialogCreator>();
     _cloner     = A.Fake <ICloner>();
     _population = A.Fake <Population>().WithName("MyPop");
     A.CallTo(() => _population.AllCovariateNames).Returns(new[] { CoreConstants.Covariates.GENDER, CoreConstants.Covariates.RACE });
     A.CallTo(() => _applicationController.Start <ISelectFilePresenter>()).Returns(_selectFilePresenter);
     sut = new PopulationExportTask(_applicationController, _entityPathResolver, _lazyLoadTask, _simModelExporter,
                                    _modelCoreSimulationMapper, _workspace, _configuration, _simulationSettingsRetriever, _dialogCreator, _cloner);
 }