Пример #1
0
 public static FilmViewModelBuilder Init(RateFilmPanelViewModelBuilder rateFilmPanelViewModelBuilder,
                                         UserReviewsPanelViewModelBuilder userReviewsPanelViewModelBuilder,
                                         FilmCastListViewModelBuilder filmCastListViewModelBuilder,
                                         IUnitOfWork unitOfWork, IAuthenticator authenticator)
 {
     return(new FilmViewModelBuilder(rateFilmPanelViewModelBuilder, userReviewsPanelViewModelBuilder,
                                     filmCastListViewModelBuilder, unitOfWork, authenticator));
 }
Пример #2
0
        private FilmViewModelBuilder(RateFilmPanelViewModelBuilder rateFilmPanelViewModelBuilder,
                                     UserReviewsPanelViewModelBuilder userReviewsPanelViewModelBuilder,
                                     FilmCastListViewModelBuilder filmCastListViewModelBuilder,
                                     IUnitOfWork unitOfWork, IAuthenticator authenticator)
        {
            _rateFilmPanelViewModelBuilder    = rateFilmPanelViewModelBuilder;
            _userReviewsPanelViewModelBuilder = userReviewsPanelViewModelBuilder;
            _filmCastListViewModelBuilder     = filmCastListViewModelBuilder;

            _unitOfWork    = unitOfWork;
            _authenticator = authenticator;

            _filmViewModel = new FilmViewModel(_unitOfWork);
        }