Skip to content

Instantly share code, notes, and snippets.

@bpatra
Last active December 11, 2020 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bpatra/98227b2a4de6eb75c5045ba7e6e4b92d to your computer and use it in GitHub Desktop.
Save bpatra/98227b2a4de6eb75c5045ba7e6e4b92d to your computer and use it in GitHub Desktop.
public class DesignMainViewModel : IMainViewModel
{
public static IPerson fakePerson = new Person()
{
Name = "Raymond Domenech",
Age = 62,
Books = new IBook[0]
};
public static IPerson fakePerson2 = new Person()
{
Name = "Victor Hugo",
Age = 45,
Books = new IBook[0]
};
public IPerson SelectedPerson
{
get
{
return fakePerson;
}
set
{
throw new NotImplementedException();
}
}
public IList<IPerson> AvailablePersons
{
get {return new []{fakePerson, fakePerson2}; }
}
public ISummaryTabViewModel SummaryTabViewModel
{
get { return new DesignSummaryTabViewModel(); }
}
public IBooksWrittenTabViewModel BooksWrittenTabViewModel
{
get { return new DesignBooksWrittenTabViewModel(); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment