public LipophilicityGroupPresenter(ILipophilicityGroupView view, ICompoundAlternativeTask compoundAlternativeTask, IRepresentationInfoRepository representationRepo, IParameterGroupAlternativeToLipophilicityAlternativeDTOMapper lipophilicityAlternativeDTOMapper, IDialogCreator dialogCreator) : base(view, representationRepo, compoundAlternativeTask, dialogCreator, CoreConstants.Groups.COMPOUND_LIPOPHILICITY) { _lipophilicityAlternativeDTOMapper = lipophilicityAlternativeDTOMapper; }
protected override void Context() { _view = A.Fake <ILipophilicityGroupView>(); _dialogCreator = A.Fake <IDialogCreator>(); _compoundAlternativeTask = A.Fake <ICompoundAlternativeTask>(); _reprInfoRepo = A.Fake <IRepresentationInfoRepository>(); _alternativeDTOMapper = A.Fake <IParameterGroupAlternativeToLipophilicityAlternativeDTOMapper>(); _compoundParamGroup = new ParameterAlternativeGroup(); _existingAlternative = new ParameterAlternative().WithName("Existing").WithId("ID_Existing"); _compoundParamGroup.AddAlternative(_existingAlternative); _compoundAlternativePresentationTask = A.Fake <ICompoundAlternativePresentationTask>(); _newAlternative = new ParameterAlternative().WithName("New").WithId("ID_New"); sut = new LipophilicityGroupPresenter(_view, _compoundAlternativeTask, _compoundAlternativePresentationTask, _reprInfoRepo, _alternativeDTOMapper, _dialogCreator); _commandRegister = A.Fake <ICommandCollector>(); sut.InitializeWith(_commandRegister); }