Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var twoPinPlug     = new TwoPinPlug();
            var threePinSocket = new ThreePinSocket();
            var adapter        = new Adapter(threePinSocket);

            adapter.PlugIntoTwoPinSocket();
        }
Exemplo n.º 2
0
 public Adapter(ThreePinSocket threePinSocket)
 {
     _threePinSocket = threePinSocket;
 }