public void SetUp() { _randomNumberGeneratorService = new RandomNumberGeneratorService(); _handMovementService = new HandMovementService(_randomNumberGeneratorService); _handsPlayFactory = new HandsPlayFactory(_handMovementService); _gamePlayerFactory = new GamePlayerFactory(); _handsPlayResolverService = new HandsPlayResolverService(); _gameOrchestrator = new GameOrchestrator(_gamePlayerFactory, _handsPlayFactory, _handsPlayResolverService); }
public void SetUp() { _handsPlayResolverService = new HandsPlayResolverService(); }
// Default constructor to enable Dependency Injection through here and for when we add an IoC container public GameOrchestrator(IGamePlayerFactory gamePlayerFactory, IHandsPlayFactory handsPlayFactory, IHandsPlayResolverService handsPlayResolverService) { _gamePlayerFactory = gamePlayerFactory; _handsPlayFactory = handsPlayFactory; _handsPlayResolverService = handsPlayResolverService; }