public void XoaDu() { this.m = new QuanLyThuVien.DTO.PhieuMuon_DTO(); m.MaPhieu = "1"; Assert.AreEqual(pm.Xoa(m.MaPhieu), true); }
public void XoaTrongMP() { this.m = new QuanLyThuVien.DTO.PhieuMuon_DTO(); m.MaPhieu = ""; Assert.AreEqual(pm.Xoa(m.MaPhieu), false); }
public void SuaDung() { this.m = new QuanLyThuVien.DTO.PhieuMuon_DTO(); m.MaPhieu = "5"; m.MaDocGia = "103"; m.MaSach = "1001"; m.NgayMuon = DateTime.Today; m.NgayPhaiTra = DateTime.Today; Assert.AreEqual(pm.SuaM(m), true); }
public void ThemDu() { this.m = new QuanLyThuVien.DTO.PhieuMuon_DTO(); m.MaPhieu = "7"; m.MaDocGia = "105"; m.MaSach = "1000"; m.NgayMuon = DateTime.Today; m.NgayPhaiTra = DateTime.Today; Assert.AreEqual(pm.Them(m), true); }