Beispiel #1
0
        public void GetPresences(uint[] @contacts, out IDictionary <uint, SimplePresence> @presence)
        {
            Dictionary <uint, SimplePresence> presences = new Dictionary <uint, SimplePresence>();

            presences[2] = new SimplePresence {
                Type = ConnectionPresenceType.Offline, Status = "offline", StatusMessage = ""
            };
            presence = presences;
        }
Beispiel #2
0
        public void GetPresences()
        {
            uint[] @contacts = new uint[] { 2 };
            IDictionary <uint, SimplePresence> presences;

            test.GetPresences(contacts, out presences);
            presences[2] = new SimplePresence {
                Type = ConnectionPresenceType.Offline, Status = "offline", StatusMessage = ""
            };
            var presence = presences[2];

            Assert.AreEqual(ConnectionPresenceType.Offline, presence.Type);
            Assert.AreEqual("offline", presence.Status);
            Assert.AreEqual("", presence.StatusMessage);
        }
		public void GetPresences (uint[] @contacts, out IDictionary<uint,SimplePresence> @presence)
		{
			Dictionary<uint,SimplePresence> presences = new Dictionary<uint,SimplePresence>();
			presences[2] = new SimplePresence { Type = ConnectionPresenceType.Offline, Status = "offline", StatusMessage = "" };
			presence = presences;
		}
		public void GetPresences ()
		{
			uint[] @contacts = new uint[] { 2 };
			IDictionary<uint,SimplePresence> presences;
			test.GetPresences (contacts, out presences);
			presences[2] = new SimplePresence { Type = ConnectionPresenceType.Offline, Status = "offline", StatusMessage = "" };
			var presence = presences[2];
			Assert.AreEqual (ConnectionPresenceType.Offline, presence.Type);
			Assert.AreEqual ("offline", presence.Status);
			Assert.AreEqual ("", presence.StatusMessage);
		}