Beispiel #1
0
        public void TestUpdate()
        {
            try
            {
                Shoutbox.Update(TestEnvironment.Session);

                if (Shoutbox.TopChatter.Count > 10)
                {
                    Assert.Fail("More than 10 top chatters were parsed");
                }

                foreach (var chatter in Shoutbox.TopChatter)
                {
                    Assert.AreNotEqual(0, chatter.ID, "The id of a top chatter was not set");
                    Assert.AreNotEqual(0, chatter.Name.Length, "The name of a top chatter was not set");
                }
            }
            catch (RequestFailedException exc)
            {
                AssertExtender.Exception("A HTTP request failed", exc);
            }
            catch (InvalidSessionException exc)
            {
                AssertExtender.Exception("Session is invalid", exc);
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DisplayAds     = false;
            DisplaySideAds = false;
            Title          = HostProfile.SiteTitle + " : Kick Spy!";
            PageName       = UrlFactory.PageName.KickSpy;

            UserOnlineList.DataBind(UserCache.GetOnlineUsers(30, HostProfile.HostID, KickUserProfile));

            Shoutbox.DataBind((ShoutCache.GetLatestShouts(HostProfile.HostID)));
        }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Shoutbox.DataBind((ShoutCache.GetLatestShouts(HostProfile.HostID, this.UrlParameters.ChatID.Value)));
 }