Beispiel #1
0
        public void Update_TestCase3()
        {
            TaiKhoanDTO taiKhoanDTO = new TaiKhoanDTO
            {
                MaTaiKhoan  = TestCommon.LEN_10,
                TenDangNhap = TestCommon.LEN_10,
                MatKhau     = TestCommon.LEN_10,
                NgayThayDoi = TestCommon.LEN_8,
                MaNhanVien  = TestCommon.LEN_10
            };
            DangNhapBUS dangNhapBUS = new DangNhapBUS();

            dangNhapBUS.Update(db, taiKhoanDTO);

            TaiKhoanDTO taiKhoanUpdate = new TaiKhoanDTO
            {
                MaTaiKhoan = TestCommon.LEN_10,
                MaNhanVien = "123"
            };
            // execute
            string actual   = dangNhapBUS.Update(db, taiKhoanDTO);
            string expected = "1111";

            // compare
            Assert.Equals(expected, actual);
        }