mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-30 09:49:04 +00:00
Fixed failing tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
@@ -14,7 +15,9 @@ namespace Octokit
|
||||
|
||||
public WeeklyCommitActivity(IEnumerable<int> days, int total, long week)
|
||||
{
|
||||
Days = days;
|
||||
Ensure.ArgumentNotNull(days, "days");
|
||||
|
||||
Days = new ReadOnlyCollection<int>(days.ToList());
|
||||
Total = total;
|
||||
Week = week;
|
||||
}
|
||||
@@ -22,7 +25,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The days array is a group of commits per day, starting on Sunday.
|
||||
/// </summary>
|
||||
public IEnumerable<int> Days { get; protected set; }
|
||||
public IReadOnlyList<int> Days { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Totally number of commits made this week.
|
||||
|
||||
Reference in New Issue
Block a user