public Mayonnaise(EggYolk eggYolk, OliveOil oil) { if (eggYolk == null) { throw new ArgumentNullException("eggYolk"); } if (oil == null) { throw new ArgumentNullException("oil"); } this.eggYolk = eggYolk; this.oil = oil; }
public MayonnaiseAdapter( EggYolk yolk, OliveOil oil) { if (yolk == null) { throw new ArgumentNullException("yolk"); } if (oil == null) { throw new ArgumentNullException("oil"); } this.mayo = new Mayonnaise(yolk, oil); }
public EggYolkAdapter() { this.eggYolk = new EggYolk(); }
public MayonnaiseAdapter(EggYolk eggYolk, OliveOil oil) : base(eggYolk, oil) { }