コード例 #1
0
        private void AddMovieDetailsToAiringMovie(AiringMovie airingMovie)
        {
            var movieId = airingMovie.Movie.Id;

            if (movieId == -1)
            {
                return;
            }

            var movieLogic = new MovieLogic(new MovieContext(), new RoomContext(), new ApiHelper(), new AiringMovieContext());

            airingMovie.Movie = movieLogic.GetMovieById(movieId);
        }
コード例 #2
0
 public TransactionLogic(ITransactionContext context, IAiringMovieContext airingMovieContext, IMovieContext movieContext, IRoomContext roomContext, IApiHelper apiHelper)
 {
     _transactionRepo  = new TransactionRepo(context);
     _airingMovieLogic = new AiringMovieLogic(airingMovieContext, roomContext);
     _movieLogic       = new MovieLogic(movieContext, roomContext, apiHelper, airingMovieContext);
 }