IEnumerable <ICommandOutput> RepositorySupportsLocking() { _repositoryLock = _environment.ProjectRepository.Feature <ISupportLocking>(); if (_repositoryLock == null) { yield return(new LockingNotSupported(_environment.ProjectRepository)); } }
IEnumerable<ICommandOutput> RepositorySupportsLocking() { _repositoryLock = _environment.ProjectRepository.Feature<ISupportLocking>(); if (_repositoryLock == null) yield return new LockingNotSupported(_environment.ProjectRepository); }
protected override void when_executing_command(string args = null) { base.when_executing_command(args); project_repo = Environment.ProjectRepository == null? null : Environment.ProjectRepository.Feature <ISupportLocking>(); }
public static void ShouldNotHaveLock(this ISupportLocking repo, string name, string scope = null) { repo.LockedPackages[scope ?? string.Empty].SingleOrDefault(x => x.Name == name).ShouldBeNull(); }