static void Main(string[] args)
        {
            var twoPinPlug     = new TwoPinPlug();
            var threePinSocket = new ThreePinSocket();
            var adapter        = new Adapter(threePinSocket);

            adapter.PlugIntoTwoPinSocket();
        }
Exemple #2
0
 public Adapter(ThreePinSocket threePinSocket)
 {
     _threePinSocket = threePinSocket;
 }