示例#1
0
        public void Setup()
        {
            Configuration = new VMDescriptorConfiguration(new BehaviorChainConfiguration());

            SourceObjectFactory = new VMPropertyBuilder <EmployeeVM, Employee>(
                PropertyPath.Create((EmployeeVM x) => x.SourcePerson),
                Configuration
                );

            RootFactory = new VMPropertyBuilder <EmployeeVM, EmployeeVM>(
                PropertyPath.Empty <EmployeeVM>(),
                Configuration
                );
        }
示例#2
0
 public void Setup()
 {
     Config  = new VMDescriptorConfiguration(new BehaviorChainConfiguration());
     Factory = new VMPropertyFactory <IViewModel, object>(Config, null);
 }