using System.Collections.Generic; namespace DotNetCore.CAP.Test.Helpers { public class TestMessageCollector { private readonly ICollection _handledMessages; public TestMessageCollector(ICollection handledMessages) { _handledMessages = handledMessages; } public void Add(object data) { _handledMessages.Add(data); } } }