Ejemplo n.º 1
0
 public TranscriptRequestService(ITranscriptRequestRepository transcriptRequestRepo, IInstitutionRepository institutionRepo, IAvatarService avatarService, ITimeZoneRepository timeZoneRepository)
 {
     _transcriptRequestRepo = transcriptRequestRepo;
     _institutionRepo       = institutionRepo;
     _avatarService         = avatarService;
     _timeZoneRepository    = timeZoneRepository;
 }
Ejemplo n.º 2
0
 public TimeZoneService(ICurrentUser currentUser, IDomainObjectFactory domainObjectFactory,
                        IEventAggregator eventAggregator, ITimeZoneRepository timeZoneRepository,
                        ILogService logService,
                        ITimeZonePropertyRepository timeZonePropertyRepository) : base(currentUser, domainObjectFactory, eventAggregator)
 {
     _timeZoneRepository         = timeZoneRepository;
     _timeZonePropertyRepository = timeZonePropertyRepository;
     _logService = logService;
 }
Ejemplo n.º 3
0
        public void Load(ITimeZoneRepository timeZoneRepository,
                         IDaylightSavingsAdjustmentRepository daylightSavingsAdjustmentRepository)
        {
            ITransformerDatabaseReader transformerDatabaseReader = _tzDbTransformer.Transform();

            transformerDatabaseReader.OffsetAdjustments.ToList()
            .ForEach(daylightSavingsAdjustmentRepository.Add);

            transformerDatabaseReader.TimeZones.ToList()
            .ForEach(timeZoneRepository.Add);
        }
Ejemplo n.º 4
0
 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);
         }
     }
 }
Ejemplo n.º 5
0
 public TimeZonesController(IUnitOfWork unitOfWork, ITimeZoneRepository repo, IRedisConnectionFactory cache)
 {
     _unitOfWork         = unitOfWork;
     _timeZoneRepository = repo;
     _cache = cache;
 }
Ejemplo n.º 6
0
 public DeleteTimeZonesByIdsCommandHandler(ITimeZoneRepository TimeZoneRepository)
 {
     _TimeZoneRepository = TimeZoneRepository;
 }
Ejemplo n.º 7
0
 public GetBrandListQueryHandler(ITimeZoneRepository timeZoneRepository)
 {
     _timeZoneRepository = timeZoneRepository;
 }
Ejemplo n.º 8
0
 public TranscriptService(IAvatarService avatarService, ITimeZoneRepository timeZoneRepository)
 {
     _avatarService      = avatarService;
     _timeZoneRepository = timeZoneRepository;
 }
Ejemplo n.º 9
0
 public void Load(ITimeZoneRepository timeZoneRepository, IDaylightSavingsAdjustmentRepository daylightSavingsAdjustmentRepository)
 {
     _tzDbLoader.Load(timeZoneRepository, daylightSavingsAdjustmentRepository);
 }
Ejemplo n.º 10
0
 public ResellerGridController(ITimeZoneRepository timeZoneRepository)
 {
     _timeZoneRepository = timeZoneRepository;
 }
Ejemplo n.º 11
0
 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;
 }
Ejemplo n.º 14
0
 static TimeZoneService()
 {
     _repository = RepositoryFactory.GetRepository<ITimeZoneRepository, Guid, TimeZone>();
 }
Ejemplo n.º 15
0
 public UpdateTimeZonesStatusByIdsCommandHandler(ITimeZoneRepository timeZoneRepository)
 {
     _timeZoneRepository = timeZoneRepository;
 }
Ejemplo n.º 16
0
 public TimeZoneController(ITimeZoneRepository _repository)
 {
     this.repository = _repository;
 }
Ejemplo n.º 17
0
 public DeleteTimeZoneCommandHandler(ITimeZoneRepository timeZoneRepository)
 {
     _timeZoneRepository = timeZoneRepository;
 }