MediatorMock.cs 1.4 KB

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