public void Update_LoaiXe_CheckInputNormal(String ma, String ten, String hang, String mota, int namsx, String nguyenlieu, int dinhmucNL) { Login(); driver.Navigate().GoToUrl(homeURL + "/app/admin/loai-xe-view/LoaiXe00000000000001"); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15); Thread.Sleep(8000); driver.FindElement(By.XPath(xpathBtnSua)).Click(); Thread.Sleep(1000); var tbxMa = driver.FindElement(By.XPath(xpathMa)); tbxMa.Clear(); tbxMa.SendKeys(ma); var tbxName = driver.FindElement(By.XPath(xpathTen)); tbxName.Clear(); tbxName.SendKeys(ten); var tbxHang = driver.FindElement(By.XPath(xpathHang)); tbxHang.Clear(); tbxHang.SendKeys(hang); var tbxDescription = driver.FindElement(By.XPath(xpathMoTa)); tbxDescription.Clear(); tbxDescription.SendKeys(mota); var tbxNamSx = driver.FindElement(By.XPath(xpathNamSx)); tbxNamSx.Clear(); tbxNamSx.SendKeys(namsx.ToString()); var tbxLoaiNL = driver.FindElement(By.XPath(xpathNguyenLieu)); tbxLoaiNL.Clear(); tbxLoaiNL.SendKeys(nguyenlieu); var tbxDinhMucNL = driver.FindElement(By.XPath(xpathDinhMucNL)); tbxDinhMucNL.Clear(); tbxDinhMucNL.SendKeys(dinhmucNL.ToString()); Thread.Sleep(200); var btnLuu = driver.FindElement(By.XPath(xpathBtnLuu)); btnLuu.Click(); Thread.Sleep(500); //Check DB LOAI_XE_DTO finalRow = DataProvider.Instance.GetData <LOAI_XE_DTO>("LoaiXe_ById", new { LX_ID = "LoaiXe00000000000001" }).ToList().FirstOrDefault(); Assert.AreEqual(ten, finalRow.LX_TEN); Assert.AreEqual(mota, finalRow.LX_MO_TA); }
public dynamic LoaiXeUpdate(LOAI_XE_DTO input) { foreach (char x in specialKey) { if (input.LX_TEN.Contains(x) || input.LX_MO_TA.Contains(x)) { return(null); break; } } return(procedureHelper.GetData <dynamic>("LoaiXe_Update", input)); }
public dynamic LoaiXeInsert(LOAI_XE_DTO input) { foreach (char x in specialKey) { if (input.LX_TEN.Contains(x) || input.LX_MO_TA.Contains(x)) { return(null); break; } } return(procedureHelper.GetData <dynamic>("LoaiXe_Insert", input).FirstOrDefault()); }
public List <dynamic> LoaiXeUpdate([FromBody] LOAI_XE_DTO input) { return(loaixeAppService.LoaiXeUpdate(input)); }
public IDictionary <string, object> LoaiXeInsert([FromBody] LOAI_XE_DTO input) { return(loaixeAppService.LoaiXeInsert(input)); }
public List <LOAI_XE_DTO> LoaiXeSearch([FromBody] LOAI_XE_DTO filterInput) { return(loaiXeAppService.LOAI_XE_Search(filterInput)); }
public List <LOAI_XE_DTO> LOAI_XE_Search(LOAI_XE_DTO filterInput) { return(procedureHelper.GetData <LOAI_XE_DTO>("LOAI_XE_SEARCH", filterInput)); }