File tree 2 files changed +8
-3
lines changed
Todoist.Net.Tests/Services
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public void MoveItemsToProject_Success()
136
136
client . Items . UpdateAsync ( item ) . Wait ( ) ;
137
137
138
138
var project = new Project ( Guid . NewGuid ( ) . ToString ( ) ) ;
139
- client . Projects . AddAsync ( project ) ;
139
+ client . Projects . AddAsync ( project ) . Wait ( ) ;
140
140
141
141
var itemInfo = client . Items . GetAsync ( item . Id ) . Result ;
142
142
@@ -193,7 +193,7 @@ public void CreateNewItem_DueDateIsLocal_DueDateNotChanged()
193
193
194
194
var itemInfo = client . Items . GetAsync ( taskId ) . Result ;
195
195
196
- Assert . Equal ( item . DueDate . Date , itemInfo . Item . DueDate . Date . Value . ToLocalTime ( ) ) ;
196
+ Assert . Equal ( item . DueDate . Date , itemInfo . Item . DueDate . Date ? . ToLocalTime ( ) ) ;
197
197
198
198
client . Items . DeleteAsync ( item . Id ) . Wait ( ) ;
199
199
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Todoist.Net.Models
6
6
/// Represents a item move argument.
7
7
/// </summary>
8
8
/// <seealso cref="Todoist.Net.Models.MoveArgument" />
9
- public class ItemMoveArgument : MoveArgument
9
+ public class ItemMoveArgument : BaseEntity
10
10
{
11
11
internal ItemMoveArgument ( )
12
12
{
@@ -30,6 +30,11 @@ internal ItemMoveArgument()
30
30
[ JsonProperty ( "section_id" ) ]
31
31
public ComplexId ? SectionId { get ; internal set ; }
32
32
33
+ /// <summary>Gets the parent entity identifier.</summary>
34
+ /// <value>The parent entity identifier.</value>
35
+ [ JsonProperty ( "parent_id" ) ]
36
+ public ComplexId ? ParentId { get ; internal set ; }
37
+
33
38
/// <summary>
34
39
/// Creates the move to project argument.
35
40
/// </summary>
You can’t perform that action at this time.
0 commit comments