예제 #1
0
 public ViewModelLocator()
 {
     _groupsRepository =
             new GroupsEFRepository();
     _groupsService = 
         new DefaultGroupsServise(_groupsRepository);
 }
예제 #2
0
        public MainViewModel(GroupsService groupsService)
        {
            if (groupsService == null) throw new ArgumentNullException("groupsService");

            this._groupsService = groupsService;
        }