public void ToStringDefaultEmptyTest()
        {
            PresenceInfoChangedMessage target = new PresenceInfoChangedMessage();
            string expected =
                "CurrentHopCount: 2147483647, OriginalHopCount: 2147483647, HopCount: 2147483647, HopCountDistance: 0, IsNeighbourMessage: False, IsOwnMessage: True , PresenceInfo: null";
            string actual;

            actual = target.ToString();
            Assert.AreEqual(expected, actual);
        }
Example #2
0
        void ISynchronizedState.PresenceInfoChanged(PresenceInfoChangedMessage presenceInfoChangedMessage)
        {
#if DEBUG
            LogManager.GetCurrentClassLogger().Debug("presenceInfoChangedMessage: {0}", presenceInfoChangedMessage);
#endif
            try
            {
                businessLogic.OnPresenceInfoChangedReceived(presenceInfoChangedMessage.PresenceInfo);
            }
            catch (Exception exception)
            {
                HelperMethods.HandleBusinessLogicException(exception);
            }
        }
 /// <summary>
 /// When presence changed
 /// </summary>
 /// <remarks>For example , when peer change it's listening endpoint address and want to announce it to the mesh</remarks>
 /// <param name="presenceInfoChangedMessage"></param>
 void ISynchronizedState.PresenceInfoChanged(PresenceInfoChangedMessage presenceInfoChangedMessage)
 {
     Contract.Requires <ArgumentNullException>(presenceInfoChangedMessage != null);
 }