@@ -3,7 +3,6 @@ namespace MassTransit.Azure.ServiceBus.Core.Tests
33 using System ;
44 using System . Threading . Tasks ;
55 using Contracts . JobService ;
6- using global ::Azure ;
76 using JobConsumerTests ;
87 using Microsoft . Extensions . DependencyInjection ;
98 using NUnit . Framework ;
@@ -59,7 +58,7 @@ public async Task Should_cancel_the_job()
5958
6059 IRequestClient < SubmitJob < OddJob > > client = harness . GetRequestClient < SubmitJob < OddJob > > ( ) ;
6160
62- MassTransit . Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
61+ Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
6362 {
6463 JobId = jobId ,
6564 Job = new { Duration = TimeSpan . FromSeconds ( 10 ) }
@@ -93,7 +92,7 @@ public async Task Should_cancel_the_job_and_get_the_status()
9392
9493 IRequestClient < SubmitJob < OddJob > > client = harness . GetRequestClient < SubmitJob < OddJob > > ( ) ;
9594
96- MassTransit . Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
95+ Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
9796 {
9897 JobId = jobId ,
9998 Job = new { Duration = TimeSpan . FromSeconds ( 10 ) }
@@ -111,7 +110,7 @@ await Assert.MultipleAsync(async () =>
111110
112111 IRequestClient < GetJobState > stateClient = harness . GetRequestClient < GetJobState > ( ) ;
113112
114- MassTransit . Response < JobState > jobState = await stateClient . GetResponse < JobState > ( new { JobId = jobId } ) ;
113+ Response < JobState > jobState = await stateClient . GetResponse < JobState > ( new { JobId = jobId } ) ;
115114
116115 Assert . That ( jobState . Message . CurrentState , Is . EqualTo ( "Started" ) ) ;
117116
@@ -141,7 +140,7 @@ public async Task Should_cancel_the_job_and_retry_it()
141140
142141 IRequestClient < SubmitJob < OddJob > > client = harness . GetRequestClient < SubmitJob < OddJob > > ( ) ;
143142
144- MassTransit . Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
143+ Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
145144 {
146145 JobId = jobId ,
147146 Job = new { Duration = TimeSpan . FromSeconds ( 10 ) }
@@ -188,7 +187,7 @@ public async Task Should_cancel_the_job_while_waiting()
188187
189188 IRequestClient < SubmitJob < OddJob > > client = harness . GetRequestClient < SubmitJob < OddJob > > ( ) ;
190189
191- MassTransit . Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
190+ Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
192191 {
193192 JobId = previousJobId ,
194193 Job = new { Duration = TimeSpan . FromSeconds ( 10 ) }
@@ -232,7 +231,7 @@ public async Task Should_complete_the_job()
232231
233232 IRequestClient < SubmitJob < OddJob > > client = harness . GetRequestClient < SubmitJob < OddJob > > ( ) ;
234233
235- MassTransit . Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
234+ Response < JobSubmissionAccepted > response = await client . GetResponse < JobSubmissionAccepted > ( new
236235 {
237236 JobId = jobId ,
238237 Job = new { Duration = TimeSpan . FromSeconds ( 1 ) }
@@ -314,7 +313,11 @@ static ServiceProvider SetupServiceCollection()
314313
315314 x . AddJobSagaStateMachines ( ) ;
316315 x . SetJobConsumerOptions ( options => options . HeartbeatInterval = TimeSpan . FromSeconds ( 10 ) )
317- . Endpoint ( e => e . PrefetchCount = 100 ) ;
316+ . Endpoint ( e =>
317+ {
318+ e . Name = "Prefix-Instance" ;
319+ e . PrefetchCount = 100 ;
320+ } ) ;
318321
319322 x . UsingTestAzureServiceBus ( ) ;
320323 } )
0 commit comments