public async Task Getting_repositories_from_user_should_return_public_repositories() { var githubUrl = $"https://github.com/{_userUnderTest}"; var scanner = new GithubRepositorySource(githubUrl); var repositories = await scanner.GetRepositoriesAsync(CancellationToken.None); repositories.SingleOrDefault(r => r.Name == _repoUnderTest).Should().NotBeNull(); repositories.Should().HaveCountGreaterOrEqualTo(20); }
public void Getting_repository_url_from_repo_name_should_return_with_git_suffix() { var githubUrl = $"https://github.com/{_userUnderTest}"; var scanner = new GithubRepositorySource(githubUrl); scanner.GetRepositoryUrls(new Repository { Name = _repoUnderTest }).Should().BeEquivalentTo(new[] { $"{githubUrl}/{_repoUnderTest}", $"{githubUrl}/{_repoUnderTest}.git" }); }