private IHistoryItemDTO simplifiedHistoryItemDTOFrom(IHistoryItemDTO historyItemDTO)
        {
            pruneHistory(historyItemDTO);
            if (historyItemDTO.Children().Count() == 1)
            {
                return(historyItemDTO.Children().ElementAt(0));
            }

            return(historyItemDTO);
        }
 public void should_return_a_dto_object_that_does_not_contain_the_macro_command()
 {
     _result.Children().Count().ShouldBeEqualTo(2);
     _result.Children().ElementAt(0).Command.ShouldBeEqualTo(_subCommand3);
     _result.Children().ElementAt(1).Command.ShouldBeEqualTo(_subCommand122);
 }
 public void should_return_a_dto_object_that_contain_one_child_for_each_visible_sub_command()
 {
     _result.Children().Count().ShouldBeEqualTo(2);
 }