public ExportParameterIdentificationToRUICommand(
     IDialogCreator dialogCreator,
     IParameterIdentificationExportTask parameterIdentificationExportTask)
 {
     _dialogCreator = dialogCreator;
     _parameterIdentificationExportTask = parameterIdentificationExportTask;
 }
        protected override void Context()
        {
            _view       = A.Fake <IParameterIdentificationParametersFeedbackView>();
            _exportTask = A.Fake <IParameterIdentificationExportTask>();
            sut         = new ParameterIdentificationParametersFeedbackPresenter(_view, _exportTask);

            _paramterIdentification           = new ParameterIdentification();
            _identificationParameter1         = createIdentificationParameter("P1", 10, 0, 20);
            _identificationParameter2         = createIdentificationParameter("P2", 20, 5, 40);
            _identificationParameter3         = createIdentificationParameter("P3", 20, 5, 40);
            _identificationParameter3.IsFixed = true;

            _paramterIdentification.AddIdentificationParameter(_identificationParameter1);
            _paramterIdentification.AddIdentificationParameter(_identificationParameter2);
            _paramterIdentification.AddIdentificationParameter(_identificationParameter3);

            A.CallTo(() => _view.BindTo(A <IEnumerable <ParameterFeedbackDTO> > ._, A <IEnumerable <IRunPropertyDTO> > ._))
            .Invokes(x =>
            {
                _allParameterFeedbackDTO = x.GetArgument <IEnumerable <ParameterFeedbackDTO> >(0).ToList();
                _allPropertiesDTO        = x.GetArgument <IEnumerable <IRunPropertyDTO> >(1).ToList();
            });

            sut.EditParameterIdentification(_paramterIdentification);
        }
 protected override void Context()
 {
     _parameterIdentificationExportTask = A.Fake <IParameterIdentificationExportTask>();
     _parameterIdentification           = A.Fake <ParameterIdentification>();
     sut = new ExportParameterIdentificationToRUICommand(_parameterIdentificationExportTask)
     {
         Subject = _parameterIdentification
     };
 }
Ejemplo n.º 4
0
 public ExportParameterIdentificationToRUICommand(IParameterIdentificationExportTask parameterIdentificationExportTask)
 {
     _parameterIdentificationExportTask = parameterIdentificationExportTask;
 }
 public ParameterIdentificationParametersFeedbackPresenter(IParameterIdentificationParametersFeedbackView view, IParameterIdentificationExportTask exportTask) : base(view)
 {
     _exportTask = exportTask;
 }