-
Notifications
You must be signed in to change notification settings - Fork 1
/
SonarQubeClient.cs
34 lines (27 loc) · 933 Bytes
/
SonarQubeClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using SonarQubeApiCSharp.Api;
using SonarQubeApiCSharp.Workers;
using RestSharp;
using RestSharp.Authenticators;
namespace SonarQubeApiCSharp
{
public class SonarQubeClient
{
private ImprovedRestClient _client;
public SonarQubeClient(string baseUrl, string username, string password)
{
_client = new ImprovedRestClient(baseUrl, username, password);
InjectDependencies();
}
private void InjectDependencies()
{
this.Projects = new Projects(_client);
this.Users = new Users(_client);
this.Groups = new Groups(_client);
this.Permissions = new Permissions(_client);
}
public Projects Projects { get; private set; }
public Users Users { get; private set; }
public Groups Groups { get; private set; }
public Permissions Permissions { get; private set; }
}
}