public void CanGetRepoFromRemote()
        {
            repo.Network.Remotes.Add("upstream", "http://github.com/Org/Repo.With.Dots");

            sut.GetClosedIssues(new GitHubContext(), DateTimeOffset.Now.AddDays(-2));

            issuesClient.Received().GetForRepository("Org", "Repo.With.Dots", Arg.Any <RepositoryIssueRequest>());
        }
        public async Task Report_CreatesNewIssue()
        {
            var report = new ValidationReport
            {
                Owner          = "owner",
                RepositoryName = "repo",
                Results        = new ValidationResult[]
                {
                    new ValidationResult("Rule", "how to fix", false, null)
                }
            };

            await _reporter.Report(new ValidationReport[] { report });


            await _mockIssuesClient.Received().Create(report.Owner, report.RepositoryName, Arg.Is <NewIssue>(i => i.Title.Contains("Rule") && i.Body.EndsWith(_config.GenericNotice + Environment.NewLine)));
        }