public void EditEvent(PKSimEvent pkSimEvent)
        {
            var template = _eventGroupRepository.FindByName(pkSimEvent.TemplateName);

            _eventDTO = new EventDTO {
                Description = _representationInfoRepository.InfoFor(template).Description, Template = template
            };

            _eventParametersPresenter.EditParameters(pkSimEvent.AllParameters(p => !p.IsNamed(Constants.Parameters.START_TIME)));
            _view.BindTo(_eventDTO);
        }
Example #2
0
 public void should_have_set_the_default_flag_in_event_parameters()
 {
     //one parameter was changed by user
     _event.AllParameters(x => !x.IsDefault).Count().ShouldBeEqualTo(1);
 }