Exemplo n.º 1
0
 public MatchPlanner(AppDb appDb, OrganizationContext organizationContext, long tournamentId)
 {
     _organizationContext = organizationContext;
     _appDb               = appDb;
     _tournament          = new TournamentEntity(tournamentId);
     _venue               = new EntityCollection <VenueEntity>(new VenueEntityFactory());
     _availableMatchDates = new AvailableMatchDates(_appDb, this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// CTOR.
 /// </summary>
 /// <param name="tenantContext"></param>
 /// <param name="timeZoneConverter"></param>
 /// <param name="loggerFactory"></param>
 public MatchPlanner(ITenantContext tenantContext,
                     Axuno.Tools.DateAndTime.TimeZoneConverter timeZoneConverter, ILoggerFactory loggerFactory)
 {
     _tenantContext       = tenantContext;
     _appDb               = tenantContext.DbContext.AppDb;
     _timeZoneConverter   = timeZoneConverter;
     _availableMatchDates = new AvailableMatchDates(tenantContext, timeZoneConverter, loggerFactory.CreateLogger <AvailableMatchDates>());
     _loggerFactory       = loggerFactory;
     _logger              = loggerFactory.CreateLogger <MatchPlanner>();
 }