public async Task EnsuresArgumentsNotNull()
            {
                var gitHubClient = Substitute.For<IGitHubClient>();
                var client = new ObservableEventsClient(gitHubClient);

                await AssertEx.Throws<ArgumentNullException>(async () => await client.GetUserReceivedPublic(null));
                await AssertEx.Throws<ArgumentException>(async () => await client.GetUserReceivedPublic(""));
            }
            public void RequestsCorrectUrl()
            {
                var gitHubClient = Substitute.For<IGitHubClient>();
                var client = new ObservableEventsClient(gitHubClient);

                client.GetUserReceivedPublic("fake");

                gitHubClient.Connection.Received(1).GetAsync<List<Activity>>(new Uri("users/fake/received_events/public", UriKind.Relative), null, null);
            }