예제 #1
0
 public RootVM()
     : base(ClassDescriptor)
 {
     WrapperPropertySource   = new List <ChildSource>();
     PopulatedPropertyResult = new List <ChildVM>();
     ValidatorResults        = new ValidatorMockConfigurationFluent();
 }
예제 #2
0
 public CustomerVM(bool useMockBehaviors, ValidatorMockConfigurationFluent results)
     : this(
         new RefreshControllerBehaviorMock(),
         useMockBehaviors)
 {
     Results = results;
 }
예제 #3
0
        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();
        }
예제 #4
0
 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;
 }
예제 #5
0
 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();
 }
예제 #7
0
 public GrandparentVM(ValidatorMockConfigurationFluent results)
     : base(ClassDescriptor)
 {
     Results = results;
 }
예제 #8
0
 public ChildVM(ValidatorMockConfigurationFluent results)
     : base(ClassDescriptor)
 {
     Results = results;
 }
예제 #9
0
 public void InitilaizeTest()
 {
     Results = new ValidatorMockConfigurationFluent();
 }