GetAllUserReceived() 공개 메소드

Gets all the events that have been received by a given user.
http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
public GetAllUserReceived ( string user ) : Task>
user string The login of the user
리턴 Task>
예제 #1
0
            public async Task EnsuresArgumentsNotNull()
            {
                var connection = Substitute.For<IApiConnection>();
                var client = new EventsClient(connection);

                await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllUserReceived(null));
                await Assert.ThrowsAsync<ArgumentException>(() => client.GetAllUserReceived(""));
            }
예제 #2
0
            public void RequestsCorrectUrl()
            {
                var connection = Substitute.For<IApiConnection>();
                var client = new EventsClient(connection);

                client.GetAllUserReceived("fake");

                connection.Received().GetAll<Activity>(Arg.Is<Uri>(u => u.ToString() == "users/fake/received_events"));
            }