/// <summary> /// Instantiate a new GitHub Activities API client. /// </summary> /// <param name="apiConnection">An API connection</param> public ActivitiesClient(IApiConnection apiConnection) : base(apiConnection) { Events = new EventsClient(apiConnection); Starring = new StarredClient(apiConnection); Watching = new WatchedClient(apiConnection); Feeds = new FeedsClient(apiConnection); }
/// <summary> /// Instantiate a new GitHub Activities API client. /// </summary> /// <param name="apiConnection">An API connection</param> public ActivitiesClient(IApiConnection apiConnection) : base(apiConnection) { Events = new EventsClient(apiConnection); Starring = new StarredClient(apiConnection); Watching = new WatchedClient(apiConnection); Feeds = new FeedsClient(apiConnection); }
public void RequestsCorrectUrl() { var connection = Substitute.For<IApiConnection>(); var feedsClient = new FeedsClient(connection); feedsClient.GetFeeds(); connection.Received().Get<Feed>(Arg.Is<Uri>(u => u.ToString() == "feeds")); }
public void RequestsCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var feedsClient = new FeedsClient(connection); feedsClient.GetFeeds(); connection.Received().Get <Feed>(Arg.Is <Uri>(u => u.ToString() == "feeds")); }