public BattlefieldFactory(ITeamFactory teamFactory, GroupingFactory groupingFactory, IMenuFactory menuFactory, IChanceService chanceService) { _teamFactory = teamFactory; _groupingFactory = groupingFactory; _menuFactory = menuFactory; _chanceService = chanceService; }
public void SetUp() { _chanceService = new MockChanceService(); _menuFactory = new MockMenuFactory(); _teamFactory = new TestTeamFactory(_chanceService, _menuFactory); _factory = new GroupingFactory(_chanceService, _teamFactory, new FighterFactory()); }
public void TearDown() { _chanceService = null; _output = null; _input = null; _battleManager = null; _config = null; _regionFactory = null; _regionManager = null; _groupingFactory = null; _teamFactory = null; _mapManager = null; _humanFighter1 = null; _humanFighter2 = null; _humanTeam = null; }
public void SetUp() { _chanceService = new MockChanceService(); _output = new MockOutput(); _input = new MockInput(); _battleManager = new TestBattleManager(_chanceService, _input, _output); _config = new SilentBattleConfiguration(); _battleManager.SetConfig(_config); _teamFactory = new TestTeamFactory(_chanceService); _mapManager = new MockMapManager(); _decisionManager = new MockDecisionManager(new GodRelationshipManager()); _regionFactory = new MockRegionFactory(_decisionManager); _groupingFactory = new GroupingFactory(_chanceService, _teamFactory, new FighterFactory()); _humanFighter1 = (TestHumanFighter)TestFighterFactory.GetFighter(TestFighterType.TestHuman, 1); _humanFighter2 = (TestHumanFighter)TestFighterFactory.GetFighter(TestFighterType.TestHuman, 1); _humanTeam = new Team(TestMenuManager.GetTestMenuManager(), _humanFighter1, _humanFighter2); _oneEnemyTeam = GetSingleEnemyTeam(); }
public void TearDown() { _factory = null; }