public TranscriptRequestService(ITranscriptRequestRepository transcriptRequestRepo, IInstitutionRepository institutionRepo, IAvatarService avatarService, ITimeZoneRepository timeZoneRepository) { _transcriptRequestRepo = transcriptRequestRepo; _institutionRepo = institutionRepo; _avatarService = avatarService; _timeZoneRepository = timeZoneRepository; }
public TimeZoneService(ICurrentUser currentUser, IDomainObjectFactory domainObjectFactory, IEventAggregator eventAggregator, ITimeZoneRepository timeZoneRepository, ILogService logService, ITimeZonePropertyRepository timeZonePropertyRepository) : base(currentUser, domainObjectFactory, eventAggregator) { _timeZoneRepository = timeZoneRepository; _timeZonePropertyRepository = timeZonePropertyRepository; _logService = logService; }
public void Load(ITimeZoneRepository timeZoneRepository, IDaylightSavingsAdjustmentRepository daylightSavingsAdjustmentRepository) { ITransformerDatabaseReader transformerDatabaseReader = _tzDbTransformer.Transform(); transformerDatabaseReader.OffsetAdjustments.ToList() .ForEach(daylightSavingsAdjustmentRepository.Add); transformerDatabaseReader.TimeZones.ToList() .ForEach(timeZoneRepository.Add); }
public void Load(ITimeZoneRepository timeZoneRepository, IDaylightSavingsAdjustmentRepository daylightSavingsAdjustmentRepository) { string[] supportedIanaIds = _tzMapper.GetAvailableTZIDs(); foreach (DbTimeZone timeZone in timeZoneRepository.GetAll()) { if (supportedIanaIds.Any(ianaId => ianaId == timeZone.IanaId)) { TimeZoneInfo timeZoneInfo = _tzMapper.MapTZID(timeZone.IanaId); string microsoftId = timeZoneInfo.Id; timeZone.UpdateMicrosoftId(microsoftId); timeZoneRepository.Update(timeZone); } } }
public TimeZonesController(IUnitOfWork unitOfWork, ITimeZoneRepository repo, IRedisConnectionFactory cache) { _unitOfWork = unitOfWork; _timeZoneRepository = repo; _cache = cache; }
public DeleteTimeZonesByIdsCommandHandler(ITimeZoneRepository TimeZoneRepository) { _TimeZoneRepository = TimeZoneRepository; }
public GetBrandListQueryHandler(ITimeZoneRepository timeZoneRepository) { _timeZoneRepository = timeZoneRepository; }
public TranscriptService(IAvatarService avatarService, ITimeZoneRepository timeZoneRepository) { _avatarService = avatarService; _timeZoneRepository = timeZoneRepository; }
public void Load(ITimeZoneRepository timeZoneRepository, IDaylightSavingsAdjustmentRepository daylightSavingsAdjustmentRepository) { _tzDbLoader.Load(timeZoneRepository, daylightSavingsAdjustmentRepository); }
public ResellerGridController(ITimeZoneRepository timeZoneRepository) { _timeZoneRepository = timeZoneRepository; }
static TimeZoneService() { _repository = RepositoryFactory.GetRepository <ITimeZoneRepository, Guid, TimeZone>(); }
/// <summary> /// Initializes the Use Cases supported by the TimeZoneDb /// </summary> /// <param name="daylightSavingsAdjustmentRepository"></param> /// <param name="timeZoneDataSources"> /// Allows overriding the default data sources with <paramref name="timeZoneDataSources"/>. /// Note: If your sources are dependent on each other or have preference over each other, /// make sure the order in which they appear in <paramref name="timeZoneDataSources"/> /// is the order in which you want them to be loaded i.e. source at index 0 will load /// prior to source at index 1 /// </param> /// <param name="timeZoneRepository"></param> public TimeZoneDbUseCases(ITimeZoneRepository timeZoneRepository = null, IDaylightSavingsAdjustmentRepository daylightSavingsAdjustmentRepository = null, List <ITimeZoneDataSource> timeZoneDataSources = null) { _timeZoneRepository = timeZoneRepository ?? new InMemoryTimeZoneRepository(); _daylightSavingsAdjustmentRepository = daylightSavingsAdjustmentRepository ?? new InMemoryDaylightSavingsAdjustmentRepository(); Load(timeZoneDataSources); }
public AddOrUpdateTimeZoneCommandHandler(ITimeZoneRepository timeZoneRepository) { _timeZoneRepository = timeZoneRepository; }
static TimeZoneService() { _repository = RepositoryFactory.GetRepository<ITimeZoneRepository, Guid, TimeZone>(); }
public UpdateTimeZonesStatusByIdsCommandHandler(ITimeZoneRepository timeZoneRepository) { _timeZoneRepository = timeZoneRepository; }
public TimeZoneController(ITimeZoneRepository _repository) { this.repository = _repository; }
public DeleteTimeZoneCommandHandler(ITimeZoneRepository timeZoneRepository) { _timeZoneRepository = timeZoneRepository; }