// GET: CheckIn public ActionResult Index() { var model = new CheckInViewModel { BranchesViewList = new List <Branch>(branchesService.AllBranchesIncludingVirtual()) }; return(View(model)); }
public void RetrievesAllBranchesWithCheckedOutVirtualBranch() { context.Add(new Branch { Id = 2, Name = "A Branch" }); context.SaveChanges(); var all = branchesService.AllBranchesIncludingVirtual(); Assert.Equal(new List <string> { Branch.CheckedOutBranch.Name, "A Branch" }, all.Select(b => b.Name)); }