public ProgressLoader(IHttpContextAccessor httpContextAccessor, IOutputHandler outputhandler, ICharacterClassDataAccess characterClassDataAccess, IAbilityDataAccess abilityDataAccess) { _httpContextAccessor = httpContextAccessor; _outputHandler = outputhandler; _characterClassDataAccess = characterClassDataAccess; _abilityDataAccess = abilityDataAccess; }
// Here i construct the inputhandler and give it the outputhandler so that outputhandler does not rely on the inputhandler, but the inputhandler does need the outputhandler interface. This is because the outputhandler is at a higher level. public InputHandler( IOutputHandler outputhandler, IHttpContextAccessor httpContextAccessor, IAbilityDataAccess abilityDataAccess, ICharacterClassDataAccess characterClassDataAccess, ICharacterDataAccess characterDataAccess, ICombatState combatState) { _httpContextAccessor = httpContextAccessor; _outputHandler = outputhandler; _abilityDataAccess = abilityDataAccess; _characterClassDataAccess = characterClassDataAccess; _characterDataAccess = characterDataAccess; _combatState = combatState; }
public CharacterDataAccess(IFactory <SqlConnection> connectionFactory, ICharacterClassDataAccess characterClassDataAccess) { _connectionFactory = connectionFactory; _characterClassDataAccess = characterClassDataAccess; }