mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
270356b5b4
* Implement GetLicenseContents() method for getting repository's license info * Request License Preview API for calls that return Repository object. * Add missing accept headers to observable methods for ObservableRepositoriesClients * fix impacted unit tests
82 lines
1.9 KiB
C#
82 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using NSubstitute;
|
|
using Octokit.Internal;
|
|
|
|
namespace Octokit.Tests
|
|
{
|
|
internal class Args
|
|
{
|
|
public static AuthorizationUpdate AuthorizationUpdate
|
|
{
|
|
get { return Arg.Any<AuthorizationUpdate>(); }
|
|
}
|
|
|
|
public static NewAuthorization NewAuthorization
|
|
{
|
|
get { return Arg.Any<NewAuthorization>(); }
|
|
}
|
|
|
|
public static Uri Uri
|
|
{
|
|
get { return Arg.Any<Uri>(); }
|
|
}
|
|
|
|
public static UserUpdate UserUpdate
|
|
{
|
|
get { return Arg.Any<UserUpdate>(); }
|
|
}
|
|
|
|
public static IRequest Request
|
|
{
|
|
get { return Arg.Any<IRequest>(); }
|
|
}
|
|
|
|
public static object Object
|
|
{
|
|
get { return Arg.Any<object>(); }
|
|
}
|
|
|
|
public static string String
|
|
{
|
|
get { return Arg.Any<string>(); }
|
|
}
|
|
|
|
public static NewRepository NewRepository
|
|
{
|
|
get { return Arg.Any<NewRepository>(); }
|
|
}
|
|
|
|
public static Dictionary<string, string> EmptyDictionary
|
|
{
|
|
get { return Arg.Is<Dictionary<string, string>>(d => d.Count == 0); }
|
|
}
|
|
|
|
public static OrganizationUpdate OrganizationUpdate
|
|
{
|
|
get { return Arg.Any<OrganizationUpdate>(); }
|
|
}
|
|
|
|
public static CancellationToken CancellationToken
|
|
{
|
|
get { return Arg.Any<CancellationToken>(); }
|
|
}
|
|
|
|
public static NewDeployKey NewDeployKey
|
|
{
|
|
get { return Arg.Any<NewDeployKey>(); }
|
|
}
|
|
|
|
public static ApiOptions ApiOptions
|
|
{
|
|
get { return Arg.Any<ApiOptions>(); }
|
|
}
|
|
|
|
public static string AnyAcceptHeaders
|
|
{
|
|
get { return Arg.Any<string>(); }
|
|
}
|
|
}
|
|
}
|