public bool DeleteRecommend(string id, string title) { var availbility = _repository.DeleteRecommend(id, title); if (availbility) { _repository.DeleteRecommend(id, title); return(true); } else { throw new RecommendNotFound("Recommend Not Found"); } }
public void DeleteRecommendShouldReturnTrue() { string Id = "Karanss"; string Title = "News"; var actual = repository.DeleteRecommend(Id, Title); Assert.True(actual); }