示例#1
0
        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;
        }
示例#2
0
 public TimeHandler(ITimeServico timeServico)
 {
     _timeServico = timeServico
                    ?? throw new System.ArgumentNullException(nameof(timeServico));
 }