Esempio n. 1
0
        public void SetUp()
        {
            _synchronizerFactory          = MockRepository.GenerateStub <ISynchronizerFactory>();
            _synchronizationProfileRunner = new SynchronizationProfileRunner(
                _synchronizerFactory,
                MockRepository.GenerateStub <ISynchronizationReportRepository>());

            var options = new Options();

            _stubSynchronizer = new StubSynchronizer();
            _synchronizerFactory.Expect(f => f.CreateSynchronizer(options)).Return(_stubSynchronizer);
            _synchronizationProfileRunner.UpdateOptions(options, false);
        }
        public async Task SetUp()
        {
            _synchronizerFactory          = MockRepository.GenerateStub <ISynchronizerFactory>();
            _synchronizationProfileRunner = new SynchronizationProfileRunner(
                _synchronizerFactory,
                MockRepository.GenerateStub <ISynchronizationReportSink>(),
                MockRepository.GenerateStub <IFolderChangeWatcherFactory> (),
                delegate { },
                MockRepository.GenerateStub <ISynchronizationRunLogger> ());

            var options        = new Options();
            var generalOptions = new GeneralOptions();

            _stubSynchronizer = new StubSynchronizer();
            _synchronizerFactory.Expect(f => f.CreateSynchronizer(options, generalOptions)).Return(Task.FromResult <IOutlookSynchronizer>(_stubSynchronizer));
            await _synchronizationProfileRunner.UpdateOptions(options, generalOptions);
        }