@@ -114,9 +114,9 @@ public async Task TestDeliveryOrderingWithSingleChannel()
114114 for ( int i = 0 ; i < Y ; i ++ )
115115 {
116116 IChannel ch = await _conn . CreateChannelAsync ( ) ;
117- QueueDeclareOk q = await ch . QueueDeclareAsync ( "" , durable : false , exclusive : true , autoDelete : true , arguments : null ) ;
117+ QueueDeclareOk q = await ch . QueueDeclareAsync ( QueueName . Empty , durable : false , exclusive : true , autoDelete : true , arguments : null ) ;
118118 var qname = new QueueName ( q . QueueName ) ;
119- await ch . QueueBindAsync ( queue : qname , exchange : _x , routingKey : "" ) ;
119+ await ch . QueueBindAsync ( queue : qname , exchange : _x , routingKey : RoutingKey . Empty ) ;
120120 _channels . Add ( ch ) ;
121121 _queues . Add ( q ) ;
122122 var cons = new CollectingConsumer ( ch ) ;
@@ -126,7 +126,7 @@ public async Task TestDeliveryOrderingWithSingleChannel()
126126
127127 for ( int i = 0 ; i < N ; i ++ )
128128 {
129- await _channel . BasicPublishAsync ( _x , "" , _encoding . GetBytes ( "msg" ) ) ;
129+ await _channel . BasicPublishAsync ( _x , RoutingKey . Empty , _encoding . GetBytes ( "msg" ) ) ;
130130 }
131131
132132 if ( IntegrationFixture . IsRunningInCI )
@@ -163,9 +163,9 @@ public async Task TestChannelShutdownDoesNotShutDownDispatcher()
163163 IChannel ch1 = await _conn . CreateChannelAsync ( ) ;
164164 IChannel ch2 = await _conn . CreateChannelAsync ( ) ;
165165
166- string q1 = ( await ch1 . QueueDeclareAsync ( ) ) . QueueName ;
167- string q2 = ( await ch2 . QueueDeclareAsync ( ) ) . QueueName ;
168- await ch2 . QueueBindAsync ( queue : q2 , exchange : _x , routingKey : "" ) ;
166+ QueueDeclareOk q1 = await ch1 . QueueDeclareAsync ( ) ;
167+ QueueDeclareOk q2 = await ch2 . QueueDeclareAsync ( ) ;
168+ await ch2 . QueueBindAsync ( queue : q2 , exchange : _x , routingKey : RoutingKey . Empty ) ;
169169
170170 var tcs = new TaskCompletionSource < bool > ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
171171 await ch1 . BasicConsumeAsync ( q1 , true , new EventingBasicConsumer ( ch1 ) ) ;
@@ -178,7 +178,7 @@ public async Task TestChannelShutdownDoesNotShutDownDispatcher()
178178 // closing this channel must not affect ch2
179179 await ch1 . CloseAsync ( ) ;
180180
181- await ch2 . BasicPublishAsync ( _x , "" , _encoding . GetBytes ( "msg" ) ) ;
181+ await ch2 . BasicPublishAsync ( _x , RoutingKey . Empty , _encoding . GetBytes ( "msg" ) ) ;
182182 await WaitAsync ( tcs , "received event" ) ;
183183 }
184184
@@ -210,7 +210,7 @@ public override void HandleChannelShutdown(object channel, ShutdownEventArgs rea
210210 [ Fact ]
211211 public async Task TestChannelShutdownHandler ( )
212212 {
213- string q = await _channel . QueueDeclareAsync ( ) ;
213+ QueueDeclareOk q = await _channel . QueueDeclareAsync ( ) ;
214214 var c = new ShutdownLatchConsumer ( ) ;
215215
216216 await _channel . BasicConsumeAsync ( queue : q , autoAck : true , consumer : c ) ;
0 commit comments