public TimeServicoTeste() { var cfg = ServicesConfiguration.Configure(); _memoryDb = cfg.GetRequiredService <MatchDayAppContext>() .SeedFakeData(); _uow = cfg.GetRequiredService <IUnitOfWork>(); _timeServico = new TimeServico(_uow, cfg.GetRequiredService <IMapper>()); _timeId = _memoryDb.Times.Last().Id; }
public TimeHandler(ITimeServico timeServico) { _timeServico = timeServico ?? throw new System.ArgumentNullException(nameof(timeServico)); }