public SorteioController(ISorteioRepository sorteioRepository, IMapper mapper, ISorteioService sorteioService, INotificador notificador, IUser user) : base(notificador, user) { _mapper = mapper; _sorteioService = sorteioService; _sorteioRepository = sorteioRepository; }
public FilmesController(ICopaFilmeBase copaFilmeBase, ISorteioService sorteioService, ILogger <FilmesController> logger, IMapper mapper) { _copaFilmeBase = copaFilmeBase; _sorteioService = sorteioService; _logger = logger; _mapper = mapper; }
public SorteioServiceTest() { lista = new List <FilmesResponse>() { new FilmesResponse() { id = "1", titulo = "Os Incríveis 2", nota = 8.5 }, new FilmesResponse() { id = "2", titulo = "Jurassic World: Reino Ameaçado", nota = 6.7 }, new FilmesResponse() { id = "3", titulo = "Oito Mulheres e um Segredo", nota = 6.3 }, new FilmesResponse() { id = "4", titulo = "Hereditário", nota = 7.8 }, new FilmesResponse() { id = "5", titulo = "Vingadores: Guerra Infinita", nota = 8.8 }, new FilmesResponse() { id = "6", titulo = "Deadpool 2", nota = 8.1 }, new FilmesResponse() { id = "7", titulo = "Han Solo: Uma História Star Wars", nota = 7.2 }, new FilmesResponse() { id = "8", titulo = "Thor: Ragnarok", nota = 7.9 }, }; MoqSorteioService = new Mock <ICopaFilmeBase>(); MoqSorteioService.Setup(x => x.GetFilmesAsync(It.IsAny <CancellationToken>())) .ReturnsAsync(lista); sorteioService = new SorteioService(MoqSorteioService.Object); }
public SorteioDetalheAppService(ISorteioDetalheService sorteioDetalheService, IParticipanteService participanteService, ISorteioService sorteioService) : base(sorteioDetalheService) { _sorteioDetalheService = sorteioDetalheService; _sorteioService = sorteioService; _participanteService = participanteService; }
public SorteioApiController(ISorteioService sorteioService) { _sorteioService = sorteioService; }
public JogoController(IJogoService jogoService, ISorteioService sorteioService) { this._jogoService = jogoService; this._sorteioService = sorteioService; }
public SorteioAppService(ISorteioService sorteioService) : base(sorteioService) { _sorteioService = sorteioService; }