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 FluentAssertions ;
87
98namespace Notion . IntegrationTests ;
109
11- public class DatabasesClientTests : IntegrationTestBase , IAsyncDisposable
10+ public class DatabasesClientTests : IntegrationTestBase , IAsyncLifetime
1211{
13- private readonly Page _page ;
12+ private Page _page = null ! ;
1413
15- public DatabasesClientTests ( )
14+ public async Task InitializeAsync ( )
1615 {
17- _page = Client . Pages . CreateAsync (
16+ _page = await Client . Pages . CreateAsync (
1817 PagesCreateParametersBuilder . Create (
1918 new ParentPageInput { PageId = ParentPageId }
2019 ) . Build ( )
21- ) . GetAwaiter ( ) . GetResult ( ) ;
20+ ) ;
2221 }
2322
24- public async ValueTask DisposeAsync ( )
23+ public async Task DisposeAsync ( )
2524 {
2625 await Client . Pages . UpdateAsync ( _page . Id , new PagesUpdateParameters { Archived = true } ) ;
2726 }
You can’t perform that action at this time.
0 commit comments