예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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 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);
        }
예제 #5
0
 public EggYolkAdapter()
 {
     this.eggYolk = new EggYolk();
 }
예제 #6
0
 public MayonnaiseAdapter(EggYolk eggYolk, OliveOil oil)
     : base(eggYolk, oil)
 {
 }
예제 #7
0
 public EggYolkAdapter()
 {
     this.eggYolk = new EggYolk();
 }