MediatorMock.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using MediatR;
  2. namespace Hotline.Tests.Mock;
  3. public class MediatorMock : IMediator
  4. {
  5. public IAsyncEnumerable<TResponse> CreateStream<TResponse>(IStreamRequest<TResponse> request, CancellationToken cancellationToken = default)
  6. {
  7. throw new NotImplementedException();
  8. }
  9. public IAsyncEnumerable<object?> CreateStream(object request, CancellationToken cancellationToken = default)
  10. {
  11. throw new NotImplementedException();
  12. }
  13. public Task Publish(object notification, CancellationToken cancellationToken = default)
  14. {
  15. throw new NotImplementedException();
  16. }
  17. public async Task Publish<TNotification>(TNotification notification, CancellationToken cancellationToken = default) where TNotification : INotification
  18. {
  19. }
  20. public Task<TResponse> Send<TResponse>(IRequest<TResponse> request, CancellationToken cancellationToken = default)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. public Task Send<TRequest>(TRequest request, CancellationToken cancellationToken = default) where TRequest : IRequest
  25. {
  26. throw new NotImplementedException();
  27. }
  28. public Task<object?> Send(object request, CancellationToken cancellationToken = default)
  29. {
  30. throw new NotImplementedException();
  31. }
  32. }