Applying our private member naming convention

Just trying to make @half-ogre happy
This commit is contained in:
Haacked
2013-10-04 10:01:20 -07:00
parent 41263a329c
commit adfb50198e
14 changed files with 71 additions and 76 deletions
@@ -7,42 +7,42 @@ namespace Octokit.Reactive.Clients
{
public class ObservableAuthorizationsClient : IObservableAuthorizationsClient
{
readonly IAuthorizationsClient client;
readonly IAuthorizationsClient _client;
public ObservableAuthorizationsClient(IAuthorizationsClient client)
{
Ensure.ArgumentNotNull(client, "client");
this.client = client;
_client = client;
}
public IObservable<IReadOnlyCollection<Authorization>> GetAll()
{
return client.GetAll().ToObservable();
return _client.GetAll().ToObservable();
}
public IObservable<Authorization> Get(int id)
{
return client.Get(id).ToObservable();
return _client.Get(id).ToObservable();
}
public IObservable<Authorization> Update(int id, AuthorizationUpdate authorization)
{
Ensure.ArgumentNotNull(authorization, "authorization");
return client.Update(id, authorization).ToObservable();
return _client.Update(id, authorization).ToObservable();
}
public IObservable<Authorization> Create(AuthorizationUpdate authorization)
{
Ensure.ArgumentNotNull(authorization, "authorization");
return client.Create(authorization).ToObservable();
return _client.Create(authorization).ToObservable();
}
public IObservable<Unit> Delete(int id)
{
return client.Delete(id).ToObservable();
return _client.Delete(id).ToObservable();
}
}
}
@@ -6,18 +6,18 @@ namespace Octokit.Reactive.Clients
{
public class ObservableAutoCompleteClient : IObservableAutoCompleteClient
{
readonly IAutoCompleteClient client;
readonly IAutoCompleteClient _client;
public ObservableAutoCompleteClient(IAutoCompleteClient client)
{
Ensure.ArgumentNotNull(client, "client");
this.client = client;
_client = client;
}
public IObservable<IReadOnlyDictionary<string, Uri>> GetEmojis()
{
return client.GetEmojis().ToObservable();
return _client.GetEmojis().ToObservable();
}
}
}
@@ -6,32 +6,32 @@ namespace Octokit.Reactive.Clients
{
public class ObservableOrganizationsClient : IObservableOrganizationsClient
{
readonly IOrganizationsClient client;
readonly IOrganizationsClient _client;
public ObservableOrganizationsClient(IOrganizationsClient client)
{
Ensure.ArgumentNotNull(client, "client");
this.client = client;
_client = client;
}
public IObservable<Organization> Get(string org)
{
Ensure.ArgumentNotNullOrEmptyString(org, "org");
return client.Get(org).ToObservable();
return _client.Get(org).ToObservable();
}
public IObservable<IReadOnlyCollection<Organization>> GetAllForCurrent()
{
return client.GetAllForCurrent().ToObservable();
return _client.GetAllForCurrent().ToObservable();
}
public IObservable<IReadOnlyCollection<Organization>> GetAll(string user)
{
Ensure.ArgumentNotNullOrEmptyString(user, "user");
return client.GetAll(user).ToObservable();
return _client.GetAll(user).ToObservable();
}
}
}
@@ -6,13 +6,13 @@ namespace Octokit.Reactive.Clients
{
public class ObservableRepositoriesClient : IObservableRepositoriesClient
{
readonly IRepositoriesClient client;
readonly IRepositoriesClient _client;
public ObservableRepositoriesClient(IRepositoriesClient client)
{
Ensure.ArgumentNotNull(client, "client");
this.client = client;
_client = client;
}
public IObservable<Repository> Get(string owner, string name)
@@ -20,26 +20,26 @@ namespace Octokit.Reactive.Clients
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
return client.Get(owner, name).ToObservable();
return _client.Get(owner, name).ToObservable();
}
public IObservable<IReadOnlyCollection<Repository>> GetAllForCurrent()
{
return client.GetAllForCurrent().ToObservable();
return _client.GetAllForCurrent().ToObservable();
}
public IObservable<IReadOnlyCollection<Repository>> GetAllForUser(string login)
{
Ensure.ArgumentNotNullOrEmptyString(login, "login");
return client.GetAllForUser(login).ToObservable();
return _client.GetAllForUser(login).ToObservable();
}
public IObservable<IReadOnlyCollection<Repository>> GetAllForOrg(string organization)
{
Ensure.ArgumentNotNullOrEmptyString(organization, "organization");
return client.GetAllForOrg(organization).ToObservable();
return _client.GetAllForOrg(organization).ToObservable();
}
public IObservable<Readme> GetReadme(string owner, string name)
@@ -47,7 +47,7 @@ namespace Octokit.Reactive.Clients
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
return client.GetReadme(owner, name).ToObservable();
return _client.GetReadme(owner, name).ToObservable();
}
}
}
@@ -7,49 +7,49 @@ namespace Octokit.Reactive.Clients
{
public class ObservableSshKeysClient : IObservableSshKeysClient
{
readonly ISshKeysClient client;
readonly ISshKeysClient _client;
public ObservableSshKeysClient(ISshKeysClient client)
{
Ensure.ArgumentNotNull(client, "client");
this.client = client;
_client = client;
}
public IObservable<SshKey> Get(int id)
{
return client.Get(id).ToObservable();
return _client.Get(id).ToObservable();
}
public IObservable<IReadOnlyCollection<SshKey>> GetAll(string user)
{
Ensure.ArgumentNotNullOrEmptyString(user, "user");
return client.GetAll(user).ToObservable();
return _client.GetAll(user).ToObservable();
}
public IObservable<IReadOnlyCollection<SshKey>> GetAllForCurrent()
{
return client.GetAllForCurrent().ToObservable();
return _client.GetAllForCurrent().ToObservable();
}
public IObservable<SshKey> Create(SshKeyUpdate key)
{
Ensure.ArgumentNotNull(key, "key");
return client.Create(key).ToObservable();
return _client.Create(key).ToObservable();
}
public IObservable<SshKey> Update(int id, SshKeyUpdate key)
{
Ensure.ArgumentNotNull(key, "key");
return client.Update(id, key).ToObservable();
return _client.Update(id, key).ToObservable();
}
public IObservable<Unit> Delete(int id)
{
return client.Delete(id).ToObservable();
return _client.Delete(id).ToObservable();
}
}
}
@@ -11,7 +11,7 @@ namespace Octokit.Reactive.Clients
{
Ensure.ArgumentNotNull(client, "client");
this._client = client;
_client = client;
}
public IObservable<User> Get(string login)