Код: Выделить всё
ValueTask BasicPublishAsync(string exchange, string routingKey,
bool mandatory, TProperties basicProperties, ReadOnlyMemory body,
CancellationToken cancellationToken = default)
where TProperties : IReadOnlyBasicProperties, IAmqpHeader;
Код: Выделить всё
mockRabbitModel.Setup(a => a.BasicPublishAsync(
It.IsAny() /*exchange*/,
It.IsAny() /*routingKey*/,
It.IsAny() /* mandatory*/,
// ??????,
It.Is(b =>
this.TestSentMessage(b, (expected, actual) =>
Assert.AreEqual(expected, actual.Command))),
It.IsAny()));
Подробнее здесь: https://stackoverflow.com/questions/791 ... ate-method