public void OneSubscription() { _configuration.Consumes(new FakeConsumer(_ => null)); var args = FakeBasicDeliverEventArgs(); var message = new FakeConsumedMessage(new Foo(), args); var subscriptions = _configuration.FindSubscriptions(message); Assert.Single(subscriptions); }
protected internal virtual Task <AggregateConsumingResult> ConsumeAsync(BasicDeliverEventArgs args) { var message = _builder.Build(args); return(message.ConsumeAsync(Configuration.FindSubscriptions(message))); }