public async void Should_GetManyByParameterAsync_Valid() { await using var context = new TestContext(ContextOptions); var repository = new AccountsRepository( new Mock <ILogger <AbstractRepository <AccountsContext, AccountEntity> > >().Object, context ); var newEntity = new AccountEntity { Version = 10 }; var _ = await repository.AddAsync(newEntity); var result = await repository.GetManyByParameterAsync( e => e.Version == 10 ); Assert.Single(result); }