예제 #1
0
        public void Transport(PhysicalDistributionBase to, Baggage baggage)
        {
            var shippedBaggage = Ship(baggage);

            to.Receive(shippedBaggage);

            // たとえば配送の記録は必要だろうか
        }
예제 #2
0
        public void Transport(PhysicalDistributionBase from, PhysicalDistributionBase to, Baggage baggage)
        {
            var shippedBaggage = from.Ship(baggage);

            to.Receive(shippedBaggage);

            // 配送の記録を行う
        }
예제 #3
0
        public void Transport(PhysicalDistributionBase to, Baggage baggage)
        {
            var shippedBaggage = Ship(baggage);

            to.Receive(shippedBaggage);

            // 운송 기록 같은 것도 필요할 것이다
        }