public static FollowCache GetFollowData(string channel, string id) { if (!FollowData.ContainsKey(channel)) { FollowData[channel] = new Dictionary <string, FollowCache>(); } var dict = FollowData[channel]; if (dict.ContainsKey(id)) { return(dict[id]); } var follow = new FollowCache(TwitchApiTools.GetFollowLong(channel, id)); dict[id] = follow; return(follow); }
public void TestMethod1() { var how = TwitchApiTools.GetFollowLong("lilac_unicorn_", "leekcake"); Assert.AreEqual(127, how); }