public void ReturnOnlyDRMEnabledAndHasEps() { var result = televisionBL.GetDRMEnabledAndHasEpisodes(tvList); Assert.IsTrue(result.Exists(x => x.title.Equals("Boardwalk Empire"))); Assert.IsTrue(result.Exists(x => x.title.Equals("The Strain"))); Assert.IsFalse(result.Exists(x => x.title.Equals("Sons of Anarchy"))); Assert.IsFalse(result.Exists(x => x.title.Equals("Ray Donovan"))); }
public List <Response> Query(Request r) { try { return(television.GetDRMEnabledAndHasEpisodes(r.payload)); } catch (Exception ex) { ErrorResponse errorData = new ErrorResponse(ex.Message); throw new WebFaultException <ErrorResponse>(errorData, HttpStatusCode.BadRequest); } }