Exemple #1
0
        // GET: CheckIn
        public ActionResult Index()
        {
            var model = new CheckInViewModel
            {
                BranchesViewList = new List <Branch>(branchesService.AllBranchesIncludingVirtual())
            };

            return(View(model));
        }
Exemple #2
0
        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));
        }