File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Test/Notion.IntegrationTests Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
1+ using System . Collections . Generic ;
32using System . Linq ;
43using System . Threading . Tasks ;
54using Notion . Client ;
65using Xunit ;
76
87namespace Notion . IntegrationTests ;
98
10- public class CommentsClientTests : IntegrationTestBase , IAsyncDisposable
9+ public class CommentsClientTests : IntegrationTestBase , IAsyncLifetime
1110{
12- private readonly Page _page ;
11+ private Page _page = null ! ;
1312
14- public CommentsClientTests ( )
13+ public async Task InitializeAsync ( )
1514 {
16- _page = Client . Pages . CreateAsync (
15+ _page = await Client . Pages . CreateAsync (
1716 PagesCreateParametersBuilder . Create (
1817 new ParentPageInput { PageId = ParentPageId }
1918 ) . Build ( )
20- ) . GetAwaiter ( ) . GetResult ( ) ;
19+ ) ;
2120 }
2221
23- public async ValueTask DisposeAsync ( )
22+ public async Task DisposeAsync ( )
2423 {
2524 await Client . Pages . UpdateAsync ( _page . Id , new PagesUpdateParameters { Archived = true } ) ;
2625 }
You can’t perform that action at this time.
0 commit comments