/// <summary>
 /// Checks if teams entries have same position by comparing their results
 /// </summary>
 /// <param name="firstEntry">First team standings entry</param>
 /// <param name="secondEntry">Second team standings entry</param>
 /// <returns>True if teams have same position</returns>
 public static bool EntriesHaveSamePosition(StandingsEntryViewModel firstEntry, StandingsEntryViewModel secondEntry)
 {
     return(firstEntry.Points == secondEntry.Points &&
            firstEntry.SetsRatio == secondEntry.SetsRatio &&
            firstEntry.BallsRatio == secondEntry.BallsRatio);
 }
示例#2
0
 /// <summary>
 /// Checks if teams entries have same position by comparing their results
 /// </summary>
 /// <param name="firstEntry">First team standings entry</param>
 /// <param name="secondEntry">Second team standings entry</param>
 /// <returns>True if teams have same position</returns>
 public static bool EntriesHaveSamePosition(StandingsEntryViewModel firstEntry, StandingsEntryViewModel secondEntry)
 {
     return(firstEntry.Points == secondEntry.Points &&
            EqualsDigitPrecision(firstEntry.SetsRatio, secondEntry.SetsRatio, TOLERANCE) &&
            EqualsDigitPrecision(firstEntry.BallsRatio, secondEntry.BallsRatio, TOLERANCE));
 }