Example #1
0
        /// <summary>
        /// Gets list of actuall showings.
        /// </summary>
        /// <param name="n">n is a number of the nearest showings.</param>
        /// <returns></returns>
        public ObservableCollection <Showing> GetActuall(int n)
        {
            var data = _showingService.GetActuall(n);
            var list = new ObservableCollection <Showing>();

            foreach (ShowingDto show in data)
            {
                list.Add(new Showing()
                {
                    Id              = show.Id,
                    MovieId         = show.MovieId,
                    MovieTitle      = show.MovieTitle,
                    TheatreId       = show.TheatreId,
                    ShowingDateTime = show.ShowingDateTime
                });
            }
            return(list);
        }
        public void GetActuallShowings()
        {
            var showings = _services.GetActuall(14);

            Assert.IsNotNull(showings);
        }
Example #3
0
 public IHttpActionResult GetActuall(int n)
 {
     return(Json(_showingService.GetActuall(n)));
 }