protected override void Context() { base.Context(); _populationSimulation = A.Fake <PopulationSimulation>(); _pkParameter1 = new QuantityPKParameter(); _pkParameter2 = new QuantityPKParameter(); _pkAnalyses = new List <QuantityPKParameter> { _pkParameter1, _pkParameter2 }; _importSimulationResultsPresenter = A.Fake <IImportSimulationPKAnalysesPresenter>(); A.CallTo(() => _applicationController.Start <IImportSimulationPKAnalysesPresenter>()).Returns(_importSimulationResultsPresenter); A.CallTo(() => _importSimulationResultsPresenter.ImportPKAnalyses(_populationSimulation)).Returns(_pkAnalyses); A.CallTo(() => _buildingBlockTask.AddCommandToHistory(A <IPKSimCommand> ._)) .Invokes(x => _command = x.GetArgument <IPKSimCommand>(0)); }
public void AttachPresenter(IImportSimulationPKAnalysesPresenter presenter) { _presenter = presenter; }