public void EnsuresNonNullArguments() { var gitHub = Substitute.For <IGitHubClient>(); var client = new ObservableRepositoryInvitationsClient(gitHub); Assert.Throws <ArgumentNullException>(() => client.GetAllForCurrent(null)); }
public void RequestsCorrectUrl() { var gitHub = Substitute.For <IGitHubClient>(); var client = new ObservableRepositoryInvitationsClient(gitHub); client.GetAllForCurrent(); gitHub.Received().Repository.Invitation.GetAllForCurrent(); }