Esempio n. 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();
        }
Esempio n. 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();
        }