ITestObserver.cs 789 B

12345678910111213141516171819202122
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Reactive;
  7. namespace Microsoft.Reactive.Testing
  8. {
  9. /// <summary>
  10. /// Observer that records received notification messages and timestamps those.
  11. /// </summary>
  12. /// <typeparam name="T">The type of the elements in the sequence.</typeparam>
  13. public interface ITestableObserver<T> : IObserver<T>
  14. {
  15. /// <summary>
  16. /// Gets recorded timestamped notification messages received by the observer.
  17. /// </summary>
  18. IList<Recorded<Notification<T>>> Messages { get; }
  19. }
  20. }