public void TestConverter() { Registry registry = new Registry(); Strategy interceptor = new RegistryStrategy(registry); Persister persister = new Persister(interceptor); StringWriter writer = new StringWriter(); PetShop shop = new PetShop(); registry.bind(Dog.class, DogConverter.class)
//public List<Pet> GetPets() { // return list; //} public void TestCycle() { Registry registry = new Registry(); CycleStrategy inner = new CycleStrategy(); RegistryStrategy strategy = new RegistryStrategy(registry, inner); Persister persister = new Persister(strategy); PetBucket bucket = new PetBucket(); StringWriter writer = new StringWriter(); registry.bind(Cat.class, CatConverter.class);