Beispiel #1
0
 public MockList(MockClientContext context, string title)
 {
     if (title == null)
     {
         throw new ArgumentNullException("title");
     }
     this.context = context;
     this.title   = title;
 }
Beispiel #2
0
 public MockListItemCollection(MockClientContext context, string listTitle, string relativePath, List <KeyValuePair <string, bool> > orderBy, List <string> viewFields, int rowLimit, ListItemCollectionPosition listItemCollectionPosition)
 {
     this.context      = context;
     this.listTitle    = listTitle;
     this.relativePath = relativePath;
     this.orderBy      = orderBy;
     this.viewFields   = viewFields;
     this.rowLimit     = rowLimit;
     this.listItemCollectionPosition = listItemCollectionPosition;
 }
Beispiel #3
0
 // Token: 0x060000BB RID: 187 RVA: 0x000031D8 File Offset: 0x000013D8
 public MockListItem(DirectoryInfo dirInfo, string folderRelativePath, MockClientContext context) : this(context)
 {
     this.values["FSObjType"]       = "1";
     this.values["FileLeafRef"]     = dirInfo.Name;
     this.values["ID"]              = this.GetId(dirInfo.FullName);
     this.values["SortBehavior"]    = string.Empty;
     this.values["FileRef"]         = Path.Combine(folderRelativePath, dirInfo.Name);
     this.values["File_x0020_Size"] = 0;
     if (dirInfo.Exists)
     {
         this.values["Modified"] = dirInfo.LastWriteTimeUtc;
     }
     this.values["Editor"]           = FieldUserValue.FromUser("Administrator");
     this.values["ItemChildCount"]   = "0";
     this.values["FolderChildCount"] = "0";
 }
Beispiel #4
0
 public MockList(MockClientContext context) : this(context, "Documents")
 {
 }
Beispiel #5
0
 public MockFileCollection(string serverRelativeUrl, MockClientContext context)
 {
     this.serverRelativeUrl = serverRelativeUrl;
     this.context           = context;
 }
Beispiel #6
0
 // Token: 0x060000BD RID: 189 RVA: 0x000033FB File Offset: 0x000015FB
 private MockListItem(MockClientContext context)
 {
     this.values  = new Dictionary <string, object>();
     this.context = context;
 }
 // Token: 0x06000063 RID: 99 RVA: 0x0000278F File Offset: 0x0000098F
 public MockFile(FileCreationInformation parameters, string folderRelativeUrl, MockClientContext context)
 {
     this.fileCreationInformation = parameters;
     this.folderRelativeUrl       = folderRelativeUrl;
     this.context = context;
 }
 // Token: 0x06000062 RID: 98 RVA: 0x00002779 File Offset: 0x00000979
 public MockFile(MockListItem mockListItem, MockClientContext context)
 {
     this.ListItemAllFields = mockListItem;
     this.context           = context;
 }
 // Token: 0x06000061 RID: 97 RVA: 0x00002763 File Offset: 0x00000963
 public MockFile(string relativeLocation, MockClientContext context)
 {
     this.ServerRelativeUrl = relativeLocation;
     this.context           = context;
 }
Beispiel #10
0
 public MockWeb(MockClientContext context)
 {
     this.context = context;
 }
 // Token: 0x06000083 RID: 131 RVA: 0x00002C39 File Offset: 0x00000E39
 public MockFolder(MockListItem mockListItem, MockClientContext context)
 {
     this.ListItemAllFields = mockListItem;
     this.ServerRelativeUrl = (string)mockListItem["FileRef"];
     this.context           = context;
 }
 // Token: 0x06000082 RID: 130 RVA: 0x00002C23 File Offset: 0x00000E23
 public MockFolder(string serverRelativeUrl, MockClientContext context)
 {
     this.context           = context;
     this.ServerRelativeUrl = serverRelativeUrl;
 }
Beispiel #13
0
 // Token: 0x060000A0 RID: 160 RVA: 0x0000300A File Offset: 0x0000120A
 public MockListCollection(MockClientContext context)
 {
     this.context = context;
 }