コード例 #1
0
        public void testThemAccountNV()
        {
            this.themacDAO.Add(this.ac1);
            Assert.AreEqual(3, themacDAO.GetThemAccount().Count);
            Assert.AreEqual("1651010010", themacDAO.GetThemAccount()[0].taiKhoan);
            Assert.AreEqual("vana1234", themacDAO.GetThemAccount()[0].matKhau);

            this.themacDAO.Add(this.ac2);
            Assert.AreEqual(4, themacDAO.GetThemAccount().Count);
            Assert.AreEqual("1651010011", themacDAO.GetThemAccount()[1].taiKhoan);
            Assert.AreEqual("thib1234", themacDAO.GetThemAccount()[1].matKhau);
        }
コード例 #2
0
 public List <ThemAccountDTO> GetThemAccount()
 {
     try
     {
         return(themaccountDAO.GetThemAccount());
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }