DummyObserver.cs 699 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. using System;
  3. namespace ReactiveTests.Dummies
  4. {
  5. class DummyObserver<T> : IObserver<T>
  6. {
  7. public static readonly DummyObserver<T> Instance = new DummyObserver<T>();
  8. DummyObserver()
  9. {
  10. }
  11. public void OnNext(T value)
  12. {
  13. throw new NotImplementedException();
  14. }
  15. public void OnError(Exception exception)
  16. {
  17. throw new NotImplementedException();
  18. }
  19. public void OnCompleted()
  20. {
  21. throw new NotImplementedException();
  22. }
  23. }
  24. }