public static IObjectBlockReader Reader() { var registry = new BindingRegistry(); registry.Add(new VersionConstraintConverter()); registry.Add(new GroupedDependencyConverter()); var services = new InMemoryServiceLocator(); var resolver = new ObjectResolver(services, registry, new NulloBindingLogger()); services.Add<IObjectResolver>(resolver); return new ObjectBlockReader(new ObjectBlockParser(), resolver, services, new RippleBlockRegistry()); }
public void can_write_out_binding_registry_description() { var bindingRegistry = new BindingRegistry(); bindingRegistry.Add(new FakeModelBinder()); var description = Description.For(bindingRegistry); var writer = new DescriptionTextWriter(description); Debug.WriteLine(writer.ToString()); }
public void SetUp() { var registry = new BindingRegistry(); registry.Add(new FakeModelBinder()); theDescription = Description.For(registry); }