Example #1
0
            public async Task CorrectPreferencesAreRetrieved()
            {
                IThreadSafePreferences prefs = Substitute.For <IThreadSafePreferences>();

                DataSource.Preferences.Current.Returns(Observable.Return(prefs));

                var result = await InteractorFactory.GetPreferences().Execute().FirstAsync();

                result.Should().Be(prefs);
            }