public CharactersController( ICharacterService characterService, IMapper mapper, ICharacterBackupService characterBackupService ) { _characterService = characterService; _mapper = mapper; _characterBackupService = characterBackupService; }
public void SetUp() { _characterService = Substitute.For <ICharacterService>(); _mapper = Substitute.For <IMapper>(); _characterBackupService = Substitute.For <ICharacterBackupService>(); _controller = new CharactersController( _characterService, _mapper, _characterBackupService ); _executionContext = new NaheulbookExecutionContext(); }