protected override void Context() { _view = A.Fake <IGlobalPKAnalysisView>(); _globalPKAnalysisTask = A.Fake <IGlobalPKAnalysisTask>(); var globalPKAnalysisDTOMapper = A.Fake <IGlobalPKAnalysisToGlobalPKAnalysisDTOMapper>(); var heavyWorkManager = A.Fake <IHeavyWorkManager>(); var representationInfoRepository = A.Fake <IRepresentationInfoRepository>(); _presenterSettingsTask = A.Fake <IPresentationSettingsTask>(); sut = new GlobalPKAnalysisPresenter(_view, _globalPKAnalysisTask, globalPKAnalysisDTOMapper, heavyWorkManager, representationInfoRepository, _presenterSettingsTask); _simulations = new List <Simulation>(); _compoundName = "DRUG"; _globalPKAnalysis = PKAnalysisHelperForSpecs.GenerateGlobalPKAnalysis(_compoundName); A.CallTo(() => _globalPKAnalysisTask.CalculateGlobalPKAnalysisFor(_simulations)).Returns(_globalPKAnalysis); }
public void AddGlobalPKAnalysisView(IGlobalPKAnalysisView view) { panelControlGlobalAnalysis.FillWith(view); }