public PartidaServicoTeste() { var configServices = ServicesConfiguration.Configure(); _memoryDb = configServices .GetRequiredService <MatchDayAppContext>() .SeedFakeData(); _uow = configServices .GetRequiredService <IUnitOfWork>(); _partidaServico = new PartidaServico(_uow, configServices.GetRequiredService <IMapper>()); }
public PartidaHandler(IPartidaServico partidaServico) { _partidaServico = partidaServico ?? throw new System.ArgumentNullException(nameof(partidaServico)); }