@@ -225,7 +225,7 @@ private static void TestFind(IRepositoryFactory repoFactory)
225225
226226 const string name = "Random Name" ;
227227
228- var options = new QueryOptions < Customer > ( ) ;
228+ var options = new QueryOptions < Customer > ( ) . SatisfyBy ( x => x . Name . Equals ( name ) ) ;
229229 var entity = new Customer { Id = 1 , Name = name } ;
230230
231231 Assert . Null ( repo . Find ( x => x . Name . Equals ( name ) ) ) ;
@@ -266,7 +266,7 @@ private static void TestFindWithSortingOptionsDescending(IRepositoryFactory repo
266266 new Customer { Id = 2 , Name = "Random Name 1" }
267267 } ;
268268
269- var options = new QueryOptions < Customer > ( ) . OrderByDescending ( x => x . Name ) ;
269+ var options = new QueryOptions < Customer > ( ) . OrderByDescending ( x => x . Name ) . SatisfyBy ( x => x . Name . Contains ( "Random Name" ) ) ;
270270
271271 Assert . Null ( repo . Find ( x => x . Name . Contains ( "Random Name" ) ) ? . Name ) ;
272272 Assert . Null ( repo . Find ( options ) ? . Name ) ;
@@ -291,7 +291,7 @@ private static void TestFindWithSortingOptionsAscending(IRepositoryFactory repoF
291291 new Customer { Id = 2 , Name = "Random Name 1" }
292292 } ;
293293
294- var options = new QueryOptions < Customer > ( ) . OrderBy ( x => x . Name ) ;
294+ var options = new QueryOptions < Customer > ( ) . OrderBy ( x => x . Name ) . SatisfyBy ( x => x . Name . Contains ( "Random Name" ) ) ;
295295
296296 Assert . Null ( repo . Find ( x => x . Name . Contains ( "Random Name" ) ) ? . Name ) ;
297297 Assert . Null ( repo . Find ( options ) ? . Name ) ;
@@ -818,7 +818,7 @@ private static async Task TestFindAsync(IRepositoryFactory repoFactory)
818818
819819 const string name = "Random Name" ;
820820
821- var options = new QueryOptions < Customer > ( ) ;
821+ var options = new QueryOptions < Customer > ( ) . SatisfyBy ( x => x . Name . Equals ( name ) ) ;
822822 var entity = new Customer { Id = 1 , Name = name } ;
823823
824824 Assert . Null ( await repo . FindAsync ( x => x . Name . Equals ( name ) ) ) ;
@@ -859,7 +859,7 @@ private static async Task TestFindWithSortingOptionsDescendingAsync(IRepositoryF
859859 new Customer { Id = 2 , Name = "Random Name 1" }
860860 } ;
861861
862- var options = new QueryOptions < Customer > ( ) . OrderByDescending ( x => x . Name ) ;
862+ var options = new QueryOptions < Customer > ( ) . OrderByDescending ( x => x . Name ) . SatisfyBy ( x => x . Name . Contains ( "Random Name" ) ) ;
863863
864864 Assert . Null ( ( await repo . FindAsync ( x => x . Name . Contains ( "Random Name" ) ) ) ? . Name ) ;
865865 Assert . Null ( ( await repo . FindAsync ( options ) ) ? . Name ) ;
@@ -884,7 +884,7 @@ private static async Task TestFindWithSortingOptionsAscendingAsync(IRepositoryFa
884884 new Customer { Id = 2 , Name = "Random Name 1" }
885885 } ;
886886
887- var options = new QueryOptions < Customer > ( ) . OrderBy ( x => x . Name ) ;
887+ var options = new QueryOptions < Customer > ( ) . OrderBy ( x => x . Name ) . SatisfyBy ( x => x . Name . Contains ( "Random Name" ) ) ;
888888
889889 Assert . Null ( ( await repo . FindAsync ( x => x . Name . Contains ( "Random Name" ) ) ) ? . Name ) ;
890890 Assert . Null ( ( await repo . FindAsync ( options ) ) ? . Name ) ;
0 commit comments