diff --git a/Burr.Tests.Integration/Burr.Tests.Integration.csproj b/Burr.Tests.Integration/Burr.Tests.Integration.csproj new file mode 100644 index 00000000..93523106 --- /dev/null +++ b/Burr.Tests.Integration/Burr.Tests.Integration.csproj @@ -0,0 +1,70 @@ + + + + + Debug + AnyCPU + {01687D54-1D87-4562-A721-C57F1C94052C} + Library + Properties + Burr.Tests.Integration + Burr.Tests.Integration + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\FluentAssertions.1.7.1.1\Lib\net40\FluentAssertions.dll + + + + + + + + ..\packages\xunit.1.9.0.1566\lib\xunit.dll + + + ..\packages\xunit.extensions.1.9.0.1566\lib\xunit.extensions.dll + + + + + + + + + + {08dd4305-7787-4823-a53f-4d0f725a07f3} + Burr + + + + + + + + \ No newline at end of file diff --git a/Burr.Tests.Integration/Properties/AssemblyInfo.cs b/Burr.Tests.Integration/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..00a4a031 --- /dev/null +++ b/Burr.Tests.Integration/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("Burr.Tests.Integration")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Burr.Tests.Integration")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2012")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b2f38691-5807-43db-a427-0548c1c4aa92")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Burr.Tests/Readme.cs b/Burr.Tests.Integration/Readme.cs similarity index 96% rename from Burr.Tests/Readme.cs rename to Burr.Tests.Integration/Readme.cs index 9c19b191..47d0f35e 100644 --- a/Burr.Tests/Readme.cs +++ b/Burr.Tests.Integration/Readme.cs @@ -16,6 +16,11 @@ namespace Burr.Tests // create a client with basic auth client = new GitHubClient { Username = "tclem", Password = "pwd" }; + // create a client with an oauth token + client = new GitHubClient { Token = "oauthtoken" }; + + client.GetUserAsync(); + //// Authorizations API //var authorizations = client.Authorizations.All(); //var authorization = client.Authorizations.Get(1); @@ -23,8 +28,7 @@ namespace Burr.Tests //var a = client.Authorizations.Update(1, scopes: new[] { "user", "repo" }, "notes", "http://notes_url"); //var token = client.Authorizations.Create(new[] { "user", "repo" }, "notes", "http://notes_url"); - // create a client with an oauth token - client = new GitHubClient { Token = "oauthtoken" }; + //var gists = client.Gists.All(); //var gists = client.Gists.All("user"); diff --git a/Burr.Tests.Integration/packages.config b/Burr.Tests.Integration/packages.config new file mode 100644 index 00000000..f2a5f7a0 --- /dev/null +++ b/Burr.Tests.Integration/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Burr.Tests/Burr.Tests.csproj b/Burr.Tests/Burr.Tests.csproj index cd0b31b9..d4c3661b 100644 --- a/Burr.Tests/Burr.Tests.csproj +++ b/Burr.Tests/Burr.Tests.csproj @@ -48,7 +48,6 @@ - diff --git a/Burr.sln b/Burr.sln index 6191112c..45d25ebb 100644 --- a/Burr.sln +++ b/Burr.sln @@ -5,6 +5,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Burr", "Burr\Burr.csproj", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Burr.Tests", "Burr.Tests\Burr.Tests.csproj", "{149448D4-C2F2-4DF9-86BD-03E3272F093B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Burr.Tests.Integration", "Burr.Tests.Integration\Burr.Tests.Integration.csproj", "{01687D54-1D87-4562-A721-C57F1C94052C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|ARM = Debug|ARM @@ -17,6 +19,16 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {01687D54-1D87-4562-A721-C57F1C94052C}.Debug|ARM.ActiveCfg = Debug|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Debug|x64.ActiveCfg = Debug|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Debug|x86.ActiveCfg = Debug|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Release|ARM.ActiveCfg = Release|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Release|Any CPU.Build.0 = Release|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Release|x64.ActiveCfg = Release|Any CPU + {01687D54-1D87-4562-A721-C57F1C94052C}.Release|x86.ActiveCfg = Release|Any CPU {08DD4305-7787-4823-A53F-4D0F725A07F3}.Debug|ARM.ActiveCfg = Debug|Any CPU {08DD4305-7787-4823-A53F-4D0F725A07F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {08DD4305-7787-4823-A53F-4D0F725A07F3}.Debug|Any CPU.Build.0 = Debug|Any CPU diff --git a/packages/repositories.config b/packages/repositories.config index 8399b49d..795b7b05 100644 --- a/packages/repositories.config +++ b/packages/repositories.config @@ -1,4 +1,5 @@  + \ No newline at end of file