public async Task GetByDeckByIdWithCardsAsync_Should_ReturnDeckInfo() { // Arrange var dbContext = InMemoryDbContext.CreateDbContext(); var deck = _fixture.Create <DeckEntity>(); dbContext.Add(deck); dbContext.SaveChanges(); // Act var deckRepository = new DeckRepository(dbContext); await deckRepository.GetByIdAsync(deck.DeckId); // Assert var result = dbContext.Find <DeckEntity>(deck.DeckId); result .Should() .NotBeNull(); result .Should() .BeEquivalentTo(deck); }