protected void Timer1_Tick(object sender, EventArgs e) { this.GridView5.DataSource = AccountService.getAllaccount(); this.GridView1.DataSource = OperatorService.GetAllOperators(); this.GridView2.DataSource = ChatService.GetAllChat(); LiveSupport.BLL.Utils.Util.SysDateStates li = LiveSupport.BLL.Utils.Util.GetSysInfo(); this.Label4.Text = li.StartApplicationDate.ToString(); this.Label5.Text = li.StartSessionDate.ToString(); DataBind(); }
public void ChatPageRequestChat() { LiveSupport.LiveSupportModel.Chat chatRequest = new LiveSupport.LiveSupportModel.Chat(); chatRequest.AccountId = "aid"; chatRequest.ChatId = Guid.NewGuid().ToString(); chatRequest.CreateTime = DateTime.Now; chatRequest.Status = LiveSupport.LiveSupportModel.ChatStatus.Requested; chatRequest.OperatorId = "aa"; // ChatService.ChatPageRequestChat(chatRequest); LiveSupport.LiveSupportModel.Operator op = null; foreach (var item in OperatorService.GetAllOperators()) { if (chatRequest.OperatorId == item.OperatorId) { op = item; } } Assert.AreEqual(op.Status, OperatorStatus.InviteChat); }
public List <Operator> GetAllOperators() { checkAuthentication(); return(OperatorService.GetAllOperators(OperatorService.GetOperatorById(Authentication.OperatorId).AccountId)); }