/// <summary>
 /// Initializes a new instance of the <see cref="ChurnGroup"/> class.
 /// </summary>
 /// <param name="groupName">
 /// The name of the group we're reporting for.
 /// </param>
 /// <param name="addedLines">
 /// The number of lines added by the group we're reporting for.
 /// </param>
 /// <param name="removedLines">
 /// The number of lines removed by the group we're reporting for.
 /// </param>
 public ChurnGroup(string groupName, int addedLines, int removedLines)
 {
     _GroupName = (groupName ?? string.Empty).Trim();
     _Additions = addedLines;
     _Removals = removedLines;
     _Unit = ChurnUnit.Lines;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChurnGroup"/> class.
 /// </summary>
 /// <param name="groupName">
 /// The name of the group we're reporting for.
 /// </param>
 /// <param name="addedLines">
 /// The number of lines added by the group we're reporting for.
 /// </param>
 /// <param name="removedLines">
 /// The number of lines removed by the group we're reporting for.
 /// </param>
 public ChurnGroup(string groupName, int addedLines, int removedLines)
 {
     _GroupName = (groupName ?? string.Empty).Trim();
     _Additions = addedLines;
     _Removals  = removedLines;
     _Unit      = ChurnUnit.Lines;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the <see cref="Unit"/> property to the specified value and
 /// returns this <see cref="ChurnCommand"/> instance.
 /// </summary>
 /// <param name="value">
 /// The new value for the <see cref="Unit"/> property.
 /// </param>
 /// <returns>
 /// This <see cref="ChurnCommand"/> instance.
 /// </returns>
 /// <remarks>
 /// This method is part of the fluent interface.
 /// </remarks>
 public ChurnCommand WithUnit(ChurnUnit value)
 {
     Unit = value;
     return(this);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChurnGroup"/> class.
 /// </summary>
 /// <param name="groupName">
 /// The name of the group we're reporting for.
 /// </param>
 /// <param name="addedChangesets">
 /// The number of changesets committed by the group we're reporting for.
 /// </param>
 public ChurnGroup(string groupName, int addedChangesets)
 {
     _GroupName = (groupName ?? string.Empty).Trim();
     _Additions = addedChangesets;
     _Unit = ChurnUnit.Changesets;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChurnGroup"/> class.
 /// </summary>
 /// <param name="groupName">
 /// The name of the group we're reporting for.
 /// </param>
 /// <param name="addedChangesets">
 /// The number of changesets committed by the group we're reporting for.
 /// </param>
 public ChurnGroup(string groupName, int addedChangesets)
 {
     _GroupName = (groupName ?? string.Empty).Trim();
     _Additions = addedChangesets;
     _Unit      = ChurnUnit.Changesets;
 }