bovender framework
C# framework that implements MVVM and more
ViewModelCollectionForTesting.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Collections.ObjectModel;
7 
8 namespace Bovender.UnitTests.Mvvm
9 {
10  class ViewModelCollectionForTesting : ViewModelCollection<TestModel, TestViewModel>
11  {
12  public ViewModelCollectionForTesting(ObservableCollection<TestModel> modelCollection)
13  : base(modelCollection)
14  {
15  }
16 
17  protected override TestViewModel CreateViewModel(TestModel model)
18  {
19  return new TestViewModel(model);
20  }
21  }
22 }
Collection of view models that automatically syncs with an associated collection of model objects...