//--------------------------------------------------------------------- // Constructors //--------------------------------------------------------------------- public ACEConverter(IPreparer pPreparer, IConverter pConverter) { m_preparer = pPreparer; m_converter = pConverter; }
/// <summary> /// Constructor. Any service required by class is passed in to avoid dependencies /// </summary> /// <param name="drinkFactory"> /// Factory which processes the drink's parameters /// </param> /// <param name="preparer"> /// Responsible for processing the drink /// </param> /// <param name="logger"> /// Responsible for IO /// </param> public AcuCafe(IDrinkFactory drinkFactory, IPreparer preparer, IOutputter logger) { DrinkFactory = drinkFactory; Preparer = preparer; Logger = logger; }