mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
Method of assembly determination was changed in order to use types of top level (#1273)
This commit is contained in:
committed by
Brendan Forster
parent
190ccf04c2
commit
494bbfda42
@@ -97,7 +97,7 @@ namespace Octokit.Tests.Conventions
|
||||
|
||||
public static IEnumerable<object[]> GetClientInterfaces()
|
||||
{
|
||||
return typeof(IEventsClient)
|
||||
return typeof(IGitHubClient)
|
||||
.Assembly
|
||||
.ExportedTypes
|
||||
.Where(TypeExtensions.IsClientInterface)
|
||||
@@ -119,7 +119,7 @@ namespace Octokit.Tests.Conventions
|
||||
{
|
||||
var allModelTypes = new HashSet<Type>();
|
||||
|
||||
var clientInterfaces = typeof(IEventsClient).Assembly.ExportedTypes
|
||||
var clientInterfaces = typeof(IGitHubClient).Assembly.ExportedTypes
|
||||
.Where(type => type.IsClientInterface());
|
||||
|
||||
foreach (var exportedType in clientInterfaces)
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace Octokit.Tests.Conventions
|
||||
|
||||
public static IEnumerable<object[]> GetClientInterfaces()
|
||||
{
|
||||
return typeof(IEventsClient).Assembly.ExportedTypes
|
||||
return typeof(IGitHubClient).Assembly.ExportedTypes
|
||||
.Where(TypeExtensions.IsClientInterface)
|
||||
.Where(type => type != typeof(IStatisticsClient))
|
||||
.Select(type => new[] { type });
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Octokit.Tests.Conventions
|
||||
|
||||
public static IEnumerable<object[]> GetClientInterfaces()
|
||||
{
|
||||
return typeof(IEventsClient)
|
||||
return typeof(IGitHubClient)
|
||||
.Assembly
|
||||
.ExportedTypes
|
||||
.Where(TypeExtensions.IsClientInterface)
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Octokit.Tests.Conventions
|
||||
|
||||
public static bool IsClientInterface(this Type type)
|
||||
{
|
||||
return type.IsInterface && type.Name.EndsWith(ClientSuffix) && type.Namespace == typeof(IEventsClient).Namespace;
|
||||
return type.IsInterface && type.Name.EndsWith(ClientSuffix) && type.Namespace == typeof(IGitHubClient).Namespace;
|
||||
}
|
||||
|
||||
public static Type GetObservableClientInterface(this Type type)
|
||||
|
||||
Reference in New Issue
Block a user