Beispiel #1
0
        static void Main(string[] args)
        {
            var neededService  = new NeededService();
            var adaptedService = new AdapterService(neededService);

            var client = new Client(adaptedService);

            client.SomeAction();
        }
Beispiel #2
0
 public AdapterService(NeededService neededService)
 {
     this._neededService = neededService;
 }