1
0

ITestObserver.cs 711 B

1234567891011121314151617181920
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Reactive;
  5. namespace Microsoft.Reactive.Testing
  6. {
  7. /// <summary>
  8. /// Observer that records received notification messages and timestamps those.
  9. /// </summary>
  10. /// <typeparam name="T">The type of the elements in the sequence.</typeparam>
  11. public interface ITestableObserver<T> : IObserver<T>
  12. {
  13. /// <summary>
  14. /// Gets recorded timestamped notification messages received by the observer.
  15. /// </summary>
  16. IList<Recorded<Notification<T>>> Messages { get; }
  17. }
  18. }