@@ -246,43 +246,6 @@ public async Task MakeCorrespondenceAvailable()
246246 Assert . True ( respExt . Statuses . First ( ) . Ok ) ;
247247 }
248248
249- [ Fact ]
250- public async Task MakeCorrespondenceAvailable_SelfIdentfied_Rejected ( )
251- {
252- MigrateCorrespondenceExt migrateCorrespondenceExt = new MigrateCorrespondenceBuilder ( )
253- . CreateMigrateCorrespondence ( )
254- . WithRecipient ( _selfIdentifedPartyUuidUrn )
255- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Read , new DateTime ( 2024 , 1 , 6 , 11 , 10 , 21 ) )
256- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Read , new DateTime ( 2024 , 1 , 7 , 15 , 11 , 56 ) )
257- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Read , new DateTime ( 2024 , 1 , 8 , 14 , 19 , 22 ) )
258- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Confirmed , new DateTime ( 2024 , 1 , 8 , 14 , 20 , 5 ) )
259- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Archived , new DateTime ( 2024 , 1 , 9 , 10 , 50 , 17 ) )
260- . Build ( ) ;
261- SetNotificationHistory ( migrateCorrespondenceExt ) ;
262-
263- CorrespondenceMigrationStatusExt resultObj = await MigrateSingleCorrespondence ( migrateCorrespondenceExt ) ;
264- Assert . NotNull ( resultObj ) ;
265-
266- MakeCorrespondenceAvailableRequestExt request = new MakeCorrespondenceAvailableRequestExt ( )
267- {
268- CreateEvents = false ,
269- CorrespondenceIds = [ resultObj . CorrespondenceId ] ,
270- CorrespondenceId = resultObj . CorrespondenceId
271- } ;
272- var makeAvailableResponse = await _migrationClient . PostAsJsonAsync ( makeAvailableUrl , request ) ;
273- Assert . True ( makeAvailableResponse . IsSuccessStatusCode ) ;
274- MakeCorrespondenceAvailableResponseExt respExt = await makeAvailableResponse . Content . ReadFromJsonAsync < MakeCorrespondenceAvailableResponseExt > ( ) ;
275- Assert . NotNull ( respExt ) ;
276- Assert . NotNull ( respExt . Statuses ) ;
277- Assert . Equal ( 1 , respExt . Statuses . Count ) ;
278- Assert . Equal ( resultObj . CorrespondenceId , respExt . Statuses . First ( ) . CorrespondenceId ) ;
279- Assert . False ( respExt . Statuses . First ( ) . Ok ) ;
280-
281- // Verify that correspondence still has IsMigrating set to true, which means we cannot retrieve it through GetOverview.
282- var getCorrespondenceOverviewResponse = await _recipientClient . GetAsync ( $ "correspondence/api/v1/correspondence/{ resultObj . CorrespondenceId } /content") ;
283- Assert . False ( getCorrespondenceOverviewResponse . IsSuccessStatusCode ) ;
284- }
285-
286249 [ Fact ]
287250 public async Task MakeCorrespondenceAvailable_Defined ( )
288251 {
@@ -405,33 +368,6 @@ public async Task MakeCorrespondenceAvailable_SoftDeleted_OnCall()
405368 Assert . NotNull ( resultObj . DialogId ) ;
406369 }
407370
408- [ Fact ]
409- public async Task MakeCorrespondenceAvailable_OnCall_SelfIdentified_NotMadeAvailable ( )
410- {
411- MigrateCorrespondenceExt migrateCorrespondenceExt = new MigrateCorrespondenceBuilder ( )
412- . CreateMigrateCorrespondence ( )
413- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Read , new DateTime ( 2024 , 1 , 12 , 14 , 20 , 11 ) )
414- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Confirmed , new DateTime ( 2024 , 1 , 12 , 14 , 21 , 05 ) )
415- . WithStatusEvent ( MigrateCorrespondenceStatusExt . Archived , new DateTime ( 2024 , 1 , 22 , 09 , 55 , 20 ) )
416- . WithCreatedAt ( new DateTime ( 2024 , 1 , 1 , 03 , 09 , 21 ) )
417- . WithRecipient ( _selfIdentifedPartyUuidUrn )
418- . WithResourceId ( "skd-migratedcorrespondence-5229-1" )
419- . Build ( ) ;
420- SetNotificationHistory ( migrateCorrespondenceExt ) ;
421-
422- migrateCorrespondenceExt . MakeAvailable = true ;
423-
424- var initializeCorrespondenceResponse = await _migrationClient . PostAsJsonAsync ( migrateCorrespondenceUrl , migrateCorrespondenceExt ) ;
425- string result = await initializeCorrespondenceResponse . Content . ReadAsStringAsync ( ) ;
426- Assert . True ( initializeCorrespondenceResponse . IsSuccessStatusCode , result ) ;
427- CorrespondenceMigrationStatusExt resultObj = JsonConvert . DeserializeObject < CorrespondenceMigrationStatusExt > ( result ) ;
428- Assert . True ( String . IsNullOrEmpty ( resultObj . DialogId ) ) ;
429-
430- // Verify that correspondence has IsMigrating set to true, which means we cannot retrieve it through GetOverview.
431- var getCorrespondenceOverviewResponse = await _recipientClient . GetAsync ( $ "correspondence/api/v1/correspondence/{ resultObj . CorrespondenceId } /content") ;
432- Assert . False ( getCorrespondenceOverviewResponse . IsSuccessStatusCode ) ;
433- }
434-
435371 [ Fact ]
436372 public async Task MakeCorrespondenceAvailable_Multiple ( )
437373 {
0 commit comments