コード例 #1
0
 public MemberListItemViewModelInstancesTest()
 {
     for (int i = 0; i < 2; i++)
     {
         IPerson modelField = new Mock<IPerson>().Object;
         MemberListItemViewModel instance = new MemberListItemViewModel(modelField);
         instance.SetBackingField(MemberListItemViewModelMember.Model, modelField);
         ModelFields.Add(modelField);
         Instances.Add(instance);
     }
 }
コード例 #2
0
 public MemberListItemViewModelInstanceTest()
 {
     ModelField = new Mock<IPerson>().Object;
     Instance = new MemberListItemViewModel(ModelField);
     Instance.SetBackingField(MemberListItemViewModelMember.Model, ModelField);
 }