Exemplo n.º 1
0
 public IObjectAssembler CreateSutForLoadingSpecificInstance(object instance)
 {
     var settings = new Settings { RootInstance = instance };
     var assembler = new ObjectAssembler(TypeRuntimeTypeSource, new TopDownValueContext(), settings);
     return assembler;
 }
        public IObjectAssembler CreateSutForLoadingSpecificInstance(object instance)
        {
            var topDownValueContext = new TopDownValueContext();
            var valueConnectionContext = new ValueContext(RuntimeTypeSource, topDownValueContext);

            var settings = new Settings { RootInstance = instance };

            var assembler = new ObjectAssembler(RuntimeTypeSource, valueConnectionContext, settings);
            return assembler;
        }