@@ -101,7 +101,7 @@ private async Task AddTestPersonAsync(string mothraId, string firstName = "Test"
101101 {
102102 if ( ! await _context . Persons . AnyAsync ( p => p . IdsMothraId == mothraId ) )
103103 {
104- await _context . Persons . AddAsync ( new Viper . Models . ClinicalScheduler . Person
104+ await _context . Persons . AddAsync ( new Person
105105 {
106106 IdsMothraId = mothraId ,
107107 PersonDisplayFullName = $ "{ lastName } , { firstName } ",
@@ -237,7 +237,7 @@ await _context.Services.AddAsync(new Service
237237 // Add Person entity for the instructor
238238 if ( ! await _context . Persons . AnyAsync ( p => p . IdsMothraId == "test123" ) )
239239 {
240- await _context . Persons . AddAsync ( new Models . ClinicalScheduler . Person
240+ await _context . Persons . AddAsync ( new Person
241241 {
242242 IdsMothraId = "test123" ,
243243 PersonDisplayFullName = "Test Instructor" ,
@@ -272,7 +272,7 @@ await _context.Persons.AddAsync(new Models.ClinicalScheduler.Person
272272 . Include ( s => s . Rotation )
273273 . Include ( s => s . Person )
274274 . FirstOrDefaultAsync ( s => s . InstructorScheduleId == savedSchedule . InstructorScheduleId ) ;
275- System . Console . WriteLine ( $ "Debug schedule found: { debugSchedule != null } , Rotation: { debugSchedule ? . Rotation ? . Name } , Person: { debugSchedule ? . Person ? . PersonDisplayFullName } ") ;
275+ Console . WriteLine ( $ "Debug schedule found: { debugSchedule != null } , Rotation: { debugSchedule ? . Rotation ? . Name } , Person: { debugSchedule ? . Person ? . PersonDisplayFullName } ") ;
276276
277277 // Act
278278 ( bool success , bool wasPrimaryEvaluator , string ? instructorName ) result = ( false , false , null ) ;
@@ -284,17 +284,17 @@ await _context.Persons.AddAsync(new Models.ClinicalScheduler.Person
284284 catch ( Exception ex )
285285 {
286286 caughtException = ex ;
287- System . Console . WriteLine ( $ "Exception caught: { ex . GetType ( ) . Name } : { ex . Message } ") ;
287+ Console . WriteLine ( $ "Exception caught: { ex . GetType ( ) . Name } : { ex . Message } ") ;
288288 }
289289
290290 // Debug: Check if schedule exists after calling service
291291 var scheduleExistsAfterCall = await _context . InstructorSchedules
292292 . AnyAsync ( s => s . InstructorScheduleId == savedSchedule . InstructorScheduleId ) ;
293- System . Console . WriteLine ( $ "Schedule exists after call: { scheduleExistsAfterCall } , ID: { savedSchedule . InstructorScheduleId } ") ;
294- System . Console . WriteLine ( $ "Result: success={ result . success } , wasPrimary={ result . wasPrimaryEvaluator } , name={ result . instructorName } ") ;
293+ Console . WriteLine ( $ "Schedule exists after call: { scheduleExistsAfterCall } , ID: { savedSchedule . InstructorScheduleId } ") ;
294+ Console . WriteLine ( $ "Result: success={ result . success } , wasPrimary={ result . wasPrimaryEvaluator } , name={ result . instructorName } ") ;
295295 if ( caughtException != null )
296296 {
297- System . Console . WriteLine ( $ "Exception: { caughtException } ") ;
297+ Console . WriteLine ( $ "Exception: { caughtException } ") ;
298298 }
299299
300300 // Assert
@@ -402,7 +402,7 @@ await _context.Services.AddAsync(new Service
402402 // Also add minimal Person for mothraId to allow Include query to work, but with minimal data to test graceful handling
403403 if ( ! await _context . Persons . AnyAsync ( p => p . IdsMothraId == "other456" ) )
404404 {
405- await _context . Persons . AddAsync ( new Models . ClinicalScheduler . Person
405+ await _context . Persons . AddAsync ( new Person
406406 {
407407 IdsMothraId = "other456" ,
408408 PersonDisplayFullName = "Other Person" ,
@@ -415,7 +415,7 @@ await _context.Persons.AddAsync(new Models.ClinicalScheduler.Person
415415 // Add minimal Person for unknown123 to allow Include query to work
416416 if ( ! await _context . Persons . AnyAsync ( p => p . IdsMothraId == mothraId ) )
417417 {
418- await _context . Persons . AddAsync ( new Models . ClinicalScheduler . Person
418+ await _context . Persons . AddAsync ( new Person
419419 {
420420 IdsMothraId = mothraId ,
421421 // Deliberately use empty strings to test graceful handling of missing name data
@@ -454,7 +454,7 @@ await _context.Persons.AddAsync(new Models.ClinicalScheduler.Person
454454 . Include ( s => s . Rotation )
455455 . Include ( s => s . Person )
456456 . FirstOrDefaultAsync ( s => s . InstructorScheduleId == savedPrimarySchedule . InstructorScheduleId ) ;
457- System . Console . WriteLine ( $ "Debug schedule found: { debugSchedule != null } , Rotation: { debugSchedule ? . Rotation ? . Name } , Person: { debugSchedule ? . Person ? . PersonDisplayFullName } ") ;
457+ Console . WriteLine ( $ "Debug schedule found: { debugSchedule != null } , Rotation: { debugSchedule ? . Rotation ? . Name } , Person: { debugSchedule ? . Person ? . PersonDisplayFullName } ") ;
458458
459459 // Act
460460 ( bool success , bool wasPrimaryEvaluator , string ? instructorName ) result = ( false , false , null ) ;
@@ -466,13 +466,13 @@ await _context.Persons.AddAsync(new Models.ClinicalScheduler.Person
466466 catch ( Exception ex )
467467 {
468468 caughtException = ex ;
469- System . Console . WriteLine ( $ "Exception caught: { ex . GetType ( ) . Name } : { ex . Message } ") ;
469+ Console . WriteLine ( $ "Exception caught: { ex . GetType ( ) . Name } : { ex . Message } ") ;
470470 }
471471
472- System . Console . WriteLine ( $ "Result: success={ result . success } , wasPrimary={ result . wasPrimaryEvaluator } , name={ result . instructorName } ") ;
472+ Console . WriteLine ( $ "Result: success={ result . success } , wasPrimary={ result . wasPrimaryEvaluator } , name={ result . instructorName } ") ;
473473 if ( caughtException != null )
474474 {
475- System . Console . WriteLine ( $ "Exception: { caughtException } ") ;
475+ Console . WriteLine ( $ "Exception: { caughtException } ") ;
476476 }
477477
478478 // Assert
@@ -653,7 +653,7 @@ public async Task SetPrimaryEvaluatorAsync_ReplacingPrimaryEvaluator_DoesNotSend
653653 // Add the current user person - need to manually set the display name to match expected output
654654 if ( ! await _context . Persons . AnyAsync ( p => p . IdsMothraId == "currentuser" ) )
655655 {
656- await _context . Persons . AddAsync ( new Viper . Models . ClinicalScheduler . Person
656+ await _context . Persons . AddAsync ( new Person
657657 {
658658 IdsMothraId = "currentuser" ,
659659 PersonDisplayFullName = "Current User" , // Set exact display name expected in test
@@ -722,7 +722,7 @@ public async Task AddInstructorAsync_AsPrimaryEvaluator_DoesNotSendReplacementEm
722722 // Add the current user person - need to manually set the display name to match expected output
723723 if ( ! await _context . Persons . AnyAsync ( p => p . IdsMothraId == "currentuser" ) )
724724 {
725- await _context . Persons . AddAsync ( new Viper . Models . ClinicalScheduler . Person
725+ await _context . Persons . AddAsync ( new Person
726726 {
727727 IdsMothraId = "currentuser" ,
728728 PersonDisplayFullName = "Current User" , // Set exact display name expected in test
@@ -789,7 +789,7 @@ public async Task SetPrimaryEvaluatorAsync_UnsettingPrimaryEvaluator_SendsRemova
789789 // Add the current user person - need to manually set the display name to match expected output
790790 if ( ! await _context . Persons . AnyAsync ( p => p . IdsMothraId == "currentuser" ) )
791791 {
792- await _context . Persons . AddAsync ( new Viper . Models . ClinicalScheduler . Person
792+ await _context . Persons . AddAsync ( new Person
793793 {
794794 IdsMothraId = "currentuser" ,
795795 PersonDisplayFullName = "Current User" , // Set exact display name expected in test
0 commit comments