public void ToStringTest()
        {
            var expansion = new PlanListInformationExpansion("test");

            var actual = expansion.ToString();

            actual.ShouldBe("test");

            expansion.IncludeBranches();
            expansion.IncludeActions();
            expansion.IncludeStages();

            actual = expansion.ToString();
            actual.ShouldBe("test.branches,test.actions,test.stages");
        }
 public override void ApplyToRestRequest(IRestRequest restRequest)
 {
     if (_planListInformationExpansion != null)
     {
         restRequest.AddParameter("expand", _planListInformationExpansion.ToString());
     }
 }
        public override void ApplyToRestRequest(IRestRequest restRequest)
        {
            if (IncludeEmptyProjects)
            {
                restRequest.AddParameter("showEmpty", null);
            }

            var expandState = _planListInformationExpansion?.ToString() ?? "projects.project";

            restRequest.AddParameter("expand", expandState);
        }