示例#1
0
        // This story does not work with a personal account
        public static async Task <bool> TryGetCurrentUserManagerAsync()
        {
            string managerName = await UserSnippets.GetCurrentUserManagerAsync();

            return(managerName != null);
        }
示例#2
0
        public static async Task <bool> TryCreateEventAsync()
        {
            string createdEvent = await UserSnippets.CreateEventAsync();

            return(createdEvent != null);
        }
示例#3
0
        public static async Task <bool> TryGetMessages()
        {
            var messages = await UserSnippets.GetMessagesAsync();

            return(messages != null);
        }
示例#4
0
        public static async Task <bool> TryGetCurrentUserDriveAsync()
        {
            string driveId = await UserSnippets.GetCurrentUserDriveAsync();

            return(driveId != null);
        }
示例#5
0
        public static async Task <bool> TryGetEventsAsync()
        {
            var events = await UserSnippets.GetEventsAsync();

            return(events != null);
        }
示例#6
0
        public static async Task <bool> TryGetUsersAsync()
        {
            var users = await UserSnippets.GetUsersAsync();

            return(users != null);
        }
示例#7
0
        // This story requires an admin work account.

        public static async Task <bool> TryCreateUserAsync()
        {
            string createdUser = await UserSnippets.CreateUserAsync(STORY_DATA_IDENTIFIER);

            return(createdUser != null);
        }
示例#8
0
        public static async Task <bool> TryGetMeAsync()
        {
            var currentUser = await UserSnippets.GetMeAsync();

            return(currentUser != null);
        }
示例#9
0
        //Excel stories
        public static async Task <bool> TryUploadExcelFileAsync()
        {
            string createdFileId = await UserSnippets.UploadExcelFileAsync("excelTestResource.xlsx");

            return(createdFileId != null);
        }
示例#10
0
        // This story does not work with a consumer account.
        public static async Task <bool> TryCreateFolderAsync()
        {
            var createdFolderId = await UserSnippets.CreateFolderAsync(Guid.NewGuid().ToString());

            return(createdFolderId != null);
        }
示例#11
0
        public static async Task <bool> TryUpdateFileAsync()
        {
            var createdFileId = await UserSnippets.CreateFileAsync(Guid.NewGuid().ToString(), STORY_DATA_IDENTIFIER);

            return(await UserSnippets.UpdateFileAsync(createdFileId, STORY_DATA_IDENTIFIER));
        }
示例#12
0
        public static async Task <bool> TryGetCurrentUserFilesAsync()
        {
            var files = await UserSnippets.GetCurrentUserFilesAsync();

            return(files != null);
        }
示例#13
0
        // This story requires an admin work account.
        public static async Task <bool> TryGetCurrentUserGroupsAsync()
        {
            var groups = await UserSnippets.GetCurrentUserGroupsAsync();

            return(groups != null);
        }
示例#14
0
        // This story does not work with a personal account
        public static async Task <bool> TryGetCurrentUserPhotoAsync()
        {
            string photoId = await UserSnippets.GetCurrentUserPhotoAsync();

            return(photoId != null);
        }