public static PositionReportGroup Build()
        {
            var group = new PositionReportGroup();

            group.Rows = new List <PositionReportRow>();
            return(group);
        }
예제 #2
0
        public static PositionReport WithGroup(this PositionReport source, PositionReportGroup value)
        {
            if (source.Groups == null)
            {
                source.Groups = new List <PositionReportGroup> {
                    value
                };
            }
            else
            {
                source.Groups.Add(value);
            }

            return(source);
        }
        public static PositionReportGroup WithRow(this PositionReportGroup source, PositionReportRow value)
        {
            if (source.Rows == null)
            {
                source.Rows = new List <PositionReportRow> {
                    value
                };
            }
            else
            {
                source.Rows.Add(value);
            }

            return(source);
        }
 public static PositionReportGroup WithHeading(this PositionReportGroup source, string value)
 {
     source.Heading = value;
     return(source);
 }