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 Should_return_correct_organisation()
    {
      long id = 7794529429;
      var api = new EventbriteApi();
      api.SetOAuthToken("BKKRDKVUVRC5WG4HAVLT");
      var request = new GetOrganizerByIdRequest(id);
      var response = await api.Execute(request, CancellationToken.None);

      Assert.Equal(id, response.Id);
    }
Пример #3
0
        public async Task Should_return_correct_organisation()
        {
            long id  = 7794529429;
            var  api = new EventbriteApi();

            api.SetOAuthToken("BKKRDKVUVRC5WG4HAVLT");
            var request  = new GetOrganizerByIdRequest(id);
            var response = await api.Execute(request, CancellationToken.None);

            Assert.Equal(id, response.Id);
        }
        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
    }
        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
        }