public void Setup() { ItemDescriptor = DescriptorStub.Build(); Behavior = new ItemInitializerBehavior <IViewModel>(); SetupFixture(Behavior, new ItemDescriptorProviderBehavior(ItemDescriptor)); }
private TestViewModel( PropertyStub <string> property, TestRevalidationBehavior viewModelBehavior ) : base(DescriptorStub .WithBehaviors(viewModelBehavior) .WithProperties(property) .Build() ) { Property = property; }
public TestVM() { NextChangeHandler = new NextChangeHandlerBehavior(); Behavior = new CachingValidationResultAggregatorBehavior(); FirstProperty = PropertyStub .WithBehaviors(_firstPropertyResultProvider) .Of <object>(); SecondProperty = PropertyStub .WithBehaviors(_secondPropertyResultProvider) .Of <ViewModelStub>(); Descriptor = DescriptorStub .WithProperties(FirstProperty, SecondProperty) .WithBehaviors(Behavior, _viewModelResultProvider, NextChangeHandler) .Build(); }
public ChildVM(RefreshDetectorBehavior behavior) : base(DescriptorStub .WithBehaviors(behavior) .Build()) { }
private ChildVM(RevalidationBehaviorStub revalidationBehavior) : base(DescriptorStub.WithBehaviors(revalidationBehavior).Build()) { RevalidationBehavior = revalidationBehavior; }
public ItemVM() : base(DescriptorStub.WithBehaviors(new RefreshMock()).Build()) { }
private ViewModelWithValidatorExecutor(ValidatorExecutorBehavior behavior) : base(DescriptorStub.WithBehaviors(behavior).Build()) { Behavior = behavior; }
private ViewModelSpy(RevalidationSpy spy, string description) : base(DescriptorStub.WithBehaviors(spy).Build(), description) { _spy = spy; }