-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,28 @@ | ||
namespace Mathtone.MIST.Tests { | ||
|
||
|
||
[Notifier] | ||
[Notifier(NotificationMode.Implicit)] | ||
public class TestNotifier : NotifierBase { | ||
|
||
[Notify] | ||
public string SomeProperty { get; set; } | ||
[Notifier(NotificationMode.Implicit)] | ||
public class NestedClass : NotifierBase { | ||
public int Change1 { get; set; } | ||
|
||
[Notify("SomeProperty", "AllProperties")] | ||
public string AllProperties { get; set; } | ||
} | ||
public int Change2 { get; set; } | ||
} | ||
|
||
[Notifier(NotificationMode.Implicit)] | ||
public class TestNotifier2 : NotifierBase { | ||
public string Change1 { get; set; } | ||
|
||
public string SomeProperty { get; set; } | ||
public string Change2 { get; set; } | ||
|
||
[Notify("SomeProperty", "AllProperties")] | ||
public string AllProperties { get; set; } | ||
} | ||
public string ReadOnly => Change1 + Change2; | ||
|
||
[Notifier(NotificationMode.Implicit)] | ||
public class TestNotifier3 : NotifierBase { | ||
public NestedClass Nested { get; } = new NestedClass(); | ||
|
||
public string Property1 { get; set; } | ||
[SuppressNotify] | ||
public string ChangeNone { get; set; } | ||
|
||
public string Property2 { get { return Property1; } } | ||
[Notify("Change1","Change2","ReadOnly")] | ||
public string ChangeAll { get; set; } | ||
|
||
int property3; | ||
public int Property3 { | ||
get { return property3; } | ||
set { property3 = value; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters