DummyObserver.cs 794 B

1234567891011121314151617181920212223242526272829303132
  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. namespace ReactiveTests.Dummies
  6. {
  7. internal class DummyObserver<T> : IObserver<T>
  8. {
  9. public static readonly DummyObserver<T> Instance = new DummyObserver<T>();
  10. private DummyObserver()
  11. {
  12. }
  13. public void OnNext(T value)
  14. {
  15. throw new NotImplementedException();
  16. }
  17. public void OnError(Exception exception)
  18. {
  19. throw new NotImplementedException();
  20. }
  21. public void OnCompleted()
  22. {
  23. throw new NotImplementedException();
  24. }
  25. }
  26. }