コード例 #1
0
 private TestViewModel(
     PropertyStub <string> property,
     TestRevalidationBehavior viewModelBehavior
     )
     : base(DescriptorStub
            .WithBehaviors(viewModelBehavior)
            .WithProperties(property)
            .Build()
            )
 {
     Property = property;
 }
コード例 #2
0
 private TestViewModel(
     TestRevalidationBehavior viewModelBehavior,
     TestRevalidationBehavior propertyBehavior
     )
     : this(
         PropertyStub.WithBehaviors(propertyBehavior).Of <string>(),
         viewModelBehavior
         )
 {
     ViewModelBehavior = viewModelBehavior;
     PropertyBehavior  = propertyBehavior;
 }