public static async Task <bool> IsBadBranch(this IRepositoryMediator repository, string branchName) { return((await repository.GetBadBranchInfo(branchName)) != null); }
private Task <BadBranchInfo> GetBadBranchInfo([Source] GitRef gitRef, [FromServices] IRepositoryMediator repository) { return(repository.GetBadBranchInfo(gitRef.Name)); }