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.
 
 
 

19 lines
432 B

  1. using System.Collections.Generic;
  2. namespace DotNetCore.CAP.Test.Helpers
  3. {
  4. public class TestMessageCollector
  5. {
  6. private readonly ICollection<object> _handledMessages;
  7. public TestMessageCollector(ICollection<object> handledMessages)
  8. {
  9. _handledMessages = handledMessages;
  10. }
  11. public void Add(object data)
  12. {
  13. _handledMessages.Add(data);
  14. }
  15. }
  16. }