protected SynchronizationManager BuildSynchronizationManager(string deviceId, IWorkbook workbook) { var manager = new SynchronizationManager(new TestPlatformService(), new Mock <ITrackingManager>().Object, "test", false); manager.RegisterProvider(SynchronizationService.ActiveSync, () => new ActiveSyncSynchronizationProvider(manager, this.cryptoService, deviceId)); manager.AttachWorkbook(workbook); manager.ActiveService = SynchronizationService.ActiveSync; workbook.Settings.SetValue(ExchangeSettings.ActiveSyncEmail, this.email); workbook.Settings.SetValue(ExchangeSettings.ActiveSyncPassword, this.cryptoService.Encrypt(this.password)); workbook.Settings.SetValue(ExchangeSettings.ActiveSyncServerUri, this.server); return(manager); }