Exemplo n.º 1
0
 public FilmesServiceTests()
 {
     tmdbAdapterMock = new Mock <ITmdbAdapter>();
     filmesService   = new FilmesService(
         tmdbAdapterMock.Object,
         new ApplicationConfiguration(),
         new LoggerFactory());
 }
Exemplo n.º 2
0
 public CampeaoViewModel(ObservableCollection <Filmes> listaDeFilmesEscolhido)
 {
     _iFilmesService    = DependencyService.Get <IFilmesService>();
     listaDeFilmes      = new ObservableCollection <Filmes>();
     listaDeFilmes      = listaDeFilmesEscolhido;
     ListaDosVencedores = new ObservableCollection <Filmes>();
     ExecutaObterVencedorCommand();
 }
        public MessageHandler(IFilmesService filmesService,
                              ILoggerFactory loggerFactory)
        {
            this.filmesService = filmesService ??
                                 throw new ArgumentNullException(nameof(filmesService));

            logger = loggerFactory?.CreateLogger <MessageHandler>() ??
                     throw new ArgumentNullException(nameof(loggerFactory));
        }
Exemplo n.º 4
0
 public MainViewModel() : base()
 {
     Name                   = "Remover";
     _iFilmesService        = DependencyService.Get <IFilmesService>();
     ListaDeFilmes          = new ObservableCollection <Filmes>();
     ListaDeFilmesOrdenadas = new ObservableCollection <Filmes>();
     ListaQuartas           = new ObservableCollection <Filmes>();
     MI_ObterListaFilmesAsync();
 }
Exemplo n.º 5
0
 public CopaFilmesController(IFilmesService FilmesService)
 {
     _FilmesService = FilmesService;
 }
Exemplo n.º 6
0
 public FilmesController(IFilmesService filmesService)
 {
     this.filmesService = filmesService ??
                          throw new ArgumentNullException(nameof(filmesService));
 }
 public FilmesController(IFilmesService filmesService, IMapper mapper)
 {
     this.filmesService = filmesService ??
                          throw new ArgumentNullException(nameof(filmesService));
     this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Exemplo n.º 8
0
 public FilmesController(IFilmesService filmesService)
 {
     _filmesService = filmesService;
 }
Exemplo n.º 9
0
 public FilmesServiceTest(FilmesFixture fixture)
 {
     _FilmesService = new FilmesService();
     this.fixture   = fixture;
 }
Exemplo n.º 10
0
 public FilmesApplication(IFilmesService filmesService, IMapper mapper)
 {
     _filmesService = filmesService;
     _mapper        = mapper;
 }
Exemplo n.º 11
0
 public MovieAppService(IFilmesService filmesService)
 {
     this.filmesService = filmesService;
 }
Exemplo n.º 12
0
 public CampeaoViewModel()
 {
     _iFilmesService = DependencyService.Get <IFilmesService>();
 }