Ejemplo n.º 1
0
 public TogglDataSourceTest()
 {
     SyncManager.ProgressObservable.Returns(ProgressSubject.AsObservable());
     DataSource = new TogglDataSource(
         Database,
         TimeService,
         AnalyticsService);
 }
Ejemplo n.º 2
0
            protected override void AdditionalSetup()
            {
                base.AdditionalSetup();

                var syncManager = Substitute.For <ISyncManager>();

                syncManager.ProgressObservable.Returns(ProgressSubject.AsObservable());
                DataSource.SyncManager.Returns(syncManager);
            }
Ejemplo n.º 3
0
            protected override void AdditionalSetup()
            {
                base.AdditionalSetup();

                var syncManager = Substitute.For <ISyncManager>();

                syncManager.ProgressObservable.Returns(ProgressSubject.AsObservable());
                DataSource.SyncManager.Returns(syncManager);

                RemoteConfigService
                .RatingViewConfiguration
                .Returns(Observable.Never <RatingViewConfiguration>());
            }