public void ThenTheLockStatusOfThatFileCanBeChecked() { lockedFilesViewModel.GetStatus(); var info = lockedFilesViewModel.CurrentFileLockInfo; Assert.Equal("testUser", info.Locks[0].Username); }
private ObservableCollection <FligFile> DecorateFileDetails() { var files = _fileAndFolderBrowserViewModel.FileList.ToList(); foreach (var file in files) { _lockedFilesViewModel.CurrentFile = file.Name; _lockedFilesViewModel.GetStatus(); var lockedBy = string.Empty; lockedBy = _lockedFilesViewModel.CurrentFileLockInfo.Locks.Aggregate(lockedBy, (current, lockUser) => string.Format("{0} {1}", current, lockUser.Username)); file.LockedOutBy = lockedBy; } return(new ObservableCollection <FligFile>(files)); }