Exemplo n.º 1
0
 public TestableQbservable(Uri observableId, IList <Recorded <INotification <T> > > messages, IAsyncReactiveQbservable <T> inner, ITestReactivePlatformClient testClient)
 {
     _observableId    = observableId;
     ObserverMessages = messages;
     _inner           = inner;
     _testClient      = testClient;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Starts the test scheduler and uses the specified virtual time to dispose the subscription to the sequence obtained through
        /// the factory function. Scheduler is passed to the subscription using the provided operator context.
        /// Default virtual times are used for <see cref="ReactiveTest.Created">factory invocation</see> and <see cref="ReactiveTest.Subscribed">sequence subscription</see>.
        /// </summary>
        /// <typeparam name="T">The element type of the observable sequence being tested.</typeparam>
        /// <param name="client">The scheduler.</param>
        /// <param name="create">Factory method to create an observable sequence.</param>
        /// <param name="disposed">Virtual time at which to dispose the subscription.</param>
        /// <returns>
        /// Observer with timestamped recordings of notification messages that were received during the virtual time window when the subscription to the source sequence was active.
        /// </returns>
        public static ITestObserver <T> Start <T>(this ITestReactivePlatformClient client, Func <IAsyncReactiveQbservable <T> > create, long disposed)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            return(client.Start(create, ReactiveTest.Created, ReactiveTest.Subscribed, disposed));
        }