public async Task Handler_Returns_Game_When_User_Id_Is_Missing() { await InitializeRecords(); var query = new GameGetByIdQuery(_testQuery.Id, null); var result = await _handler.Handle(query); result.Should().NotBeNull(); }
public GameGetByIdQueryHandlerTests() { _fixture = new Fixture(); _fixture.Behaviors.Add(new OmitOnRecursionBehavior()); _context = InitializeDatabase(); _testQuery = _fixture.Create <GameGetByIdQuery>(); _handler = new GameGetByIdQueryHandler(_context); }