You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
2.0 KiB

  1. //using System;
  2. //using System.Threading;
  3. //using System.Threading.Tasks;
  4. //using Cap.Consistency.Infrastructure;
  5. //using Cap.Consistency.Store;
  6. //using Microsoft.Extensions.DependencyInjection;
  7. //using Xunit;
  8. //namespace Cap.Consistency.Test
  9. //{
  10. // public class ConsistencyBuilderTest
  11. // {
  12. // [Fact]
  13. // public void CanOverrideMessageStore() {
  14. // var services = new ServiceCollection();
  15. // services.AddConsistency().AddMessageStore<MyUberThingy>();
  16. // var thingy = services.BuildServiceProvider().GetRequiredService<IConsistencyMessageStore>() as MyUberThingy;
  17. // Assert.NotNull(thingy);
  18. // }
  19. // private class MyUberThingy : IConsistencyMessageStore
  20. // {
  21. // public Task<OperateResult> CreateAsync(ConsistencyMessage message, CancellationToken cancellationToken) {
  22. // throw new NotImplementedException();
  23. // }
  24. // public Task<OperateResult> DeleteAsync(ConsistencyMessage message, CancellationToken cancellationToken) {
  25. // throw new NotImplementedException();
  26. // }
  27. // public void Dispose() {
  28. // throw new NotImplementedException();
  29. // }
  30. // public Task<ConsistencyMessage> FindByIdAsync(string messageId, CancellationToken cancellationToken) {
  31. // throw new NotImplementedException();
  32. // }
  33. // public Task<string> GeConsistencyMessageIdAsync(ConsistencyMessage message, CancellationToken cancellationToken) {
  34. // throw new NotImplementedException();
  35. // }
  36. // public Task<string> GetMessageIdAsync(ConsistencyMessage message, CancellationToken cancellationToken) {
  37. // throw new NotImplementedException();
  38. // }
  39. // public Task<OperateResult> UpdateAsync(ConsistencyMessage message, CancellationToken cancellationToken) {
  40. // throw new NotImplementedException();
  41. // }
  42. // }
  43. // }
  44. //}