/// <summary>
        /// Initializes a new instance of the <see cref="ContactListViewModel" /> class.
        /// </summary>
        /// <param name="eventMessenger">The event messenger.</param>
        /// <param name="rabbitChatService">The rabbit chat service.</param>
        /// <param name="contactService">The contact service.</param>
        public ContactListViewModel(IEventMessenger eventMessenger, RabbitChatService rabbitChatService, ContactService contactService)
        {
            this.EventMessenger    = eventMessenger;
            this.RabbitChatService = rabbitChatService;
            this.ContactService    = contactService;

            this.SelectedItemChangedCommand = new DelegateCommand <Contact>(this.OnSelectedItemChanged);
            this.ListDoubleClickedCommand   = new DelegateCommand(this.OnListDoubleClicked);
            this.AddContactCommand          = new DelegateCommand(this.OnAddContact);

            this.InitializeChatNotificationRequest = new InteractionRequest <InitializeChatNotification>();

            this.EventMessenger.SubscribeEvent <LoginEventMessage>(this.OnLogin);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChatViewModel" /> class.
 /// </summary>
 /// <param name="rabbitChatService">The rabbit chat service.</param>
 public ChatViewModel(RabbitChatService rabbitChatService)
 {
     this.RabbitChatService = rabbitChatService;
     this.SendCommand       = new DelegateCommand(this.OnSendMessage);
     this.CloseCommand      = new DelegateCommand(this.OnClose);
 }