Example #1
0
        protected override async Task <IOutlookSynchronizer> InitializeOverride()
        {
            var synchronizerWithComponents = await TestComponentContainer.SynchronizerFactory.CreateSynchronizerWithComponents(Options, TestComponentContainer.GeneralOptions);

            var components = (AvailableContactSynchronizerComponents)synchronizerWithComponents.Item2;

            var synchronizer = synchronizerWithComponents.Item1;

            Components = components;
            Outlook    = EasyAccessRepositoryAdapter.Create(components.OutlookContactRepository, new SynchronizationContextFactory <ICardDavRepositoryLogger>(() => NullCardDavRepositoryLogger.Instance));
            Server     = EasyAccessRepositoryAdapter.Create(components.CardDavEntityRepository, new SynchronizationContextFactory <ICardDavRepositoryLogger> (() => NullCardDavRepositoryLogger.Instance));

            var distributionListSychronizationContextDummy = new DistributionListSychronizationContext(new CacheItem[0], new OutlookSession(TestComponentContainer.Application.Session), components.EntityRelationDataAccess, (Options.OutlookFolderEntryId, Options.OutlookFolderStoreId));

            if (components.OutlookDistListRepositoryOrNull != null)
            {
                OutlookDistListsOrNull = EasyAccessRepositoryAdapter.Create(components.OutlookDistListRepositoryOrNull, new SynchronizationContextFactory <DistributionListSychronizationContext> (() => distributionListSychronizationContextDummy));
            }
            if (components.SogoDistListRepositoryOrNull != null)
            {
                ServerSogoDistListsOrNull = EasyAccessRepositoryAdapter.Create(components.SogoDistListRepositoryOrNull, new SynchronizationContextFactory <DistributionListSychronizationContext> (() => distributionListSychronizationContextDummy));
            }
            if (components.VCardGroupRepositoryOrNull != null)
            {
                ServerVCardGroupsOrNull = EasyAccessRepositoryAdapter.Create(components.VCardGroupRepositoryOrNull, new SynchronizationContextFactory <DistributionListSychronizationContext> (() => distributionListSychronizationContextDummy));
            }

            return(synchronizer);
        }
Example #2
0
        protected override async Task <IOutlookSynchronizer> InitializeOverride()
        {
            var synchronizerWithComponents = await TestComponentContainer.SynchronizerFactory.CreateSynchronizerWithComponents(Options, TestComponentContainer.GeneralOptions);

            var components = (AvailableGoogleContactSynchronizerSynchronizerComponents)synchronizerWithComponents.Item2;

            var synchronizer = synchronizerWithComponents.Item1;

            Components = components;
            Outlook    = EasyAccessRepositoryAdapter.Create(components.OutlookContactRepository, new SynchronizationContextFactory <IGoogleContactContext>(() => NullGoogleContactContext.Instance));
            Server     = EasyAccessRepositoryAdapter.Create(components.GoogleContactRepository, components.GoogleContactRepository, components.GoogleContactContextFactory);
            return(synchronizer);
        }
Example #3
0
        protected override async Task <IOutlookSynchronizer> InitializeOverride()
        {
            var synchronizerWithComponents = await TestComponentContainer.SynchronizerFactory.CreateSynchronizerWithComponents(Options, TestComponentContainer.GeneralOptions);

            var components = (AvailableTaskSynchronizerComponents)synchronizerWithComponents.Item2;

            var synchronizer = synchronizerWithComponents.Item1;

            Components = components;
            Outlook    = EasyAccessRepositoryAdapter.Create(components.OutlookRepository, NullSynchronizationContextFactory.Instance);
            Server     = EasyAccessRepositoryAdapter.Create(components.CalDavRepository, NullSynchronizationContextFactory.Instance);
            return(synchronizer);
        }