Пример #1
0
 public static HomeViewModelBuilder Init(MovieCarouselViewModelBuilder movieCarouselViewModelBuilder,
                                         ActorsSummaryViewModelBuilder actorsSummaryViewModelBuilder,
                                         UpcomingFilmsListViewModelBuilder upcomingFilmsListViewModelBuilder)
 {
     return(new HomeViewModelBuilder(movieCarouselViewModelBuilder,
                                     actorsSummaryViewModelBuilder,
                                     upcomingFilmsListViewModelBuilder));
 }
Пример #2
0
        private HomeViewModelBuilder(MovieCarouselViewModelBuilder movieCarouselViewModelBuilder,
                                     ActorsSummaryViewModelBuilder actorsSummaryViewModelBuilder,
                                     UpcomingFilmsListViewModelBuilder upcomingFilmsListViewModelBuilder)
        {
            _movieCarouselViewModelBuilder     = movieCarouselViewModelBuilder;
            _actorsSummaryViewModelBuilder     = actorsSummaryViewModelBuilder;
            _upcomingFilmsListViewModelBuilder = upcomingFilmsListViewModelBuilder;

            _homeViewModel = new HomeViewModel();
        }