예제 #1
0
        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();
        }
예제 #2
0
        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();
        }