Example #1
0
 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);
 }
Example #3
0
        protected override void when_executing_command(string args = null)
        {
            base.when_executing_command(args);

            project_repo = Environment.ProjectRepository == null? null : Environment.ProjectRepository.Feature <ISupportLocking>();
        }
Example #4
0
 public static void ShouldNotHaveLock(this ISupportLocking repo, string name, string scope = null)
 {
     repo.LockedPackages[scope ?? string.Empty].SingleOrDefault(x => x.Name == name).ShouldBeNull();
 }