@@ -115,6 +115,12 @@ public async Task CreateComplexFormComponent_CanCreateMultipleComponentSenses()
115
115
component2 . ComplexFormEntryId . Should ( ) . Be ( _complexFormEntryId ) ;
116
116
component2 . ComponentEntryId . Should ( ) . Be ( _componentEntryId ) ;
117
117
component2 . ComponentSenseId . Should ( ) . Be ( _componentSenseId2 ) ;
118
+
119
+ // ensure our sync code can handle them too
120
+ _complexFormEntry = ( await Api . GetEntry ( _complexFormEntryId ) ) ! ;
121
+ await Api . UpdateEntry ( _complexFormEntry , _complexFormEntry ) ;
122
+ _componentEntry = ( await Api . GetEntry ( _componentEntryId ) ) ! ;
123
+ await Api . UpdateEntry ( _componentEntry , _componentEntry ) ;
118
124
}
119
125
120
126
[ Fact ]
@@ -137,7 +143,8 @@ public async Task CreateComplexFormComponent_ThrowsWhenMakingA3LayerReferenceCyc
137
143
{
138
144
var entry3 = await Api . CreateEntry ( new ( )
139
145
{
140
- Id = Guid . NewGuid ( ) , LexemeForm = { { "en" , "entry3" } }
146
+ Id = Guid . NewGuid ( ) ,
147
+ LexemeForm = { { "en" , "entry3" } }
141
148
} ) ;
142
149
await Api . CreateComplexFormComponent ( ComplexFormComponent . FromEntries ( _complexFormEntry , entry3 ) ) ;
143
150
await Api . CreateComplexFormComponent ( ComplexFormComponent . FromEntries ( entry3 , _componentEntry ) ) ;
@@ -150,7 +157,8 @@ public async Task CreateComplexFormComponent_WorksWhenAComponentWasDeletedWhichW
150
157
{
151
158
var entry3 = await Api . CreateEntry ( new ( )
152
159
{
153
- Id = Guid . NewGuid ( ) , LexemeForm = { { "en" , "entry3" } }
160
+ Id = Guid . NewGuid ( ) ,
161
+ LexemeForm = { { "en" , "entry3" } }
154
162
} ) ;
155
163
await Api . CreateComplexFormComponent ( ComplexFormComponent . FromEntries ( _complexFormEntry , entry3 ) ) ;
156
164
var complexFormComponent = await Api . CreateComplexFormComponent ( ComplexFormComponent . FromEntries ( entry3 , _componentEntry ) ) ;
0 commit comments