public void Given_exisiting_github_repo() { var env = new TestEnv(); env.GitHubClient.FileNames["https://github.com/foo/bar/"] = new List<string> { "File1.md", "File2.md" }.AsReadOnly(); env.GitHubClient.Users["https://api.github.com/users/faa"] = new UserInfo { Name = "Faa" }; env.GitHubClient.Repositories["https://api.github.com/repos/foo/bar"] = new RepositoryInfo { Name = "Bar", HtmlUrl = "https://github.com/foo/bar/", Owner = new UserRefInfo { Url = "https://api.github.com/users/faa" } }; var manager = env.CreateSubmissionGitHubGrabber(); var feedback = new List<string>(); _submission = manager.RetrieveGitHubModule("https://github.com/foo/bar/", feedback); }