public RootVM() : base(ClassDescriptor) { WrapperPropertySource = new List <ChildSource>(); PopulatedPropertyResult = new List <ChildVM>(); ValidatorResults = new ValidatorMockConfigurationFluent(); }
public CustomerVM(bool useMockBehaviors, ValidatorMockConfigurationFluent results) : this( new RefreshControllerBehaviorMock(), useMockBehaviors) { Results = results; }
public void BaseSetup() { Results = new ValidatorMockConfigurationFluent(); var initialState = Results.GetState(); ChildDescriptor = ChildVM.ClassDescriptor; ItemDescriptor = ItemVM.ClassDescriptor; Item = new ItemVM(Results); Child = new ChildVM(Results); Parent = new ParentVM(Results); Grandparent = new GrandparentVM(Results); Child.GetValue(x => x.Items).Add(Item); Parent.SetValue(x => x.Child, Child); Grandparent.GetValue(x => x.Children).Add(Parent); initialState.RestoreToState(); }
public EmployeeVM( Action <IVMDependencyBuilder <EmployeeVM, EmployeeVMDescriptor> > dependencyConfigurationAction, ProjectVMDescriptor projectVMDescriptor, bool useMockBehaviors, ValidatorMockConfigurationFluent results, RefreshControllerBehaviorMock refreshControllerBehavior ) : base( CreateDescriptor( dependencyConfigurationAction, projectVMDescriptor, refreshControllerBehavior, useMockBehaviors ) ) { RefreshControllerBehaviorMock = refreshControllerBehavior; Results = results; }
public void BaseSetup() { Setup = new ValidatorMockConfigurationFluent(); List = new ListVM(Setup); ItemDescriptor = ItemVM.ClassDescriptor; }
public RootVM() : base(ClassDescriptor) { ValidationErrors = new Dictionary <IVMPropertyDescriptor, string>(); ValidatorResults = new ValidatorMockConfigurationFluent(); }
public GrandparentVM(ValidatorMockConfigurationFluent results) : base(ClassDescriptor) { Results = results; }
public ChildVM(ValidatorMockConfigurationFluent results) : base(ClassDescriptor) { Results = results; }
public void InitilaizeTest() { Results = new ValidatorMockConfigurationFluent(); }