File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Test/Notion.IntegrationTests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 88
99namespace Notion . IntegrationTests ;
1010
11- public class PageClientTests : IntegrationTestBase , IDisposable
11+ public class PageClientTests : IntegrationTestBase , IAsyncDisposable
1212{
1313 private readonly Page _page ;
1414 private readonly Database _database ;
@@ -20,7 +20,7 @@ public PageClientTests()
2020 PagesCreateParametersBuilder . Create (
2121 new ParentPageInput { PageId = ParentPageId }
2222 ) . Build ( )
23- ) . Result ;
23+ ) . GetAwaiter ( ) . GetResult ( ) ;
2424
2525 // Create a database
2626 var createDbRequest = new DatabasesCreateParameters
@@ -61,9 +61,9 @@ public PageClientTests()
6161 _database = Client . Databases . CreateAsync ( createDbRequest ) . GetAwaiter ( ) . GetResult ( ) ;
6262 }
6363
64- public void Dispose ( )
64+ public async ValueTask DisposeAsync ( )
6565 {
66- Client . Pages . UpdateAsync ( _page . Id , new PagesUpdateParameters { Archived = true } ) . GetAwaiter ( ) . GetResult ( ) ;
66+ await Client . Pages . UpdateAsync ( _page . Id , new PagesUpdateParameters { Archived = true } ) ;
6767 }
6868
6969 [ Fact ]
You can’t perform that action at this time.
0 commit comments