Skip to content

Commit 790158c

Browse files
Code refactor ♻️
1 parent 467ca85 commit 790158c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
4+
{
5+
public class MultiSelectUpdatePropertySchema : IUpdatePropertySchema
6+
{
7+
[JsonProperty("multi_select")]
8+
public OptionWrapper<SelectOption> MultiSelect { get; set; }
9+
}
10+
}
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
using Newtonsoft.Json;
2-
3-
namespace Notion.Client
1+
namespace Notion.Client
42
{
53
public class SelectUpdatePropertySchema : IUpdatePropertySchema
64
{
75
public OptionWrapper<SelectOption> Select { get; set; }
86
}
9-
10-
public class MultiSelectUpdatePropertySchema : IUpdatePropertySchema
11-
{
12-
[JsonProperty("multi_select")]
13-
public OptionWrapper<SelectOption> MultiSelect { get; set; }
14-
}
157
}

Test/Notion.UnitTests/DatabasesClientTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ public async Task UpdateDatabaseAsync()
324324

325325
database.Properties.Should().HaveCount(4);
326326

327-
328327
database.Title.Should().ContainSingle();
329328
database.Title.Should().SatisfyRespectively(
330329
title =>
@@ -334,7 +333,6 @@ public async Task UpdateDatabaseAsync()
334333
}
335334
);
336335

337-
338336
var selectOptions = (SelectProperty)database.Properties["Food group"];
339337
selectOptions.Name.Should().Be("Food group");
340338
selectOptions.Select.Options.Should().SatisfyRespectively(

0 commit comments

Comments
 (0)