/// <summary>Post this message.</summary>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An object.</returns>
        public object Post(MoviesZip request)
        {
            var response = new MoviesZipResponse {
                Movies = request.Genre.IsNullOrEmpty()
                                        ? DbFactory.Run(db => db.Select <Movie>())
                                        : DbFactory.Run(db => db.Select <Movie>("Genres LIKE {0}", "%" + request.Genre + "%"))
            };

            return(RequestContext.ToOptimizedResult(response));
        }
        public void Can_call_MoviesZip_WebService()
        {
            var client = new JsonServiceClient(ListeningOn);
            var request = new MoviesZip();
            var response = client.Send<MoviesZipResponse>(request);

            Assert.That(response.Movies.Count, Is.GreaterThan(0));
        }
        /// <summary>Post this message.</summary>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An object.</returns>
		public object Post(MoviesZip request)
		{
			var response = new MoviesZipResponse {
				Movies = request.Genre.IsNullOrEmpty()
					? DbFactory.Run(db => db.Select<Movie>())
					: DbFactory.Run(db => db.Select<Movie>("Genres LIKE {0}", "%" + request.Genre + "%"))
			};

			return RequestContext.ToOptimizedResult(response);
		}
        /// <summary>Gets the given request.</summary>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An object.</returns>
		public object Get(MoviesZip request)
		{
			return Post(request);
		}
 /// <summary>Gets the given request.</summary>
 ///
 /// <param name="request">The request.</param>
 ///
 /// <returns>An object.</returns>
 public object Get(MoviesZip request)
 {
     return(Post(request));
 }