@@ -141,7 +141,7 @@ public async Task CreateDeleteAndTryRetrieveCharacterAsync_ShouldRemoveFromDatab
141141 existsBefore . Should ( ) . BeTrue ( ) ;
142142
143143 // Act - Delete
144- await _characterService . DeleteCharacterAsync ( createdCharacter . Id , createCommand . UserId ! . Value ) ;
144+ await _characterService . DeleteCharacterAsync ( createdCharacter . Id ) ;
145145
146146 // Assert - Should not exist
147147 var existsAfter = await _characterService . CharacterExistsAsync ( createdCharacter . Id ) ;
@@ -160,26 +160,24 @@ public async Task DeleteNonExistentCharacter_ShouldThrowNotFoundException()
160160 var nonExistentId = Guid . NewGuid ( ) ;
161161
162162 // Act & Assert
163- var userId = Guid . NewGuid ( ) ;
164163 await Assert . ThrowsAsync < NotFoundException > (
165- ( ) => _characterService . DeleteCharacterAsync ( nonExistentId , userId ) ) ;
164+ ( ) => _characterService . DeleteCharacterAsync ( nonExistentId ) ) ;
166165 }
167166
168167 [ Fact ]
169168 public async Task DeleteCharacterFromMultipleCharacters_ShouldOnlyDeleteSpecificCharacter ( )
170169 {
171170 // Arrange
172171 await _fixture . ClearDatabaseAsync ( ) ;
173- var command1 = TestDataBuilder . CreateCreateCharacterWithFieldsCommand ( "Character 1" ) ;
174- var command2 = TestDataBuilder . CreateCreateCharacterWithFieldsCommand ( "Character 2" ) ;
175- var command3 = TestDataBuilder . CreateCreateCharacterWithFieldsCommand ( "Character 3" ) ;
176-
177- var character1 = await _characterService . CreateCharacterWithFieldsAsync ( command1 ) ;
178- var character2 = await _characterService . CreateCharacterWithFieldsAsync ( command2 ) ;
179- var character3 = await _characterService . CreateCharacterWithFieldsAsync ( command3 ) ;
172+ var character1 = await _characterService . CreateCharacterWithFieldsAsync (
173+ TestDataBuilder . CreateCreateCharacterWithFieldsCommand ( "Character 1" ) ) ;
174+ var character2 = await _characterService . CreateCharacterWithFieldsAsync (
175+ TestDataBuilder . CreateCreateCharacterWithFieldsCommand ( "Character 2" ) ) ;
176+ var character3 = await _characterService . CreateCharacterWithFieldsAsync (
177+ TestDataBuilder . CreateCreateCharacterWithFieldsCommand ( "Character 3" ) ) ;
180178
181179 // Act - Delete middle character
182- await _characterService . DeleteCharacterAsync ( character2 . Id , command2 . UserId ! . Value ) ;
180+ await _characterService . DeleteCharacterAsync ( character2 . Id ) ;
183181
184182 // Assert
185183 var allCharacters = await _characterService . GetAllCharactersAsync ( ) ;
@@ -257,7 +255,7 @@ public async Task CompleteCharacterLifecycle_ShouldWorkCorrectly()
257255 retrievedAfterUpdate . Name . Should ( ) . Be ( "Updated Lifecycle Character" ) ;
258256
259257 // Delete
260- await _characterService . DeleteCharacterAsync ( createdCharacter . Id , createCommand . UserId ! . Value ) ;
258+ await _characterService . DeleteCharacterAsync ( createdCharacter . Id ) ;
261259
262260 // Verify deletion
263261 var existsAfterDelete = await _characterService . CharacterExistsAsync ( createdCharacter . Id ) ;
0 commit comments