コード例 #1
0
 //---------------------------------------------------------------------
 // Constructors
 //---------------------------------------------------------------------
 public ACEConverter(IPreparer pPreparer, IConverter pConverter)
 {
     m_preparer  = pPreparer;
     m_converter = pConverter;
 }
コード例 #2
0
 /// <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;
 }