You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -142,7 +142,7 @@ public async Task DeleteEntityAsync()
142
142
varentities=awaitrepository.GetAllAsync();
143
143
144
144
Assert.NotNull(entities);
145
-
Assert.Equal(9,entities.Count);
145
+
Assert.Equal(9,entities.Count());
146
146
}
147
147
148
148
[Fact]
@@ -159,7 +159,7 @@ public async Task DeleteByIdEntityAsync()
159
159
varentities=awaitrepository.GetAllAsync();
160
160
161
161
Assert.NotNull(entities);
162
-
Assert.Equal(9,entities.Count);
162
+
Assert.Equal(9,entities.Count());
163
163
}
164
164
165
165
[Fact]
@@ -171,11 +171,13 @@ public async Task GetPaginatedEntitiesAsync()
171
171
awaitdbContext.Database.EnsureDeletedAsync();
172
172
awaitdbContext.Database.EnsureCreatedAsync();
173
173
174
-
varentities=awaitrepository.GetPaginatedAsync(includes: query =>query.Include(p =>p.Indirizzo), x =>x.Id<=10, x =>x.Id,ascending:true,pageIndex:2,pageSize:5);
174
+
varquery=awaitrepository.GetAllAsync(includes: q =>q.Include(p =>p.Indirizzo),filter: w =>w.Id<=10);
0 commit comments