Ejemplo n.º 1
0
        private static ParameterGroupingMode create(ParameterGroupingModeId id, string displayName)
        {
            var groupMode = new ParameterGroupingMode(id, displayName);

            _allGroupModes.Add(groupMode);
            return(groupMode);
        }
        protected void CreateSutForSettings(ParameterGroupingModeId parameterGroupingModeId)
        {
            A.CallTo(() => _userSettings.DefaultParameterGroupingMode).Returns(parameterGroupingModeId);
            var settings = new ParameterGroupsPresenterSettings();

            settings.DefaultParameterGroupingModeId = parameterGroupingModeId;
            A.CallTo(_presenterSettingsTask).WithReturnType <ParameterGroupsPresenterSettings>().Returns(settings);
            sut = new ParameterGroupsPresenter(_view, _parameterGroupTask, _groupNodeCreator, _containerNodeMapper,
                                               _parameterPresenterMapper, _noItemInSelectionPresenter, _treeNodeFactory, _groupRepository, _userSettings,
                                               _presenterSettingsTask, _treeNodeContextMenuFactory);
        }
Ejemplo n.º 3
0
 private ParameterGroupingMode groupingModeFrom(ParameterGroupingModeId parameterGroupingModeId)
 {
     return(ParameterGroupingModes.ById(parameterGroupingModeId));
 }
Ejemplo n.º 4
0
 public ParameterGroupingMode(ParameterGroupingModeId id, string displayName)
 {
     Id          = id;
     DisplayName = displayName;
 }
Ejemplo n.º 5
0
 public static ParameterGroupingMode ById(ParameterGroupingModeId id)
 {
     return(_allGroupModes[id]);
 }