public TogglDataSourceTest() { SyncManager.ProgressObservable.Returns(ProgressSubject.AsObservable()); DataSource = new TogglDataSource( Database, TimeService, AnalyticsService); }
protected override void AdditionalSetup() { base.AdditionalSetup(); var syncManager = Substitute.For <ISyncManager>(); syncManager.ProgressObservable.Returns(ProgressSubject.AsObservable()); DataSource.SyncManager.Returns(syncManager); }
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>()); }