public GetIndexableFields ( ) : string>>.IEnumerable |
||
Результат | string>>.IEnumerable |
public void GetIndexableFields_GivenObjectWithFiles_ReturnFileCount() { var obj = Make_Object(); var data = new ObjectViewData(obj, PermissionManager.Object); var results = data.GetIndexableFields().ToList(); Assert.That(results.First(item => item.Key == "Files.Count").Value, Is.EqualTo("1")); }
public void GetIndexableFields_GivenObjectWithAccessPoints_ReturnPublishStartAndEndDates() { var obj = Make_Object(); var data = new ObjectViewData(obj, PermissionManager.Object); var results = data.GetIndexableFields().ToList(); Assert.That(results.Any(item => item.Key.Contains(obj.AccessPoints.First().AccessPointGuid + "_PubStart")), Is.True); Assert.That(results.Any(item => item.Key.Contains(obj.AccessPoints.First().AccessPointGuid + "_PubEnd")), Is.True); }
public void GetIndexableFields_GivenObjectWithFolders_ReturnFolders() { var obj = Make_Object(); var data = new ObjectViewData(obj, PermissionManager.Object); var results = data.GetIndexableFields().ToList(); Assert.That(results.Any(item => item.Key.Contains("FolderId")), Is.True); Assert.That(results.Any(item => item.Key.Contains("FolderAncestors")), Is.True); }