private static void LoadNamesForTesting(HomeViewModel vm) { vm.Names.Add("John"); vm.Names.Add("Tanya"); vm.Names.Add("Nicholas"); vm.Names.Add("Abby"); }
private HomeViewModel LoadTestViewModelData() { var vm = new HomeViewModel(); LoadNamesForTesting(vm); if (Session["TestActions"] != null) vm.Actions = Session["TestActions"] as Dictionary<string,ActionResult>; return vm; }