Example #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);
        }
Example #2
0
        public static async Task <bool> TryCreateEventAsync()
        {
            string createdEvent = await UserSnippets.CreateEventAsync();

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

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

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

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

            return(users != null);
        }
Example #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);
        }
Example #8
0
        public static async Task <bool> TryGetMeAsync()
        {
            var currentUser = await UserSnippets.GetMeAsync();

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

            return(createdFileId != null);
        }
Example #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);
        }
Example #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));
        }
Example #12
0
        public static async Task <bool> TryGetCurrentUserFilesAsync()
        {
            var files = await UserSnippets.GetCurrentUserFilesAsync();

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

            return(groups != null);
        }
Example #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);
        }