Ejemplo n.º 1
0
 public IContextInserter InsertAt(string timestamp)
 {
     _cachedTime = TestHelper.Parse(timestamp);
     CachedNick  = timestamp;
     if (Nicks.Contains(CachedNick))
     {
         throw new Exception("Nicks/timestamps must be unique. If you want messages with the same timestamp, zero pad them.");
     }
     Nicks.Add(CachedNick);
     return(this);
 }
Ejemplo n.º 2
0
        public void Process(Context context)
        {
            var friends = context.Server.Database.QueryFriends(owner);

            friends.ForEach(f =>
            {
                UserIds.Add(f.UserId);
                Usernames.Add(f.Username);
                Nicks.Add(f.Nickname);
            });
        }