public void Z_BindParent() { AutoMapperHelpers ourHelper = new AutoMapperHelpers(); IPropBagMapperService autoMapperService = ourHelper.GetAutoMapperSetup_V1(); IPropFactory propFactory_V1 = ourHelper.GetNewPropFactory_V1(); ICreateWrapperTypes wrapperTypeCreator = ourHelper.GetWrapperTypeCreator_V1(); ViewModelFactoryInterface viewModelFactory = ourHelper.ViewModelFactory; //viewModelFactory.PropModelCache.Add(propModel5); _propModelCache = viewModelFactory.PropModelCache; Assert.That(ourHelper.StoreAccessCreator.AccessCounter == 0, "The Provider of PropStoreAccessServices has not had its Access Counter reset."); List <DestinationModel1> destinationList = new List <DestinationModel1>(); PropModelHelpers pmHelpers = new PropModelHelpers(); // Set up Child VM (Using Model 5) PropModelType propModel5 = pmHelpers.GetPropModelForModel5Dest(propFactory_V1, _propModelCache); DestinationModel5 testChildVM = new DestinationModel5(pm: propModel5, viewModelFactory: viewModelFactory, autoMapperService: autoMapperService, propFactory: propFactory_V1, fullClassName: "PropBagLib.Tests.PerformanceDb.DestinationModel5"); Business b = new Business(); testChildVM.SetIt(b, "Business"); testChildVM.RegisterBinding <Business>("Business", "../Business"); //List<Person> personList = b.Get().ToList(); //ObservableCollection<Person> personList2 = new ObservableCollection<Person>(personList); //testChildVM.SetIt(personList2, "PersonCollection"); // Set up MainVM (Using Model 6) PropModelType propModel6 = pmHelpers.GetPropModelForModel6Dest(propFactory_V1, _propModelCache); DestinationModel6 testMainVM = new DestinationModel6(propModel6, viewModelFactory, autoMapperService, propFactory_V1, null); Business b2 = new Business(); testMainVM.SetIt(b2, "Business"); testMainVM.SetIt <DestinationModel5>(testChildVM, "ChildVM"); testMainVM.RegisterBinding <Business>("Business", "./ChildVM/Business"); b2 = new Business(); testMainVM.SetIt(b2, "Business"); }
public DestinationModel6(DestinationModel6 copySource) : base(copySource) { }