public async Task Should_return_owned_events() { long id = 89307119205; var api = new EventbriteApi(); api.SetOAuthToken("BKKRDKVUVRC5WG4HAVLT"); var request = new GetUserOwnedEventsRequest(id); var response = await api.Execute(request, CancellationToken.None); Assert.NotEmpty(response.Events); }
public async Task filter_by_status() { long id = 89307119205; var api = new EventbriteApi(); api.SetOAuthToken("BKKRDKVUVRC5WG4HAVLT"); var request = new GetUserOwnedEventsRequest(id); request.Status = "live"; var response = await api.Execute(request, CancellationToken.None); Assert.NotEmpty(response.Events); // TODO: Proper testing here }