Skip to content

Instantly share code, notes, and snippets.

@FraukeN
Created June 2, 2018 11:16
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 FraukeN/fc45d6067a8cf18b9a60187098bb80ce to your computer and use it in GitHub Desktop.
Save FraukeN/fc45d6067a8cf18b9a60187098bb80ce to your computer and use it in GitHub Desktop.
OverviewVM with repo injection
public OverviewVM(IRepository<ToDoItem> toDoRepo)
{
_toDoRepo = toDoRepo ?? throw new ArgumentNullException("toDoRepo");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment