[TestCase(" ")] //failed public void TimKhuyenMai(string noidung) { //Arr var KhuyenMaiUseCase = new KhuyenMaiUseCase(); var expectedCount = 1; //Act List <KHUYENMAI> timkhuyenmai = KhuyenMaiUseCase.TimKhuyenMai(noidung); var actualCount = timkhuyenmai.Count; //Assert Assert.IsTrue(actualCount == expectedCount, "Khong tim thay khuyen mai"); }
public List <KHUYENMAI> TimKhuyenMai(string noidung) { return(km.TimKhuyenMai(noidung)); }