public PersonCollectionPlainViewModel(PersonDAL business)
        {
            System.Diagnostics.Debug.WriteLine("Constructing PersonCollectionPlainViewModel.");

            _business = business;
            if (PropStoreServicesForThisApp.InDesignMode())
            {
                PersonCollection = new ObservableCollection <Person>();
            }
            else
            {
                PersonCollection = new ObservableCollection <Person>(business.Get());
            }
        }
Exemple #2
0
 protected override void Because_Of()
 {
     // This is run first, to get the database "fired up."
     dal        = new PersonDAL();
     personList = dal.Get(200).ToList();
 }