void TestOfflineManager() { OfflineMessageManager manager = new OfflineMessageManager(); manager.PutChatMessage("test","admin", new Message[]{ new Message() { From="*****@*****.**", To="*****@*****.**", Id=DateTime.Now.Ticks+"|"+Guid.NewGuid().ToString(), Body="test message at "+ DateTime.Now.ToString() }, new Message() { From="*****@*****.**", To="*****@*****.**", Id=DateTime.Now.Ticks+"|"+Guid.NewGuid().ToString(), Body="test message1 at "+ DateTime.Now.ToString() } }); var msgs = manager.GetChatMessage("*****@*****.**", true); }
void TestOfflineManager() { OfflineMessageManager manager = new OfflineMessageManager(); manager.PutChatMessage("test", "admin", new Message[] { new Message() { From = "*****@*****.**", To = "*****@*****.**", Id = DateTime.Now.Ticks + "|" + Guid.NewGuid().ToString(), Body = "test message at " + DateTime.Now.ToString() }, new Message() { From = "*****@*****.**", To = "*****@*****.**", Id = DateTime.Now.Ticks + "|" + Guid.NewGuid().ToString(), Body = "test message1 at " + DateTime.Now.ToString() } }); var msgs = manager.GetChatMessage("*****@*****.**", true); }