@@ -15,18 +15,18 @@ public class DeltaQueryTests: GraphTestBase
1515 public async Task DeltaLinkDriveItem ( )
1616 {
1717 // Get our first delta page.
18- var driveItemDeltaCollectionPage = await graphClient . Drives [ "driveId" ] . Items [ "itemId" ] . Delta . GetAsync ( ) ;
18+ var driveItemDeltaCollectionPage = await graphClient . Drives [ "driveId" ] . Items [ "itemId" ] . Delta . GetAsDeltaGetResponseAsync ( ) ;
1919
2020 // Go through all of the delta pages so that we can get the delta link on the last page.
2121 while ( driveItemDeltaCollectionPage . OdataNextLink != null )
2222 {
23- driveItemDeltaCollectionPage = await new Microsoft . Graph . Drives . Item . Items . Item . Delta . DeltaRequestBuilder ( driveItemDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
23+ driveItemDeltaCollectionPage = await new Microsoft . Graph . Drives . Item . Items . Item . Delta . DeltaRequestBuilder ( driveItemDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
2424 }
2525
2626 // Now let's use the deltalink to make sure there aren't any changes. There shouldn't be.
2727 if ( driveItemDeltaCollectionPage . OdataDeltaLink != null )
2828 {
29- driveItemDeltaCollectionPage = await new Microsoft . Graph . Drives . Item . Items . Item . Delta . DeltaRequestBuilder ( driveItemDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
29+ driveItemDeltaCollectionPage = await new Microsoft . Graph . Drives . Item . Items . Item . Delta . DeltaRequestBuilder ( driveItemDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
3030 }
3131 Assert . Empty ( driveItemDeltaCollectionPage . Value ) ;
3232
@@ -38,7 +38,7 @@ public async Task DeltaLinkDriveItem()
3838 // Now let's use the deltalink to make sure there aren't any changes.
3939 if ( driveItemDeltaCollectionPage . OdataDeltaLink != null )
4040 {
41- driveItemDeltaCollectionPage = await new Microsoft . Graph . Drives . Item . Items . Item . Delta . DeltaRequestBuilder ( driveItemDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
41+ driveItemDeltaCollectionPage = await new Microsoft . Graph . Drives . Item . Items . Item . Delta . DeltaRequestBuilder ( driveItemDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
4242 }
4343
4444 // We expect two changes, one new item, and the root folder will have a change.
@@ -54,18 +54,18 @@ public async Task DeltaLinkDriveItem()
5454 public async Task DeltaLinkMessages ( )
5555 {
5656 // Get our first delta page.
57- var messagesDeltaCollectionPage = await graphClient . Me . MailFolders [ "inbox" ] . Messages . Delta . GetAsync ( ) ;
57+ var messagesDeltaCollectionPage = await graphClient . Me . MailFolders [ "inbox" ] . Messages . Delta . GetAsDeltaGetResponseAsync ( ) ;
5858
5959 // Go through all of the delta pages so that we can get the delta link on the last page.
6060 while ( messagesDeltaCollectionPage . OdataNextLink != null )
6161 {
62- messagesDeltaCollectionPage = await new Microsoft . Graph . Me . MailFolders . Item . Messages . Delta . DeltaRequestBuilder ( messagesDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
62+ messagesDeltaCollectionPage = await new Microsoft . Graph . Me . MailFolders . Item . Messages . Delta . DeltaRequestBuilder ( messagesDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
6363 }
6464
6565 // Now let's use the deltalink to make sure there aren't any changes. There shouldn't be.
6666 if ( messagesDeltaCollectionPage . OdataDeltaLink != null )
6767 {
68- messagesDeltaCollectionPage = await new Microsoft . Graph . Me . MailFolders . Item . Messages . Delta . DeltaRequestBuilder ( messagesDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
68+ messagesDeltaCollectionPage = await new Microsoft . Graph . Me . MailFolders . Item . Messages . Delta . DeltaRequestBuilder ( messagesDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
6969 }
7070 Assert . Empty ( messagesDeltaCollectionPage . Value ) ;
7171
@@ -75,7 +75,7 @@ public async Task DeltaLinkMessages()
7575 // Now let's use the deltalink to make sure there aren't any changes. We expect to see a new message.
7676 if ( messagesDeltaCollectionPage . OdataDeltaLink != null )
7777 {
78- messagesDeltaCollectionPage = await new Microsoft . Graph . Me . MailFolders . Item . Messages . Delta . DeltaRequestBuilder ( messagesDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
78+ messagesDeltaCollectionPage = await new Microsoft . Graph . Me . MailFolders . Item . Messages . Delta . DeltaRequestBuilder ( messagesDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
7979 }
8080
8181 // We expect two changes, one new item, and the root folder will have a change.
@@ -86,39 +86,39 @@ public async Task DeltaLinkMessages()
8686 public async Task UserDeltaLink ( )
8787 {
8888 // Get our first delta page.
89- var userDeltaCollectionPage = await graphClient . Users . Delta . GetAsync ( ) ;
89+ var userDeltaCollectionPage = await graphClient . Users . Delta . GetAsDeltaGetResponseAsync ( ) ;
9090 //var userDeltaCollectionPage = userDeltaCollectionPageResult.Value;
9191
9292 // Go through all of the delta pages so that we can get the delta link on the last page.
9393 while ( userDeltaCollectionPage . OdataNextLink != null )
9494 {
95- userDeltaCollectionPage = await new Microsoft . Graph . Users . Delta . DeltaRequestBuilder ( userDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
95+ userDeltaCollectionPage = await new Microsoft . Graph . Users . Delta . DeltaRequestBuilder ( userDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
9696 }
9797
9898 // Now let's use the deltalink to make sure there aren't any changes. We won't test this collection
9999 // since other tests could be making changes to the users in the org.
100100 if ( userDeltaCollectionPage . OdataDeltaLink != null )
101101 {
102- userDeltaCollectionPage = await new Microsoft . Graph . Users . Delta . DeltaRequestBuilder ( userDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
102+ userDeltaCollectionPage = await new Microsoft . Graph . Users . Delta . DeltaRequestBuilder ( userDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
103103 }
104104 }
105105
106106 [ Fact ( Skip = "No CI set up for functional tests. Before enabling these tests, we need to cleanup our test data." ) ]
107107 public async Task GroupDeltaLink ( )
108108 {
109109 // Get our first delta page.
110- var groupDeltaCollectionPage = await graphClient . Groups . Delta . GetAsync ( ) ;
110+ var groupDeltaCollectionPage = await graphClient . Groups . Delta . GetAsDeltaGetResponseAsync ( ) ;
111111
112112 // Go through all of the delta pages so that we can get the delta link on the last page.
113113 while ( groupDeltaCollectionPage . OdataNextLink != null )
114114 {
115- groupDeltaCollectionPage = await new Microsoft . Graph . Groups . Delta . DeltaRequestBuilder ( groupDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
115+ groupDeltaCollectionPage = await new Microsoft . Graph . Groups . Delta . DeltaRequestBuilder ( groupDeltaCollectionPage . OdataNextLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
116116 }
117117
118118 // Now let's use the deltalink to make sure there aren't any changes.
119119 if ( groupDeltaCollectionPage . OdataDeltaLink != null )
120120 {
121- groupDeltaCollectionPage = await new Microsoft . Graph . Groups . Delta . DeltaRequestBuilder ( groupDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
121+ groupDeltaCollectionPage = await new Microsoft . Graph . Groups . Delta . DeltaRequestBuilder ( groupDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
122122
123123 // This could be false in case a change has occurred to a group since the last deltapage.
124124 Assert . True ( ( groupDeltaCollectionPage . Value . Count == 0 ) , "groupDeltaCollectionPage has unexpected entry." ) ;
@@ -148,7 +148,7 @@ public async Task GroupDeltaLink()
148148 // Call with the deltalink. We have to wait since there is some latency between the time that the
149149 // group is created and the time when the delta is registered.
150150 await Task . Delay ( 10000 ) ;
151- groupDeltaCollectionPage = await new Microsoft . Graph . Groups . Delta . DeltaRequestBuilder ( groupDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsync ( ) ;
151+ groupDeltaCollectionPage = await new Microsoft . Graph . Groups . Delta . DeltaRequestBuilder ( groupDeltaCollectionPage . OdataDeltaLink , graphClient . RequestAdapter ) . GetAsDeltaGetResponseAsync ( ) ;
152152
153153 Assert . True ( ( groupDeltaCollectionPage . Value . Count == 1 ) ) ;
154154
0 commit comments