test: update SendingEmailPublisherTests to use new publisher builder API
Pass builder delegate to AddMessagingServicePublisher() calling cfg.AddRabbitMqConnectionFactory(RabbitMqTestConfig.Apply).
This commit is contained in:
@@ -24,7 +24,7 @@ public sealed class SendingEmailPublisherTests : IAsyncDisposable
|
||||
{
|
||||
var services = new ServiceCollection();
|
||||
services.AddLogging();
|
||||
services.AddMessagingServicePublisher(RabbitMqTestConfig.Apply);
|
||||
services.AddMessagingServicePublisher(cfg => cfg.AddRabbitMqConnectionFactory(RabbitMqTestConfig.Apply));
|
||||
|
||||
_serviceProvider = services.BuildServiceProvider();
|
||||
_publisher = _serviceProvider.GetRequiredService<ISendingEmailPublisher>();
|
||||
|
||||
Reference in New Issue
Block a user