Exemple #1
0
        public MovieController(IWebHostEnvironment environment)
        {
            this._environment = environment;

            movieCollection = new Factory().GetMovieCollection(Context.Database);

            ratingCollection = new Factory().GetRatingCollection(Context.Database);

            watchListCollection = new Factory().GetWatchListCollection();
        }
Exemple #2
0
 public void Setup()
 {
     factory          = new Factory();
     ratingCollection = factory.GetRatingCollection(Context.Memory);
 }