public async Task BetRepository_GetByIdAsync_ReturnsProperBet() { var bet = GetTestBets().First(); var mockDbSet = UnitTestHelper.GetMockDbSet <Bet>(GetTestBets()); var mockContext = GetMockContext(mockDbSet); var betRepo = new BetRepository(mockContext.Object); var result = await betRepo.GetByIdAsync(bet.Id); Assert.AreEqual(bet.Id, result.Id); Assert.AreEqual(bet.BetDate, result.BetDate); Assert.AreEqual(bet.LotId, result.LotId); }