Previous versions exposed a protected parameterless constructor:
This allowed creating lightweight test doubles by deriving from Player and overriding virtual members such as Name, Team, Health, etc.
The current constructor requires IOmpEntityProvider and IPlayer instances:
protected Player(IOmpEntityProvider entityProvider, IPlayer player)
which makes it difficult to create fake Player implementations for unit tests without depending on runtime infrastructure.
Would it be possible to restore the parameterless constructor for testing scenarios?
Previous versions exposed a protected parameterless constructor:
This allowed creating lightweight test doubles by deriving from Player and overriding virtual members such as Name, Team, Health, etc.
The current constructor requires
IOmpEntityProviderandIPlayerinstances:which makes it difficult to create fake Player implementations for unit tests without depending on runtime infrastructure.
Would it be possible to restore the parameterless constructor for testing scenarios?