public void Initialize() { fixture = new Fixture(); fixture.Behaviors.Add(new OmitOnRecursionBehavior()); var movies = fixture.CreateMany <Movie>().ToList(); movies[0].Rank = 0; foreach (var movie in movies) { movie.IsMustWatch = false; movie.IsFavorite = false; movie.IsWatched = false; } response = new DataResponseBase <IEnumerable <MovieListItemDto> >(TestData.Mapper.Map <List <MovieListItemDto> >(movies)); moviesInLocal = movies; mockMoviesService.Setup(x => x.GetAllMoviesFromLocal()).ReturnsAsync(response); moviesSectionViewModel = new MoviesSectionViewModel(mockMoviesService.Object, TestData.Mapper, mockDispatcher.Object); }
public MovOrgSectionsFactory(MoviesSectionViewModel moviesSectionViewModel, ActorsSectionViewModel actorsSectionViewModel) { moviesSection = moviesSectionViewModel; actorsSection = actorsSectionViewModel; }