Ejemplo n.º 1
0
        public PartidaServicoTeste()
        {
            var configServices = ServicesConfiguration.Configure();

            _memoryDb = configServices
                        .GetRequiredService <MatchDayAppContext>()
                        .SeedFakeData();
            _uow = configServices
                   .GetRequiredService <IUnitOfWork>();

            _partidaServico = new PartidaServico(_uow,
                                                 configServices.GetRequiredService <IMapper>());
        }
Ejemplo n.º 2
0
 public PartidaHandler(IPartidaServico partidaServico)
 {
     _partidaServico = partidaServico
                       ?? throw new System.ArgumentNullException(nameof(partidaServico));
 }