private void ExecuteTheCheck(string path) { using (var repo = new Repository(path)) { UncommitedFiles = GetUncommitedFiles(repo); if (!GitCheck.LastCommitWasByNonEmployee(repo.Commits) && !UncommitedFiles.Any()) { FileChangeEvidence.SetFailed(new SimpleEvidenceBuilder("Last Commit By Waters Employee")); return; } FillInEvidence(repo); } }
private void FillInEvidence(Repository repo) { FileChangeEvidence.SetPassed(new FileDiffEvidenceBuilder(GetFileDifferences(repo), BuildFileChangeOutput())); FileChangeEvidence.FeatureRating = 1; }