mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Rename to Octokit to be consistent with other API libs
GitHub is naming all of the libraries Octokit for their respective platforms
This commit is contained in:
@@ -12,6 +12,6 @@ param(
|
||||
)
|
||||
|
||||
$scriptPath = Split-Path $MyInvocation.MyCommand.Path
|
||||
$projFile = join-path $scriptPath Octopi.msbuild
|
||||
$projFile = join-path $scriptPath Octokit.msbuild
|
||||
|
||||
& "$(get-content env:windir)\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" $projFile /t:$build /p:Configuration=$config /verbosity:$MSBuildVerbosity
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# How to Contribute
|
||||
|
||||
We love Pull Requests! Your contributions help make Octopi great.
|
||||
We love Pull Requests! Your contributions help make Octokit great.
|
||||
|
||||
## Getting Started
|
||||
|
||||
So you want to contribute to Octopi. Great! Contributions take many forms from
|
||||
So you want to contribute to Octokit. Great! Contributions take many forms from
|
||||
submitting issues, writing docs, to making code changes. We welcome it all.
|
||||
|
||||
But first things first...
|
||||
@@ -16,7 +16,7 @@ But first things first...
|
||||
* Fork the repository on GitHub by clicking on the "Clone in Windows" button or
|
||||
run the following command in a git shell.
|
||||
```
|
||||
git clone git@github.com:github/Octopi.git
|
||||
git clone git@github.com:github/Octokit.net.git Octokit
|
||||
```
|
||||
* Make sure the project builds and all tests pass on your machine by running
|
||||
the `build.cmd` script (this calls a PowerShell script, `Build-Solution.ps1`).
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<Word>Git</Word>
|
||||
<Word>Gists</Word>
|
||||
<Word>Hireable</Word>
|
||||
<Word>Octopi</Word>
|
||||
<Word>Octokit</Word>
|
||||
<Word>OAuth</Word>
|
||||
<Word>Poco</Word>
|
||||
<Word>Ssh</Word>
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Reactive;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive.Clients
|
||||
namespace Octokit.Reactive.Clients
|
||||
{
|
||||
public class ObservableAuthorizationsClient : IObservableAuthorizationsClient
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive.Clients
|
||||
namespace Octokit.Reactive.Clients
|
||||
{
|
||||
public class ObservableAutoCompleteClient : IObservableAutoCompleteClient
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive.Clients
|
||||
namespace Octokit.Reactive.Clients
|
||||
{
|
||||
public class ObservableOrganizationsClient : IObservableOrganizationsClient
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive.Clients
|
||||
namespace Octokit.Reactive.Clients
|
||||
{
|
||||
public class ObservableRepositoriesClient : IObservableRepositoriesClient
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Reactive;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive.Clients
|
||||
namespace Octokit.Reactive.Clients
|
||||
{
|
||||
public class ObservableSshKeysClient : IObservableSshKeysClient
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive.Clients
|
||||
namespace Octokit.Reactive.Clients
|
||||
{
|
||||
public class ObservableUsersClient : IObservableUsersClient
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Reactive;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableAuthorizationsClient
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableAutoCompleteClient
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableGitHubClient
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableOrganizationsClient
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableRepositoriesClient
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Reactive;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableSshKeysClient
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableUsersClient
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public static class ObservableExtensions
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Octopi.Reactive.Clients;
|
||||
using Octokit.Reactive.Clients;
|
||||
|
||||
namespace Octopi.Reactive
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public class ObservableGitHubClient : IObservableGitHubClient
|
||||
{
|
||||
@@ -7,8 +7,8 @@
|
||||
<ProjectGuid>{674B69B8-0780-4D54-AE2B-C15821FA51CB}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Octopi.Reactive</RootNamespace>
|
||||
<AssemblyName>Octopi.Reactive</AssemblyName>
|
||||
<RootNamespace>Octokit.Reactive</RootNamespace>
|
||||
<AssemblyName>Octokit.Reactive</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
@@ -20,6 +20,9 @@
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||
<CodeAnalysisRuleSet>..\Octokit.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -51,7 +54,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Octopi\Helpers\Ensure.cs">
|
||||
<Compile Include="..\Octokit\Helpers\Ensure.cs">
|
||||
<Link>Helpers\Ensure.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Clients\ObservableAuthorizationsClient.cs" />
|
||||
@@ -72,9 +75,9 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Octopi\Octopi.csproj">
|
||||
<ProjectReference Include="..\Octokit\Octokit.csproj">
|
||||
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
||||
<Name>Octopi</Name>
|
||||
<Name>Octokit</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Octopi.Reactive")]
|
||||
[assembly: AssemblyTitle("Octokit.Reactive")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Octopi.Reactive")]
|
||||
[assembly: AssemblyProduct("Octokit.Reactive")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2013")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Integration
|
||||
namespace Octokit.Tests.Integration
|
||||
{
|
||||
public class AutoCompleteClientTests
|
||||
{
|
||||
@@ -7,8 +7,8 @@
|
||||
<ProjectGuid>{01687D54-1D87-4562-A721-C57F1C94052C}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Octopi.Tests.Integration</RootNamespace>
|
||||
<AssemblyName>Octopi.Tests.Integration</AssemblyName>
|
||||
<RootNamespace>Octokit.Tests.Integration</RootNamespace>
|
||||
<AssemblyName>Octokit.Tests.Integration</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
@@ -55,13 +55,13 @@
|
||||
<Compile Include="UsersClientTests.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Octopi.Tests\Octopi.Tests.csproj">
|
||||
<ProjectReference Include="..\Octokit.Tests\Octokit.Tests.csproj">
|
||||
<Project>{149448d4-c2f2-4df9-86bd-03e3272f093b}</Project>
|
||||
<Name>Octopi.Tests</Name>
|
||||
<Name>Octokit.Tests</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Octopi\Octopi.csproj">
|
||||
<ProjectReference Include="..\Octokit\Octokit.csproj">
|
||||
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
||||
<Name>Octopi</Name>
|
||||
<Name>Octokit</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
|
||||
[assembly: AssemblyTitle("Octopi.Tests.Integration")]
|
||||
[assembly: AssemblyTitle("Octokit.Tests.Integration")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("Octopi.Tests.Integration")]
|
||||
[assembly: AssemblyProduct("Octokit.Tests.Integration")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Integration
|
||||
namespace Octokit.Tests.Integration
|
||||
{
|
||||
public class RepositoriesClientTests
|
||||
{
|
||||
@@ -42,14 +42,14 @@ namespace Octopi.Tests.Integration
|
||||
public class TheGetReadmeMethod
|
||||
{
|
||||
[Fact]
|
||||
public async Task ReturnsReadmeForOctopi()
|
||||
public async Task ReturnsReadmeForOctokit()
|
||||
{
|
||||
var github = new GitHubClient
|
||||
{
|
||||
Credentials = new Credentials("xapitestaccountx", "octocat11")
|
||||
};
|
||||
|
||||
// TODO: Change this to request github/octopi once we make this OSS.
|
||||
// TODO: Change this to request github/Octokit.net once we make this OSS.
|
||||
var readme = await github.Repository.GetReadme("haacked", "seegit");
|
||||
readme.Name.Should().Be("README.md");
|
||||
var readMeHtml = await readme.GetHtmlContent();
|
||||
@@ -3,11 +3,11 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octopi.Tests.Helpers;
|
||||
using Octokit.Http;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Integration
|
||||
namespace Octokit.Tests.Integration
|
||||
{
|
||||
public class UsersClientTests
|
||||
{
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using FluentAssertions;
|
||||
using Octopi.Authentication;
|
||||
using Octopi.Http;
|
||||
using Octokit.Authentication;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
public class BasicAuthenticatorTests
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Authentication
|
||||
namespace Octokit.Tests.Authentication
|
||||
{
|
||||
public class CredentialsTests
|
||||
{
|
||||
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using FluentAssertions;
|
||||
using NSubstitute;
|
||||
using Octopi.Authentication;
|
||||
using Octopi.Http;
|
||||
using Octokit.Authentication;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
public class TokenAuthenticatorTests
|
||||
{
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using NSubstitute;
|
||||
using Octopi.Clients;
|
||||
using Octopi.Http;
|
||||
using Octokit.Clients;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Clients
|
||||
namespace Octokit.Tests.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||
@@ -3,11 +3,11 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using NSubstitute;
|
||||
using Octopi.Clients;
|
||||
using Octopi.Http;
|
||||
using Octokit.Clients;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Clients
|
||||
namespace Octokit.Tests.Clients
|
||||
{
|
||||
public class AutoCompleteClientTests
|
||||
{
|
||||
@@ -1,12 +1,12 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octopi.Clients;
|
||||
using Octopi.Http;
|
||||
using Octopi.Tests.Helpers;
|
||||
using Octokit.Clients;
|
||||
using Octokit.Http;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Clients
|
||||
namespace Octokit.Tests.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||
@@ -3,12 +3,12 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using NSubstitute;
|
||||
using Octopi.Clients;
|
||||
using Octopi.Http;
|
||||
using Octopi.Tests.Helpers;
|
||||
using Octokit.Clients;
|
||||
using Octokit.Http;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Clients
|
||||
namespace Octokit.Tests.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||
@@ -1,12 +1,12 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octopi.Clients;
|
||||
using Octopi.Http;
|
||||
using Octopi.Tests.Helpers;
|
||||
using Octokit.Clients;
|
||||
using Octokit.Http;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Clients
|
||||
namespace Octokit.Tests.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||
@@ -1,12 +1,12 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octopi.Clients;
|
||||
using Octopi.Http;
|
||||
using Octopi.Tests.Helpers;
|
||||
using Octokit.Clients;
|
||||
using Octokit.Http;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Clients
|
||||
namespace Octokit.Tests.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper class for handling our embedded resources.
|
||||
@@ -1,23 +1,23 @@
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
public static class Fixtures
|
||||
{
|
||||
public static EmbeddedResource AuthorizationsJson =
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octopi.Tests.Fixtures.authorizations.json");
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octokit.Tests.Fixtures.authorizations.json");
|
||||
|
||||
public static EmbeddedResource AuthorizationJson =
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octopi.Tests.Fixtures.authorization.json");
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octokit.Tests.Fixtures.authorization.json");
|
||||
|
||||
public static EmbeddedResource UserJson =
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octopi.Tests.Fixtures.user.json");
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octokit.Tests.Fixtures.user.json");
|
||||
|
||||
public static EmbeddedResource UserFullJson =
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octopi.Tests.Fixtures.user_full.json");
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octokit.Tests.Fixtures.user_full.json");
|
||||
|
||||
public static EmbeddedResource RepositoryJson =
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octopi.Tests.Fixtures.repository.json");
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octokit.Tests.Fixtures.repository.json");
|
||||
|
||||
public static EmbeddedResource RepositoriesJson =
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octopi.Tests.Fixtures.repositories.json");
|
||||
new EmbeddedResource(typeof(Fixtures).Assembly, "Octokit.Tests.Fixtures.repositories.json");
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using FluentAssertions;
|
||||
using NSubstitute;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
public class GitHubClientTests
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using NSubstitute;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
internal class Args
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Helpers
|
||||
namespace Octokit.Tests.Helpers
|
||||
{
|
||||
public static class AssertEx
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using FluentAssertions;
|
||||
using Xunit;
|
||||
using Xunit.Extensions;
|
||||
|
||||
namespace Octopi.Tests.Helpers
|
||||
namespace Octokit.Tests.Helpers
|
||||
{
|
||||
public class StringExtensionsTests
|
||||
{
|
||||
@@ -3,11 +3,11 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using NSubstitute;
|
||||
using Octopi.Http;
|
||||
using Octopi.Tests.Helpers;
|
||||
using Octokit.Http;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Http
|
||||
namespace Octokit.Tests.Http
|
||||
{
|
||||
public class ApiConnectionTests
|
||||
{
|
||||
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
using Xunit.Extensions;
|
||||
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
public class ApiInfoParserTests
|
||||
{
|
||||
@@ -4,10 +4,10 @@ using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using NSubstitute;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Http
|
||||
namespace Octokit.Tests.Http
|
||||
{
|
||||
public class ConnectionTests
|
||||
{
|
||||
@@ -5,10 +5,10 @@ using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Http
|
||||
namespace Octokit.Tests.Http
|
||||
{
|
||||
public class HttpClientAdapterTests
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Http
|
||||
namespace Octokit.Tests.Http
|
||||
{
|
||||
public class JsonHttpPipelineTests
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Http
|
||||
namespace Octokit.Tests.Http
|
||||
{
|
||||
public class RequestTests
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests.Http
|
||||
namespace Octokit.Tests.Http
|
||||
{
|
||||
public class ResponseTests
|
||||
{
|
||||
@@ -7,8 +7,8 @@
|
||||
<ProjectGuid>{149448D4-C2F2-4DF9-86BD-03E3272F093B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Octopi.Tests</RootNamespace>
|
||||
<AssemblyName>Octopi.Tests</AssemblyName>
|
||||
<RootNamespace>Octokit.Tests</RootNamespace>
|
||||
<AssemblyName>Octokit.Tests</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
@@ -81,9 +81,9 @@
|
||||
<Compile Include="Clients\UsersClientTests.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Octopi\Octopi.csproj">
|
||||
<ProjectReference Include="..\Octokit\Octokit.csproj">
|
||||
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
||||
<Name>Octopi</Name>
|
||||
<Name>Octokit</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
|
||||
[assembly: AssemblyTitle("Octopi.Tests")]
|
||||
[assembly: AssemblyTitle("Octokit.Tests")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("Octopi.Tests")]
|
||||
[assembly: AssemblyProduct("Octokit.Tests")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
@@ -1,8 +1,8 @@
|
||||
using FluentAssertions;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Octopi.Tests
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
public class SimpleJsonSerializerTests
|
||||
{
|
||||
@@ -6,19 +6,19 @@
|
||||
<UsingTask AssemblyFile=".\packages\xunit.1.9.1\lib\net20\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
|
||||
|
||||
<Target Name="Clean">
|
||||
<MSBuild Projects=".\Octopi.sln" Targets="Clean" Properties="Configuration=$(Configuration)"/>
|
||||
<MSBuild Projects=".\Octokit.sln" Targets="Clean" Properties="Configuration=$(Configuration)"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="Build" DependsOnTargets="Clean">
|
||||
<MSBuild Projects=".\Octopi.sln" Targets="Build" Properties="Configuration=$(Configuration)" />
|
||||
<MSBuild Projects=".\Octokit.sln" Targets="Build" Properties="Configuration=$(Configuration)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="RunUnitTests" DependsOnTargets="Build">
|
||||
<xunit Assembly=".\Octopi.Tests\bin\$(Configuration)\Octopi.Tests.dll" Xml="Octopi.Tests.results.xml" />
|
||||
<xunit Assembly=".\Octokit.Tests\bin\$(Configuration)\Octokit.Tests.dll" Xml="Octokit.Tests.results.xml" />
|
||||
</Target>
|
||||
|
||||
<Target Name="RunIntegrationTests" DependsOnTargets="Build">
|
||||
<xunit Assembly=".\Octopi.Tests.Integration\bin\$(Configuration)\Octopi.Tests.Integration.dll" Xml="Octopi.Tests.Integration.results.xml" />
|
||||
<xunit Assembly=".\Octokit.Tests.Integration\bin\$(Configuration)\Octokit.Tests.Integration.dll" Xml="Octokit.Tests.Integration.results.xml" />
|
||||
</Target>
|
||||
|
||||
<Target Name="FullBuild" DependsOnTargets="RunUnitTests; RunIntegrationTests" />
|
||||
@@ -1,11 +1,11 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octopi", "Octopi\Octopi.csproj", "{08DD4305-7787-4823-A53F-4D0F725A07F3}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit", "Octokit\Octokit.csproj", "{08DD4305-7787-4823-A53F-4D0F725A07F3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octopi.Tests", "Octopi.Tests\Octopi.Tests.csproj", "{149448D4-C2F2-4DF9-86BD-03E3272F093B}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests", "Octokit.Tests\Octokit.Tests.csproj", "{149448D4-C2F2-4DF9-86BD-03E3272F093B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octopi.Tests.Integration", "Octopi.Tests.Integration\Octopi.Tests.Integration.csproj", "{01687D54-1D87-4562-A721-C57F1C94052C}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests.Integration", "Octokit.Tests.Integration\Octokit.Tests.Integration.csproj", "{01687D54-1D87-4562-A721-C57F1C94052C}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CEC9D451-6291-4EDF-971A-D398144FBF96}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
@@ -13,8 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CEC9D451
|
||||
build.cmd = build.cmd
|
||||
script\cibuild.ps1 = script\cibuild.ps1
|
||||
CustomDictionary.xml = CustomDictionary.xml
|
||||
Octopi.msbuild = Octopi.msbuild
|
||||
Octopi.ruleset = Octopi.ruleset
|
||||
Octokit.msbuild = Octokit.msbuild
|
||||
Octokit.ruleset = Octokit.ruleset
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{397C742D-291E-46BD-99A5-57BB6902FA7B}"
|
||||
@@ -24,9 +24,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{397C742D-2
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OctopiRT", "Octopi\OctopiRT.csproj", "{C8BC13B6-3FA3-4716-827D-E7706F976FE1}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OctokitRT", "Octokit\OctokitRT.csproj", "{C8BC13B6-3FA3-4716-827D-E7706F976FE1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octopi.Reactive", "Octopi.Reactive\Octopi.Reactive.csproj", "{674B69B8-0780-4D54-AE2B-C15821FA51CB}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Reactive", "Octokit.Reactive\Octokit.Reactive.csproj", "{674B69B8-0780-4D54-AE2B-C15821FA51CB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@@ -1,6 +1,6 @@
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Authentication
|
||||
namespace Octokit.Authentication
|
||||
{
|
||||
class AnonymousAuthenticator : IAuthenticationHandler
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Authentication
|
||||
namespace Octokit.Authentication
|
||||
{
|
||||
class Authenticator
|
||||
{
|
||||
@@ -2,9 +2,9 @@
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Authentication
|
||||
namespace Octokit.Authentication
|
||||
{
|
||||
class BasicAuthenticator : IAuthenticationHandler
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Authentication
|
||||
namespace Octokit.Authentication
|
||||
{
|
||||
interface IAuthenticationHandler
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Authentication
|
||||
namespace Octokit.Authentication
|
||||
{
|
||||
class TokenAuthenticator : IAuthenticationHandler
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Net;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Octopi
|
||||
namespace Octokit
|
||||
{
|
||||
#if !NETFX_CORE
|
||||
[Serializable]
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Octopi
|
||||
namespace Octokit
|
||||
{
|
||||
public enum AuthenticationType
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
public abstract class ApiClient<T>
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Used to paginate through API response results.
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
public class AuthorizationsClient : ApiClient<Authorization>, IAuthorizationsClient
|
||||
{
|
||||
@@ -3,9 +3,9 @@ using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Calls API methods meant to support auto complete.
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
public class OrganizationsClient : ApiClient<Organization>, IOrganizationsClient
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
public class RepositoriesClient : ApiClient<Repository>, IRepositoriesClient
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
public class SshKeysClient : ApiClient<SshKey>, ISshKeysClient
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi.Clients
|
||||
namespace Octokit.Clients
|
||||
{
|
||||
/// <summary>
|
||||
/// Supports the ability to get and update users via the GitHub API v3.
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using Octopi.Clients;
|
||||
using Octopi.Http;
|
||||
using Octokit.Clients;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi
|
||||
namespace Octokit
|
||||
{
|
||||
/// <summary>
|
||||
/// A Client for the GitHub API v3. You can read more about the api here: http://developer.github.com.
|
||||
@@ -2,9 +2,9 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Http;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octopi
|
||||
namespace Octokit
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an oauth application.
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Octopi
|
||||
namespace Octokit
|
||||
{
|
||||
internal static class CollectionExtensions
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Octopi
|
||||
namespace Octokit
|
||||
{
|
||||
/// <summary>
|
||||
/// Ensure input parameters
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Octopi
|
||||
namespace Octokit
|
||||
{
|
||||
internal static class StringExtensions
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Clients;
|
||||
using Octokit.Clients;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public class ApiConnection<T> : IApiConnection<T>
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
/// <summary>
|
||||
/// Extra information returned as part of each api response.
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public static class ApiInfoExtensions
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public class ApiInfoParser
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public class ApiResponse<T> : IResponse<T>
|
||||
{
|
||||
@@ -2,9 +2,9 @@
|
||||
using System.Globalization;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Octopi.Authentication;
|
||||
using Octokit.Authentication;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public class Connection : IConnection
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public class Credentials
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public static class CredentialsExtensions
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public class HttpClientAdapter : IHttpClient
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public static class HttpVerb
|
||||
{
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
/// <summary>
|
||||
/// Wraps an IConnection and provides useful methods for an endpoint.
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public interface ICredentialStore
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
/// <summary>
|
||||
/// Generic Http client. Useful for those who want to swap out System.Net.HttpClient with something else.
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public interface IJsonSerializer
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Octopi.Http
|
||||
namespace Octokit.Http
|
||||
{
|
||||
public interface IRequest
|
||||
{
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user