public async void Should_GetByIdAsync_Valid() { await using var context = new TestContext(ContextOptions); var repository = new TransactionsRepository( new Mock <ILogger <AbstractRepository <TransactionsContext, TransactionEntity> > >().Object, context ); var newEntity = new TransactionEntity(); var newEntitySaved = await repository.AddAsync(newEntity); var result = await repository.GetByIdAsync(newEntitySaved.Id); Assert.NotNull(result); }