コード例 #1
0
ファイル: Proxy.cs プロジェクト: fisenkodv/designpatterns
    public static void RunProxy()
    {
      IPayment checkPayment = new CheckProxy(12345678, "ICICI", "UNICEF");
      checkPayment.PayFund(2500);

      IPayment onlinePayment = new OnlineFundTransfer(12345678, "CITI", "My Mother");
      onlinePayment.PayFund(30000);
    }
コード例 #2
0
ファイル: Proxy.cs プロジェクト: PlumpMath/designpatterns-52
        public static void RunProxy()
        {
            IPayment checkPayment = new CheckProxy(12345678, "ICICI", "UNICEF");

            checkPayment.PayFund(2500);

            IPayment onlinePayment = new OnlineFundTransfer(12345678, "CITI", "My Mother");

            onlinePayment.PayFund(30000);
        }