Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Aug 16, 2023
1 parent 49adb02 commit 687d937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task<string> OneDriveCreateTestFile(string fileName)
var excelWorkbook = new DriveItem()
{
Name = fileName,
FileObject = new FileObject()
File = new FileObject()
};

// Create the Excel file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async Task OneDriveDownloadLargeFile()
foreach (var item in driveItems.Value)
{
// Let's download the first file we get in the response.
if (item.FileObject != null)
if (item.File != null)
{
// We'll use the file metadata to determine size and the name of the downloaded file
// and to get the download URL.
Expand Down Expand Up @@ -168,7 +168,7 @@ public async Task OneDriveGetContent()
foreach (var item in driveItems.Value)
{
// Let's download the first file we get in the response.
if (item.FileObject != null)
if (item.File != null)
{
var driveItemContent = await graphClient.Drives["driveId"].Items[item.Id].Content.GetAsync();
Assert.NotNull(driveItemContent);
Expand Down Expand Up @@ -196,7 +196,7 @@ public async Task OneDriveGetSetPermissions()
foreach (var item in driveItems.Value)
{
// Let's get the first file in the response and expand the permissions set on it.
if (item.FileObject != null)
if (item.File != null)
{
// Get the permissions on the first file in the response.
var driveItem = await graphClient.Drives["driveId"]
Expand Down

0 comments on commit 687d937

Please sign in to comment.