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
|
$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
|
& "$(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
|
# 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
|
## 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.
|
submitting issues, writing docs, to making code changes. We welcome it all.
|
||||||
|
|
||||||
But first things first...
|
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
|
* Fork the repository on GitHub by clicking on the "Clone in Windows" button or
|
||||||
run the following command in a git shell.
|
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
|
* 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`).
|
the `build.cmd` script (this calls a PowerShell script, `Build-Solution.ps1`).
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<Word>Git</Word>
|
<Word>Git</Word>
|
||||||
<Word>Gists</Word>
|
<Word>Gists</Word>
|
||||||
<Word>Hireable</Word>
|
<Word>Hireable</Word>
|
||||||
<Word>Octopi</Word>
|
<Word>Octokit</Word>
|
||||||
<Word>OAuth</Word>
|
<Word>OAuth</Word>
|
||||||
<Word>Poco</Word>
|
<Word>Poco</Word>
|
||||||
<Word>Ssh</Word>
|
<Word>Ssh</Word>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Reactive;
|
using System.Reactive;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive.Clients
|
namespace Octokit.Reactive.Clients
|
||||||
{
|
{
|
||||||
public class ObservableAuthorizationsClient : IObservableAuthorizationsClient
|
public class ObservableAuthorizationsClient : IObservableAuthorizationsClient
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive.Clients
|
namespace Octokit.Reactive.Clients
|
||||||
{
|
{
|
||||||
public class ObservableAutoCompleteClient : IObservableAutoCompleteClient
|
public class ObservableAutoCompleteClient : IObservableAutoCompleteClient
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive.Clients
|
namespace Octokit.Reactive.Clients
|
||||||
{
|
{
|
||||||
public class ObservableOrganizationsClient : IObservableOrganizationsClient
|
public class ObservableOrganizationsClient : IObservableOrganizationsClient
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive.Clients
|
namespace Octokit.Reactive.Clients
|
||||||
{
|
{
|
||||||
public class ObservableRepositoriesClient : IObservableRepositoriesClient
|
public class ObservableRepositoriesClient : IObservableRepositoriesClient
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Reactive;
|
using System.Reactive;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive.Clients
|
namespace Octokit.Reactive.Clients
|
||||||
{
|
{
|
||||||
public class ObservableSshKeysClient : IObservableSshKeysClient
|
public class ObservableSshKeysClient : IObservableSshKeysClient
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive.Clients
|
namespace Octokit.Reactive.Clients
|
||||||
{
|
{
|
||||||
public class ObservableUsersClient : IObservableUsersClient
|
public class ObservableUsersClient : IObservableUsersClient
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Reactive;
|
using System.Reactive;
|
||||||
|
|
||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public interface IObservableAuthorizationsClient
|
public interface IObservableAuthorizationsClient
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public interface IObservableAutoCompleteClient
|
public interface IObservableAutoCompleteClient
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public interface IObservableGitHubClient
|
public interface IObservableGitHubClient
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public interface IObservableOrganizationsClient
|
public interface IObservableOrganizationsClient
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public interface IObservableRepositoriesClient
|
public interface IObservableRepositoriesClient
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Reactive;
|
using System.Reactive;
|
||||||
|
|
||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public interface IObservableSshKeysClient
|
public interface IObservableSshKeysClient
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public interface IObservableUsersClient
|
public interface IObservableUsersClient
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Reactive.Linq;
|
using System.Reactive.Linq;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
public static class ObservableExtensions
|
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
|
public class ObservableGitHubClient : IObservableGitHubClient
|
||||||
{
|
{
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
<ProjectGuid>{674B69B8-0780-4D54-AE2B-C15821FA51CB}</ProjectGuid>
|
<ProjectGuid>{674B69B8-0780-4D54-AE2B-C15821FA51CB}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Octopi.Reactive</RootNamespace>
|
<RootNamespace>Octokit.Reactive</RootNamespace>
|
||||||
<AssemblyName>Octopi.Reactive</AssemblyName>
|
<AssemblyName>Octokit.Reactive</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -20,6 +20,9 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||||
|
<CodeAnalysisRuleSet>..\Octokit.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
@@ -51,7 +54,7 @@
|
|||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\Octopi\Helpers\Ensure.cs">
|
<Compile Include="..\Octokit\Helpers\Ensure.cs">
|
||||||
<Link>Helpers\Ensure.cs</Link>
|
<Link>Helpers\Ensure.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Clients\ObservableAuthorizationsClient.cs" />
|
<Compile Include="Clients\ObservableAuthorizationsClient.cs" />
|
||||||
@@ -72,9 +75,9 @@
|
|||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Octopi\Octopi.csproj">
|
<ProjectReference Include="..\Octokit\Octokit.csproj">
|
||||||
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
||||||
<Name>Octopi</Name>
|
<Name>Octokit</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
|||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("Octopi.Reactive")]
|
[assembly: AssemblyTitle("Octokit.Reactive")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("Octopi.Reactive")]
|
[assembly: AssemblyProduct("Octokit.Reactive")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2013")]
|
[assembly: AssemblyCopyright("Copyright © 2013")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Integration
|
namespace Octokit.Tests.Integration
|
||||||
{
|
{
|
||||||
public class AutoCompleteClientTests
|
public class AutoCompleteClientTests
|
||||||
{
|
{
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
<ProjectGuid>{01687D54-1D87-4562-A721-C57F1C94052C}</ProjectGuid>
|
<ProjectGuid>{01687D54-1D87-4562-A721-C57F1C94052C}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Octopi.Tests.Integration</RootNamespace>
|
<RootNamespace>Octokit.Tests.Integration</RootNamespace>
|
||||||
<AssemblyName>Octopi.Tests.Integration</AssemblyName>
|
<AssemblyName>Octokit.Tests.Integration</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -55,13 +55,13 @@
|
|||||||
<Compile Include="UsersClientTests.cs" />
|
<Compile Include="UsersClientTests.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Octopi.Tests\Octopi.Tests.csproj">
|
<ProjectReference Include="..\Octokit.Tests\Octokit.Tests.csproj">
|
||||||
<Project>{149448d4-c2f2-4df9-86bd-03e3272f093b}</Project>
|
<Project>{149448d4-c2f2-4df9-86bd-03e3272f093b}</Project>
|
||||||
<Name>Octopi.Tests</Name>
|
<Name>Octokit.Tests</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\Octopi\Octopi.csproj">
|
<ProjectReference Include="..\Octokit\Octokit.csproj">
|
||||||
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
||||||
<Name>Octopi</Name>
|
<Name>Octokit</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
|||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
|
|
||||||
[assembly: AssemblyTitle("Octopi.Tests.Integration")]
|
[assembly: AssemblyTitle("Octokit.Tests.Integration")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
[assembly: AssemblyCompany("Microsoft")]
|
||||||
[assembly: AssemblyProduct("Octopi.Tests.Integration")]
|
[assembly: AssemblyProduct("Octokit.Tests.Integration")]
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
|
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Integration
|
namespace Octokit.Tests.Integration
|
||||||
{
|
{
|
||||||
public class RepositoriesClientTests
|
public class RepositoriesClientTests
|
||||||
{
|
{
|
||||||
@@ -42,14 +42,14 @@ namespace Octopi.Tests.Integration
|
|||||||
public class TheGetReadmeMethod
|
public class TheGetReadmeMethod
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ReturnsReadmeForOctopi()
|
public async Task ReturnsReadmeForOctokit()
|
||||||
{
|
{
|
||||||
var github = new GitHubClient
|
var github = new GitHubClient
|
||||||
{
|
{
|
||||||
Credentials = new Credentials("xapitestaccountx", "octocat11")
|
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");
|
var readme = await github.Repository.GetReadme("haacked", "seegit");
|
||||||
readme.Name.Should().Be("README.md");
|
readme.Name.Should().Be("README.md");
|
||||||
var readMeHtml = await readme.GetHtmlContent();
|
var readMeHtml = await readme.GetHtmlContent();
|
||||||
@@ -3,11 +3,11 @@ using System.Net;
|
|||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Octopi.Tests.Helpers;
|
using Octokit.Tests.Helpers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Integration
|
namespace Octokit.Tests.Integration
|
||||||
{
|
{
|
||||||
public class UsersClientTests
|
public class UsersClientTests
|
||||||
{
|
{
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Authentication;
|
using Octokit.Authentication;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
public class BasicAuthenticatorTests
|
public class BasicAuthenticatorTests
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Authentication
|
namespace Octokit.Tests.Authentication
|
||||||
{
|
{
|
||||||
public class CredentialsTests
|
public class CredentialsTests
|
||||||
{
|
{
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Authentication;
|
using Octokit.Authentication;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
public class TokenAuthenticatorTests
|
public class TokenAuthenticatorTests
|
||||||
{
|
{
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Clients
|
namespace Octokit.Tests.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
/// 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 System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Clients
|
namespace Octokit.Tests.Clients
|
||||||
{
|
{
|
||||||
public class AutoCompleteClientTests
|
public class AutoCompleteClientTests
|
||||||
{
|
{
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Octopi.Tests.Helpers;
|
using Octokit.Tests.Helpers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Clients
|
namespace Octokit.Tests.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
/// 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 System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Octopi.Tests.Helpers;
|
using Octokit.Tests.Helpers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Clients
|
namespace Octokit.Tests.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Octopi.Tests.Helpers;
|
using Octokit.Tests.Helpers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Clients
|
namespace Octokit.Tests.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Octopi.Tests.Helpers;
|
using Octokit.Tests.Helpers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Clients
|
namespace Octokit.Tests.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
/// Client tests mostly just need to make sure they call the IApiConnection with the correct
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper class for handling our embedded resources.
|
/// Helper class for handling our embedded resources.
|
||||||
@@ -1,23 +1,23 @@
|
|||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
public static class Fixtures
|
public static class Fixtures
|
||||||
{
|
{
|
||||||
public static EmbeddedResource AuthorizationsJson =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 System;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
public class GitHubClientTests
|
public class GitHubClientTests
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
internal class Args
|
internal class Args
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Helpers
|
namespace Octokit.Tests.Helpers
|
||||||
{
|
{
|
||||||
public static class AssertEx
|
public static class AssertEx
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using FluentAssertions;
|
|||||||
using Xunit;
|
using Xunit;
|
||||||
using Xunit.Extensions;
|
using Xunit.Extensions;
|
||||||
|
|
||||||
namespace Octopi.Tests.Helpers
|
namespace Octokit.Tests.Helpers
|
||||||
{
|
{
|
||||||
public class StringExtensionsTests
|
public class StringExtensionsTests
|
||||||
{
|
{
|
||||||
@@ -3,11 +3,11 @@ using System.Collections.Generic;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Octopi.Tests.Helpers;
|
using Octokit.Tests.Helpers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Http
|
namespace Octokit.Tests.Http
|
||||||
{
|
{
|
||||||
public class ApiConnectionTests
|
public class ApiConnectionTests
|
||||||
{
|
{
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Xunit.Extensions;
|
using Xunit.Extensions;
|
||||||
|
|
||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
public class ApiInfoParserTests
|
public class ApiInfoParserTests
|
||||||
{
|
{
|
||||||
@@ -4,10 +4,10 @@ using System.Net.Http;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Http
|
namespace Octokit.Tests.Http
|
||||||
{
|
{
|
||||||
public class ConnectionTests
|
public class ConnectionTests
|
||||||
{
|
{
|
||||||
@@ -5,10 +5,10 @@ using System.Net.Http;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Http
|
namespace Octokit.Tests.Http
|
||||||
{
|
{
|
||||||
public class HttpClientAdapterTests
|
public class HttpClientAdapterTests
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Http
|
namespace Octokit.Tests.Http
|
||||||
{
|
{
|
||||||
public class JsonHttpPipelineTests
|
public class JsonHttpPipelineTests
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Http
|
namespace Octokit.Tests.Http
|
||||||
{
|
{
|
||||||
public class RequestTests
|
public class RequestTests
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests.Http
|
namespace Octokit.Tests.Http
|
||||||
{
|
{
|
||||||
public class ResponseTests
|
public class ResponseTests
|
||||||
{
|
{
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
<ProjectGuid>{149448D4-C2F2-4DF9-86BD-03E3272F093B}</ProjectGuid>
|
<ProjectGuid>{149448D4-C2F2-4DF9-86BD-03E3272F093B}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Octopi.Tests</RootNamespace>
|
<RootNamespace>Octokit.Tests</RootNamespace>
|
||||||
<AssemblyName>Octopi.Tests</AssemblyName>
|
<AssemblyName>Octokit.Tests</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -81,9 +81,9 @@
|
|||||||
<Compile Include="Clients\UsersClientTests.cs" />
|
<Compile Include="Clients\UsersClientTests.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Octopi\Octopi.csproj">
|
<ProjectReference Include="..\Octokit\Octokit.csproj">
|
||||||
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
|
||||||
<Name>Octopi</Name>
|
<Name>Octokit</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
|||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
|
|
||||||
[assembly: AssemblyTitle("Octopi.Tests")]
|
[assembly: AssemblyTitle("Octokit.Tests")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
[assembly: AssemblyCompany("Microsoft")]
|
||||||
[assembly: AssemblyProduct("Octopi.Tests")]
|
[assembly: AssemblyProduct("Octokit.Tests")]
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
|
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Octopi.Tests
|
namespace Octokit.Tests
|
||||||
{
|
{
|
||||||
public class SimpleJsonSerializerTests
|
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" />
|
<UsingTask AssemblyFile=".\packages\xunit.1.9.1\lib\net20\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
|
||||||
|
|
||||||
<Target Name="Clean">
|
<Target Name="Clean">
|
||||||
<MSBuild Projects=".\Octopi.sln" Targets="Clean" Properties="Configuration=$(Configuration)"/>
|
<MSBuild Projects=".\Octokit.sln" Targets="Clean" Properties="Configuration=$(Configuration)"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="Build" DependsOnTargets="Clean">
|
<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>
|
||||||
|
|
||||||
<Target Name="RunUnitTests" DependsOnTargets="Build">
|
<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>
|
||||||
|
|
||||||
<Target Name="RunIntegrationTests" DependsOnTargets="Build">
|
<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>
|
||||||
|
|
||||||
<Target Name="FullBuild" DependsOnTargets="RunUnitTests; RunIntegrationTests" />
|
<Target Name="FullBuild" DependsOnTargets="RunUnitTests; RunIntegrationTests" />
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2012
|
# 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
|
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
|
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
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CEC9D451-6291-4EDF-971A-D398144FBF96}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CEC9D451-6291-4EDF-971A-D398144FBF96}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
@@ -13,8 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CEC9D451
|
|||||||
build.cmd = build.cmd
|
build.cmd = build.cmd
|
||||||
script\cibuild.ps1 = script\cibuild.ps1
|
script\cibuild.ps1 = script\cibuild.ps1
|
||||||
CustomDictionary.xml = CustomDictionary.xml
|
CustomDictionary.xml = CustomDictionary.xml
|
||||||
Octopi.msbuild = Octopi.msbuild
|
Octokit.msbuild = Octokit.msbuild
|
||||||
Octopi.ruleset = Octopi.ruleset
|
Octokit.ruleset = Octokit.ruleset
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{397C742D-291E-46BD-99A5-57BB6902FA7B}"
|
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
|
README.md = README.md
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
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
|
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
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Authentication
|
namespace Octokit.Authentication
|
||||||
{
|
{
|
||||||
class AnonymousAuthenticator : IAuthenticationHandler
|
class AnonymousAuthenticator : IAuthenticationHandler
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Authentication
|
namespace Octokit.Authentication
|
||||||
{
|
{
|
||||||
class Authenticator
|
class Authenticator
|
||||||
{
|
{
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Authentication
|
namespace Octokit.Authentication
|
||||||
{
|
{
|
||||||
class BasicAuthenticator : IAuthenticationHandler
|
class BasicAuthenticator : IAuthenticationHandler
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Authentication
|
namespace Octokit.Authentication
|
||||||
{
|
{
|
||||||
interface IAuthenticationHandler
|
interface IAuthenticationHandler
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Authentication
|
namespace Octokit.Authentication
|
||||||
{
|
{
|
||||||
class TokenAuthenticator : IAuthenticationHandler
|
class TokenAuthenticator : IAuthenticationHandler
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace Octopi
|
namespace Octokit
|
||||||
{
|
{
|
||||||
#if !NETFX_CORE
|
#if !NETFX_CORE
|
||||||
[Serializable]
|
[Serializable]
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Octopi
|
namespace Octokit
|
||||||
{
|
{
|
||||||
public enum AuthenticationType
|
public enum AuthenticationType
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
public abstract class ApiClient<T>
|
public abstract class ApiClient<T>
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to paginate through API response results.
|
/// Used to paginate through API response results.
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
public class AuthorizationsClient : ApiClient<Authorization>, IAuthorizationsClient
|
public class AuthorizationsClient : ApiClient<Authorization>, IAuthorizationsClient
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,9 @@ using System.Collections.ObjectModel;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calls API methods meant to support auto complete.
|
/// Calls API methods meant to support auto complete.
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
public class OrganizationsClient : ApiClient<Organization>, IOrganizationsClient
|
public class OrganizationsClient : ApiClient<Organization>, IOrganizationsClient
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
public class RepositoriesClient : ApiClient<Repository>, IRepositoriesClient
|
public class RepositoriesClient : ApiClient<Repository>, IRepositoriesClient
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
public class SshKeysClient : ApiClient<SshKey>, ISshKeysClient
|
public class SshKeysClient : ApiClient<SshKey>, ISshKeysClient
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi.Clients
|
namespace Octokit.Clients
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Supports the ability to get and update users via the GitHub API v3.
|
/// Supports the ability to get and update users via the GitHub API v3.
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi
|
namespace Octokit
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A Client for the GitHub API v3. You can read more about the api here: http://developer.github.com.
|
/// 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.Diagnostics.CodeAnalysis;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Http;
|
using Octokit.Http;
|
||||||
|
|
||||||
namespace Octopi
|
namespace Octokit
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents an oauth application.
|
/// Represents an oauth application.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Octopi
|
namespace Octokit
|
||||||
{
|
{
|
||||||
internal static class CollectionExtensions
|
internal static class CollectionExtensions
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Octopi
|
namespace Octokit
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ensure input parameters
|
/// Ensure input parameters
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|
||||||
namespace Octopi
|
namespace Octokit
|
||||||
{
|
{
|
||||||
internal static class StringExtensions
|
internal static class StringExtensions
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Clients;
|
using Octokit.Clients;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public class ApiConnection<T> : IApiConnection<T>
|
public class ApiConnection<T> : IApiConnection<T>
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Extra information returned as part of each api response.
|
/// Extra information returned as part of each api response.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public static class ApiInfoExtensions
|
public static class ApiInfoExtensions
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@ using System.Globalization;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public class ApiInfoParser
|
public class ApiInfoParser
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public class ApiResponse<T> : IResponse<T>
|
public class ApiResponse<T> : IResponse<T>
|
||||||
{
|
{
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Octopi.Authentication;
|
using Octokit.Authentication;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public class Connection : IConnection
|
public class Connection : IConnection
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public class Credentials
|
public class Credentials
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public static class CredentialsExtensions
|
public static class CredentialsExtensions
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@ using System.Net.Http;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public class HttpClientAdapter : IHttpClient
|
public class HttpClientAdapter : IHttpClient
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public static class HttpVerb
|
public static class HttpVerb
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Wraps an IConnection and provides useful methods for an endpoint.
|
/// Wraps an IConnection and provides useful methods for an endpoint.
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public interface IConnection
|
public interface IConnection
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public interface ICredentialStore
|
public interface ICredentialStore
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generic Http client. Useful for those who want to swap out System.Net.HttpClient with something else.
|
/// 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
|
public interface IJsonSerializer
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
namespace Octopi.Http
|
namespace Octokit.Http
|
||||||
{
|
{
|
||||||
public interface IRequest
|
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