Clean up the Octokit.Reactive namespaces

Fixes #84
This commit is contained in:
Haacked
2013-10-18 22:11:29 -07:00
parent de305aace8
commit ad4be39ea3
16 changed files with 25 additions and 26 deletions

View File

@@ -1,9 +1,9 @@
using System;
using System.Reactive;
using System.Reactive.Threading.Tasks;
using Octokit.Reactive.Helpers;
using Octokit.Reactive.Internal;
namespace Octokit.Reactive.Clients
namespace Octokit.Reactive
{
public class ObservableAuthorizationsClient : IObservableAuthorizationsClient
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Reactive.Threading.Tasks;
namespace Octokit.Reactive.Clients
namespace Octokit.Reactive
{
public class ObservableMiscellaneousClient : IObservableMiscellaneousClient
{

View File

@@ -1,8 +1,8 @@
using System;
using System.Reactive.Threading.Tasks;
using Octokit.Reactive.Helpers;
using Octokit.Reactive.Internal;
namespace Octokit.Reactive.Clients
namespace Octokit.Reactive
{
public class ObservableOrganizationsClient : IObservableOrganizationsClient
{

View File

@@ -1,8 +1,8 @@
using System;
using System.Reactive.Threading.Tasks;
using Octokit.Reactive.Helpers;
using Octokit.Reactive.Internal;
namespace Octokit.Reactive.Clients
namespace Octokit.Reactive
{
public class ObservableReleasesClient : IObservableReleasesClient
{

View File

@@ -1,9 +1,9 @@
using System;
using System.Reactive;
using System.Reactive.Threading.Tasks;
using Octokit.Reactive.Helpers;
using Octokit.Reactive.Internal;
namespace Octokit.Reactive.Clients
namespace Octokit.Reactive
{
public class ObservableRepositoriesClient : IObservableRepositoriesClient
{

View File

@@ -1,9 +1,9 @@
using System;
using System.Reactive;
using System.Reactive.Threading.Tasks;
using Octokit.Reactive.Helpers;
using Octokit.Reactive.Internal;
namespace Octokit.Reactive.Clients
namespace Octokit.Reactive
{
public class ObservableSshKeysClient : IObservableSshKeysClient
{

View File

@@ -1,8 +1,8 @@
using System;
using System.Reactive.Threading.Tasks;
using Octokit.Reactive.Helpers;
using Octokit.Reactive.Internal;
namespace Octokit.Reactive.Clients
namespace Octokit.Reactive
{
public class ObservableUsersClient : IObservableUsersClient
{

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
namespace Octokit.Reactive.Helpers
namespace Octokit.Reactive.Internal
{
internal static class ConnectionExtensions
{

View File

@@ -5,7 +5,7 @@ using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
namespace Octokit.Reactive.Helpers
namespace Octokit.Reactive.Internal
{
public static class ObservableExtensions
{

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Octokit.Reactive
@@ -9,6 +8,7 @@ namespace Octokit.Reactive
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
Justification = "Makes a network request")]
IObservable<IReadOnlyDictionary<string, Uri>> GetEmojis();
IObservable<string> RenderRawMarkdown(string markdown);
}
}

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Octokit.Reactive

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;

View File

@@ -1,5 +1,4 @@
using Octokit.Internal;
using Octokit.Reactive.Clients;
namespace Octokit.Reactive
{
@@ -21,7 +20,11 @@ namespace Octokit.Reactive
Release = new ObservableReleasesClient(gitHubClient);
}
public IConnection Connection { get { return _gitHubClient.Connection; }}
public IConnection Connection
{
get { return _gitHubClient.Connection; }
}
public IObservableAuthorizationsClient Authorization { get; private set; }
public IObservableMiscellaneousClient Miscellaneous { get; private set; }
public IObservableOrganizationsClient Organization { get; private set; }

View File

@@ -1,6 +1,6 @@
using System.Reactive.Linq;
using System.Threading.Tasks;
using Octokit.Reactive.Clients;
using Octokit.Reactive;
using Xunit;
namespace Octokit.Tests.Integration

View File

@@ -4,8 +4,7 @@ using System.Reactive.Linq;
using System.Threading.Tasks;
using NSubstitute;
using Octokit.Internal;
using Octokit.Reactive.Clients;
using Octokit.Reactive;
using Xunit;
namespace Octokit.Tests.Reactive