File tree Expand file tree Collapse file tree
csharp-github-api.IntegrationTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ public class UsersTest
1010 {
1111 public abstract class UsersTestsBase : TestsSpecBase
1212 {
13- protected Github Github ;
13+ protected GithubRestApiClient Github ;
1414
1515 protected string User ;
1616
1717 public override void Context ( )
1818 {
19- Github = new Github ( GitHubUrl ) ;
19+ Github = new GithubRestApiClient ( GitHubUrl ) ;
2020 }
2121 }
2222
Original file line number Diff line number Diff line change @@ -25,21 +25,21 @@ namespace csharp_github_api
2525 /// <summary>
2626 /// Access the Github.com API.
2727 /// </summary>
28- public class Github
28+ public partial class GithubRestApiClient
2929 {
3030 private readonly IAuthenticator _gitHubAuthenticator ;
3131
3232 /// <summary>
3333 /// Default Constructor.
3434 /// </summary>
3535 /// <param name="baseUrl">The base URL for accessing GitHub's API.</param>
36- public Github ( string baseUrl )
36+ public GithubRestApiClient ( string baseUrl )
3737 {
3838 BaseUrl = baseUrl ;
3939 Log . InitializeWith < NullLog > ( ) ;
4040 }
4141
42- public Github WithLogger < TLogger > ( ) where TLogger : ILog , new ( )
42+ public GithubRestApiClient WithLogger < TLogger > ( ) where TLogger : ILog , new ( )
4343 {
4444 Log . InitializeWith < TLogger > ( ) ;
4545 this . Log ( ) . Info ( "Logging enabled with {0}." , typeof ( TLogger ) . FullName ) ;
@@ -52,7 +52,7 @@ public Github(string baseUrl)
5252 /// </summary>
5353 /// <param name="baseUrl">The base URL for accessing GitHub's API.</param>
5454 /// <param name="authenticator">The <see cref="IAuthenticator"/> to use for authentication.</param>
55- public Github ( string baseUrl , IAuthenticator authenticator )
55+ public GithubRestApiClient ( string baseUrl , IAuthenticator authenticator )
5656 : this ( baseUrl )
5757 {
5858 _gitHubAuthenticator = authenticator ;
Original file line number Diff line number Diff line change 1818
1919namespace csharp_github_api
2020{
21- using RestSharp ;
21+ using csharp_github_api . Resource ;
22+ using RestSharp ;
2223
2324 /// <summary>
2425 /// Encapsulates access to the Github.com User API.
@@ -28,8 +29,6 @@ namespace csharp_github_api
2829 /// </remarks>
2930 public class Users : Api
3031 {
31- //private static readonly ILog Log = LoggingExtensions.Logging.Log.
32-
3332 public Users ( ) { }
3433
3534 /// <summary>
@@ -38,6 +37,7 @@ public Users(){}
3837 /// <param name="baseUrl">The base url for GitHub's API.</param>
3938 public Users ( string baseUrl ) : base ( baseUrl )
4039 {
40+
4141 }
4242
4343 /// <summary>
You can’t perform that action at this time.
0 commit comments