File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -470,6 +470,15 @@ public void Test_NotifyRecipients_WithObservableRecipientAttribute_WithClassLeve
470
470
471
471
[ TestMethod ]
472
472
public void Test_NotifyRecipients_WithInheritedObservableRecipientAttribute_WithClassLevelAttribute ( )
473
+ {
474
+ Test_NotifyRecipients_Test (
475
+ factory : static messenger => new BroadcastingViewModelWithInheritedClassLevelAttribute ( messenger ) ,
476
+ setter : static ( model , value ) => model . Name2 = value ,
477
+ propertyName : nameof ( BroadcastingViewModelWithInheritedClassLevelAttribute . Name2 ) ) ;
478
+ }
479
+
480
+ [ TestMethod ]
481
+ public void Test_NotifyRecipients_WithInheritedObservableRecipientAttributeAndClassLevelAttribute ( )
473
482
{
474
483
Test_NotifyRecipients_Test (
475
484
factory : static messenger => new BroadcastingViewModelWithInheritedAttributeAndClassLevelAttribute ( messenger ) ,
@@ -1203,6 +1212,17 @@ public BroadcastingViewModelWithClassLevelAttribute(IMessenger messenger)
1203
1212
private string ? name ;
1204
1213
}
1205
1214
1215
+ partial class BroadcastingViewModelWithInheritedClassLevelAttribute : BroadcastingViewModelWithClassLevelAttribute
1216
+ {
1217
+ public BroadcastingViewModelWithInheritedClassLevelAttribute ( IMessenger messenger )
1218
+ : base ( messenger )
1219
+ {
1220
+ }
1221
+
1222
+ [ ObservableProperty ]
1223
+ private string ? name2 ;
1224
+ }
1225
+
1206
1226
[ ObservableRecipient ]
1207
1227
[ NotifyRecipients ]
1208
1228
partial class BroadcastingViewModelWithAttributeAndClassLevelAttribute : ObservableObject
@@ -1211,7 +1231,7 @@ partial class BroadcastingViewModelWithAttributeAndClassLevelAttribute : Observa
1211
1231
private string ? name ;
1212
1232
}
1213
1233
1214
- partial class BroadcastingViewModelWithInheritedAttributeAndClassLevelAttribute : BroadcastingViewModelWithClassLevelAttribute
1234
+ partial class BroadcastingViewModelWithInheritedAttributeAndClassLevelAttribute : BroadcastingViewModelWithAttributeAndClassLevelAttribute
1215
1235
{
1216
1236
public BroadcastingViewModelWithInheritedAttributeAndClassLevelAttribute ( IMessenger messenger )
1217
1237
: base ( messenger )
You can’t perform that action at this time.
0 commit comments