示例#1
0
        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")));
        }
示例#2
0
 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);
     }
 }