public GiantBombProviderTests() { var fixture = new Fixture(); _apiClient = new Mock <IGiantBombApiClient>(); var configuration = new Mock <IGiantBombApiClientConfiguration>(); _apiClient .Setup(x => x.SendGameDetailsRequest(It.IsAny <int>())) .ReturnsAsync(fixture.Create <GiantBombDetailsResult>()); _apiClient .Setup(x => x.SendSearchForGameRequest(It.IsAny <string>())) .ReturnsAsync(fixture.Create <GiantBombSearchResult>()); _provider = new GiantBombProvider(_apiClient.Object, configuration.Object); }
public SearchForGameRequestHandler(IBoardGameGeekProvider boardGameGeekProvider, IGiantBombProvider giantBombProvider) { _boardGameGeekProvider = boardGameGeekProvider; _giantBombProvider = giantBombProvider; }
public GetSearchedGameDetailsRequestHandler(IBoardGameGeekProvider boardGameGeekProvider, IGiantBombProvider giantBombProvider) { _boardGameGeekProvider = boardGameGeekProvider; _giantBombProvider = giantBombProvider; }