@@ -55,7 +55,7 @@ public void MergeWordsOneChildTest()
5555 Util . AssertEqualWordContent ( newWords . First ( ) , thisWord , true ) ;
5656
5757 // Check that the only word in the frontier is the new word
58- var frontier = _wordRepo . GetFrontier ( ProjId ) . Result ;
58+ var frontier = _wordRepo . GetAllFrontier ( ProjId ) . Result ;
5959 Assert . That ( frontier , Has . Count . EqualTo ( 1 ) ) ;
6060 Assert . That ( frontier . First ( ) , Is . EqualTo ( newWords . First ( ) ) . UsingPropertiesComparer ( ) ) ;
6161
@@ -81,7 +81,7 @@ public void MergeWordsDeleteTest()
8181 var newWords = _mergeService . Merge ( ProjId , UserId , [ mergeObject ] ) . Result ;
8282 // There should be no word added and no words left in the frontier.
8383 Assert . That ( newWords , Is . Empty ) ;
84- var frontier = _wordRepo . GetFrontier ( ProjId ) . Result ;
84+ var frontier = _wordRepo . GetAllFrontier ( ProjId ) . Result ;
8585 Assert . That ( frontier , Is . Empty ) ;
8686 }
8787
@@ -105,7 +105,7 @@ public void MergeWordsMultiChildTest()
105105 Assert . That ( _wordRepo . GetWord ( ProjId , id ) . Result , Is . Not . Null ) ;
106106 mergeWords . Children . Add ( new MergeSourceWord { SrcWordId = id } ) ;
107107 }
108- Assert . That ( _wordRepo . GetFrontier ( ProjId ) . Result , Has . Count . EqualTo ( numberOfChildren ) ) ;
108+ Assert . That ( _wordRepo . GetAllFrontier ( ProjId ) . Result , Has . Count . EqualTo ( numberOfChildren ) ) ;
109109
110110 var mergeWordsList = new List < MergeWords > { mergeWords } ;
111111 var newWords = _mergeService . Merge ( ProjId , UserId , mergeWordsList ) . Result ;
@@ -120,7 +120,7 @@ public void MergeWordsMultiChildTest()
120120
121121 // Confirm that parent added to repo and children not in frontier.
122122 Assert . That ( _wordRepo . GetWord ( ProjId , dbParent . Id ) . Result , Is . Not . Null ) ;
123- Assert . That ( _wordRepo . GetFrontier ( ProjId ) . Result , Has . Count . EqualTo ( 1 ) ) ;
123+ Assert . That ( _wordRepo . GetAllFrontier ( ProjId ) . Result , Has . Count . EqualTo ( 1 ) ) ;
124124 }
125125
126126 [ Test ]
@@ -134,7 +134,7 @@ public void MergeWordsMultipleTest()
134134 Assert . That ( newWords , Has . Count . EqualTo ( wordCount ) ) ;
135135 Assert . That ( newWords . First ( ) . Id , Is . Not . EqualTo ( newWords . Last ( ) . Id ) ) ;
136136
137- var frontier = _wordRepo . GetFrontier ( ProjId ) . Result ;
137+ var frontier = _wordRepo . GetAllFrontier ( ProjId ) . Result ;
138138 Assert . That ( frontier , Has . Count . EqualTo ( wordCount ) ) ;
139139 Assert . That ( frontier . First ( ) . Id , Is . Not . EqualTo ( frontier . Last ( ) . Id ) ) ;
140140 Assert . That ( newWords , Does . Contain ( frontier . First ( ) ) . UsingPropertiesComparer ( ) ) ;
@@ -165,7 +165,7 @@ public void UndoMergeOneChildTest()
165165 var undo = _mergeService . UndoMerge ( ProjId , UserId , mergedWord ) . Result ;
166166 Assert . That ( undo , Is . True ) ;
167167
168- var frontierWords = _wordRepo . GetFrontier ( ProjId ) . Result ;
168+ var frontierWords = _wordRepo . GetAllFrontier ( ProjId ) . Result ;
169169 var frontierWordIds = frontierWords . Select ( word => word . Id ) . ToList ( ) ;
170170
171171 Assert . That ( frontierWords , Has . Count . EqualTo ( 1 ) ) ;
@@ -185,20 +185,20 @@ public void UndoMergeMultiChildTest()
185185 Assert . That ( _wordRepo . GetWord ( ProjId , id ) . Result , Is . Not . Null ) ;
186186 mergeWords . Children . Add ( new MergeSourceWord { SrcWordId = id } ) ;
187187 }
188- Assert . That ( _wordRepo . GetFrontier ( ProjId ) . Result , Has . Count . EqualTo ( numberOfChildren ) ) ;
188+ Assert . That ( _wordRepo . GetAllFrontier ( ProjId ) . Result , Has . Count . EqualTo ( numberOfChildren ) ) ;
189189
190190 var mergeWordsList = new List < MergeWords > { mergeWords } ;
191191 var newWords = _mergeService . Merge ( ProjId , UserId , mergeWordsList ) . Result ;
192192
193- Assert . That ( _wordRepo . GetFrontier ( ProjId ) . Result , Has . Count . EqualTo ( 1 ) ) ;
193+ Assert . That ( _wordRepo . GetAllFrontier ( ProjId ) . Result , Has . Count . EqualTo ( 1 ) ) ;
194194
195195 var childIds = mergeWords . Children . Select ( word => word . SrcWordId ) . ToList ( ) ;
196196 var parentIds = new List < string > { newWords [ 0 ] . Id } ;
197197 var mergedWord = new MergeUndoIds ( parentIds , childIds ) ;
198198 var undo = _mergeService . UndoMerge ( ProjId , UserId , mergedWord ) . Result ;
199199 Assert . That ( undo , Is . True ) ;
200200
201- var frontierWords = _wordRepo . GetFrontier ( ProjId ) . Result ;
201+ var frontierWords = _wordRepo . GetAllFrontier ( ProjId ) . Result ;
202202 var frontierWordIds = frontierWords . Select ( word => word . Id ) . ToList ( ) ;
203203
204204 Assert . That ( frontierWords , Has . Count . EqualTo ( numberOfChildren ) ) ;
0 commit comments