public void Setup() { serviceClient = new Mock <ITreasureHuntService>(); viewModel = new ViewHuntViewModel(serviceClient.Object); NewQuestion = newQuestion; myFakeHunt = new hunt(); myFakeHunt.HuntName = "My Fake Hunt"; myFakeQuestion = new question(); myFakeQuestion.Question1 = "This is my question"; myFakeQuestion.URL = "empty url"; returnedHunts.Add(myFakeHunt); returnedIds.Add(one); CurrentTreasureHunt = myFakeHunt; CurrentQuestion = myFakeQuestion; huntQuestions.Add(myFakeQuestion); Questions = huntQuestions.AsEnumerable(); }