public void XoaTrongMP() { this.t = new QuanLyThuVien.DTO.PhieuTra_DTO(); t.MaPhieu = ""; Assert.AreEqual(pt.Xoa(t.MaPhieu), false); }
public void XoaDu() { this.t = new QuanLyThuVien.DTO.PhieuTra_DTO(); t.MaPhieu = "1"; Assert.AreEqual(pt.Xoa(t.MaPhieu), true); }
public void SuaDung() { this.t = new QuanLyThuVien.DTO.PhieuTra_DTO(); t.MaPhieu = "2"; t.MaDocGia = "101"; t.MaSach = "1001"; t.NgayTra = DateTime.Today; Assert.AreEqual(pt.SuaT(t), true); }
public void MPTrong() { this.t = new QuanLyThuVien.DTO.PhieuTra_DTO(); t.MaPhieu = ""; t.MaDocGia = "100"; t.MaSach = "1000"; t.NgayTra = DateTime.Today; Assert.AreEqual(pt.SuaT(t), false); }
public void ThemDuPT() { this.t = new QuanLyThuVien.DTO.PhieuTra_DTO(); t.MaPhieu = "5"; t.MaDocGia = "102"; t.MaSach = "1004"; t.NgayTra = DateTime.Today; Assert.AreEqual(pt.Them(t), true); }
public void TrungMPT() { this.t = new QuanLyThuVien.DTO.PhieuTra_DTO(); t.MaPhieu = "1"; t.MaDocGia = "739"; t.MaSach = "03942"; t.NgayTra = DateTime.Today; Assert.AreEqual(pt.Them(t), false); }