Skip to content

Instantly share code, notes, and snippets.

@ssukhpinder
Created June 5, 2021 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssukhpinder/f22ac69d32a03610dcab18975012058f to your computer and use it in GitHub Desktop.
Save ssukhpinder/f22ac69d32a03610dcab18975012058f to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
Chatroom chatroom = new Chatroom();
User Jennifer = new UserPersona(Username.Jennifer.ToString());
User Ashley = new UserPersona(Username.Ashley.ToString());
User David = new UserPersona(Username.David.ToString());
User Scott = new UserPersona(Username.Scott.ToString());
chatroom.Register(Jennifer);
chatroom.Register(Ashley);
chatroom.Register(David);
chatroom.Register(Scott);
David.Post(Username.Scott.ToString(), "Hey");
Scott.Post(Username.David.ToString(), "I am good how about you.");
Jennifer.Post(Username.Ashley.ToString(), "Hey ashley... david is back in the group");
Jennifer.Post(Username.David.ToString(), "Where have you been?");
Ashley.Post(Username.David.ToString(), "How come you aren't active here anymore?");
Console.ReadKey();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment