public async Task ShoulReturnPlayers() { var service = new PlayersServiceClient(new System.Net.Http.HttpClient(), Options.Create <PlayersServiceClientOptions>( new PlayersServiceClientOptions() { BaseUrl = "http://localhost:5001/api/Players" })); var players = await service.GetPlayers(null); Assert.NotEmpty(players); }
public async Task ShoulReturnRequestedPlayers() { var service = new PlayersServiceClient(new System.Net.Http.HttpClient(), Options.Create <PlayersServiceClientOptions>( new PlayersServiceClientOptions() { BaseUrl = "http://localhost:5001/api/Players" })); var players = await service.GetPlayers(new List <Guid> { new Guid("4F840DC9-F742-4170-94B5-08D78A07DA27") }); Assert.NotEmpty(players); Assert.Equal(1, players.Count()); }