diff --git a/src/Splat.SimpleInjector.Tests/View.cs b/src/Splat.SimpleInjector.Tests/View.cs
index f459dab39..ab41d5f73 100644
--- a/src/Splat.SimpleInjector.Tests/View.cs
+++ b/src/Splat.SimpleInjector.Tests/View.cs
@@ -13,6 +13,14 @@ namespace Splat.Simplnjector
///
public class View : IViewFor
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public View()
+ {
+ this.Bind(ViewModel, x => x.Text, x => x.Text);
+ }
+
///
object IViewFor.ViewModel
{
@@ -22,5 +30,10 @@ object IViewFor.ViewModel
///
public ViewModel ViewModel { get; set; }
+
+ ///
+ /// Gets or sets text. TextBox.Text for example.
+ ///
+ public string Text { get; set; }
}
}
diff --git a/src/Splat.SimpleInjector.Tests/ViewModel.cs b/src/Splat.SimpleInjector.Tests/ViewModel.cs
index faf70cad5..e54d0dfd7 100644
--- a/src/Splat.SimpleInjector.Tests/ViewModel.cs
+++ b/src/Splat.SimpleInjector.Tests/ViewModel.cs
@@ -3,12 +3,24 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
+using ReactiveUI;
+
namespace Splat.Simplnjector
{
///
/// View Model.
///
- public class ViewModel
+ public class ViewModel : ReactiveObject
{
+ private string _text;
+
+ ///
+ /// Gets or sets text.
+ ///
+ public string Text
+ {
+ get => _text;
+ set => this.RaiseAndSetIfChanged(ref _text, value);
+ }
}
}