public void GetStaffList_ReturnNotNull()
        {
            //Arr
            var NhanVienUseCase = new NhanVienUseCase();

            //Act
            List <NHANVIEN> stafflist   = NhanVienUseCase.LoadStaffList();
            var             actualCount = stafflist.Count;

            //Assert
            Assert.IsTrue(actualCount > 0, "Danh sach nhan vien dang rong");
        }
        public void XoaNhanVien(string manv)
        {
            //Arr
            var NhanVienUseCase = new NhanVienUseCase();
            var expectedCount   = 1;

            //Act
            int xoaNhanVien = NhanVienUseCase.XoaNhanVien(manv);
            var actualCount = xoaNhanVien;

            //Assert
            Assert.IsTrue(actualCount == expectedCount, "Xoa that bai");
        }
        public void SuaNhanVien(string manv, string hotennv, string cmnd, string sdtnv, string mail, string ngaysinh, string diachi, string hoten_nguoilienhe, string sdt_nguoilienhe, int machucvu, string matkhau)
        {
            //Arr
            var NhanVienUseCase = new NhanVienUseCase();
            var expectedCount   = 1;

            //Act
            int suaNhanVien = NhanVienUseCase.SuaNhanVien(manv, hotennv, cmnd, sdtnv, mail, ngaysinh, diachi, hoten_nguoilienhe, sdt_nguoilienhe, machucvu, matkhau);
            var actualCount = suaNhanVien;

            //Assert
            Assert.IsTrue(actualCount == expectedCount, "Sua that bai");
        }
        [TestCase(" ")]         //failed
        public void TimNhanVien(string noidung)
        {
            //Arr
            var NhanVienUseCase = new NhanVienUseCase();
            var expectedCount   = 1;

            //Act
            List <NHANVIEN> timNhanVien = NhanVienUseCase.TimNhanVien(noidung);
            var             actualCount = timNhanVien.Count;

            //Assert
            Assert.IsTrue(actualCount == expectedCount, "Khong tim thay nhan vien");
        }