﻿using System;
using FactoryMode;

namespace Console
{
    class Program
    {
        static void Main(string[] args)
        {
            //顾客
            Client client = new Client { userID = new Guid(), postCode = "510000", address = "虚拟地址" };

            //工厂模式，根据邮政编码，就近选择发货仓库；
            StorageInterface _storeage = SendFactory.GetStorage(client.postCode);
            bool flat = _storeage.send(client);
            if (flat)
            { 
                //发货后的处理，例如跟踪物流等；
            }
        }
    }
}
