@@ -14,18 +14,19 @@ Octokit.GraphQL.NET gives you access to the GitHub GraphQL API from .NET. It exp
14
14
> [ !NOTE]
15
15
> This software is currently in beta. There are few things left, and there might be bugs - be warned!
16
16
17
- ## Getting started with GitHub GraphQL API
17
+ ## Getting started
18
18
19
19
To learn more about GitHub GraphQL API, visit [ GitHub Docs] ( https://docs.github.com/graphql/overview )
20
20
21
- ## Usage
21
+ To install the package from the command line, run the following command:
22
22
23
- 1 . Install the NuGet package
24
23
``` ps1
25
24
Install-Package Octokit.GraphQL -IncludePrerelease
26
25
```
27
- 2 . Feed the package
28
- ``` C#
26
+
27
+ ## Usage scenarios
28
+
29
+ ``` cs
29
30
using Octokit .GraphQL ;
30
31
using static Octokit .GraphQL .Variable ;
31
32
@@ -55,7 +56,7 @@ var result = await connection.Run(query, vars);
55
56
Console .WriteLine (result .Login + " & " + result .Name + " Rocks!" );
56
57
```
57
58
58
- ``` C#
59
+ ``` cs
59
60
using Octokit .GraphQL ;
60
61
using Octokit .GraphQL .Model ;
61
62
using System ;
@@ -93,3 +94,26 @@ if(activeSponsor != null)
93
94
Console .WriteLine (" Thanks for sponsoring Warren" );
94
95
}
95
96
```
97
+
98
+ ## 🧪 Running tests
99
+
100
+ ### 1️⃣ Prerequisites
101
+
102
+ Ensure you have following components :
103
+
104
+ - [Git ](https :// git-scm.com/)
105
+ - [Visual Studio and the .NET SDK ](https :// visualstudio.microsoft.com/vs/)
106
+
107
+ ### 2️⃣ Git
108
+
109
+ Clone the repository :
110
+
111
+ ```git
112
+ git clone https :// github.com/octokit/octokit.graphql.net
113
+ ```
114
+
115
+ ### 3️⃣ Test the project
116
+
117
+ - Open `Octokit .GraphQL .sln `.
118
+ - Set the Startup Project to `Octokit .GraphQL .UnitTests ` or another test project as appropriate
119
+ - Build with `DEBUG | x64 ` (or `DEBUG | Any CPU `)
0 commit comments