Exemplo n.º 1
0
 public ChecksRetriever(
     GithubHttpClient githubHttpClient,
     RepoConfigManager repoConfigManager)
 {
     this.githubHttpClient  = githubHttpClient;
     this.repoConfigManager = repoConfigManager;
 }
Exemplo n.º 2
0
 public MiroMergeCheck(
     GithubHttpClient githubHttpClient,
     PrStatusChecks prStatusCheckUpdater)
 {
     this.githubHttpClient     = githubHttpClient;
     this.prStatusCheckUpdater = prStatusCheckUpdater;
 }
Exemplo n.º 3
0
        public GithubHttpClientTest()
        {
            memoryConfig = new Dictionary <string, string>
            {
                { "GitHubBaseSearchAddress", StaticVariables.searchBaseAddress },
                { "GitHubUserAgent", StaticVariables.userAgent },
                { "GitHubAuthorization", StaticVariables.githubAuthorisation }
            };
            var configuration = new ConfigurationBuilder().AddInMemoryCollection(memoryConfig).Build();

            subject     = new GithubHttpClient(configuration);
            mockSubject = Substitute.For <GithubHttpClient>(configuration);
        }