Beispiel #1
0
        public void TestAdapter()
        {
            var adapter = new CustomerAdapter(new ExternalCustomerStore());
            var client  = new CustomerManagement(adapter);

            var adaptedCustomers = client.DisplayCustomers();

            Assert.IsTrue(adaptedCustomers.Count() == 4);
            Assert.IsTrue(adaptedCustomers.First().Contains("adapted"));
        }