public async Task ShouldReturnNullIfEventIdIsNotExisting() { //Given var id = Int32.MaxValue; var sut = new EventRepo(new ViagogoApiProvider(new CredentialProvider(), "MyTestApp")); //When var results = await sut.GetEventListings(id); results.Should().BeNull(); }
public async Task ShouldReturnListingsGivenValidEventId() { //Given var id = 2159132; var sut = new EventRepo(new ViagogoApiProvider(new CredentialProvider(), "MyTestApp")); //When var results = await sut.GetEventListings(id); results.Should().NotBeNull(); }