11using NSubstitute . ExceptionExtensions ;
2- using Testably . Abstractions ;
32using WheelWizard . Shared ;
43using WheelWizard . WiiManagement . MiiManagement ;
54using WheelWizard . WiiManagement . MiiManagement . Domain . Mii ;
@@ -9,16 +8,14 @@ namespace WheelWizard.Test.Features
98 public class MiiDbServiceTests
109 {
1110 private readonly IMiiRepositoryService _repositoryService ;
12- private readonly IRandomSystem _randomSystemService ;
1311 private readonly MiiDbService _service ;
1412
1513 // --- Test Setup ---
1614
1715 public MiiDbServiceTests ( )
1816 {
1917 _repositoryService = Substitute . For < IMiiRepositoryService > ( ) ;
20- _randomSystemService = Substitute . For < IRandomSystem > ( ) ;
21- _service = new ( _repositoryService , _randomSystemService ) ;
18+ _service = new ( _repositoryService ) ;
2219 }
2320
2421 // --- Helper Methods ---
@@ -188,7 +185,7 @@ public void GetAllMiis_ShouldSkipInvalidBlocks_AndReturnOnlyValidMiis()
188185 Assert . True ( mii1Result . IsSuccess , "Setup Failed: Could not create valid Mii" ) ;
189186 var mii1Bytes = GetSerializedBytes ( mii1Result . Value ) ;
190187 var invalidBytesShort = new byte [ 10 ] ; // Invalid length
191- var invalidBytesNull = ( byte [ ] ) null ; // Null entry (if possible from repo)
188+ byte [ ] ? invalidBytesNull = null ; // Null entry (if possible from repo)
192189 // Simulate a block that's the right size but contains garbage data causing deserialization failure
193190 var potentiallyBadBytes = new byte [ MiiSerializer . MiiBlockSize ] ;
194191 _repositoryService . LoadAllBlocks ( ) . Returns ( [ invalidBytesShort , mii1Bytes , potentiallyBadBytes , invalidBytesNull ! ] ) ;
0 commit comments