public void Constructor_populates_view_model_with_list_of_applications()
        {
            // setup
            var application1 = new ApplicationBuilder().WithName("A").WithDefaultTeam().Build();
            var application2 = new ApplicationBuilder().WithName("B").WithDefaultTeam().Build();

            // act
            var model = new ApplicationListViewModel(new List<Application>() { application1, application2 });

            // verify
            Assert.AreEqual(2, model.Applications.Count());
            Assert.AreEqual(application1.Id, model.Applications[0].Id);
            Assert.AreEqual(application2.Id, model.Applications[1].Id);
        }
 public ActionResult Index()
 {
     var viewModel = new ApplicationListViewModel();
     var applications = applicationRepository.GetAll().OrderBy(p => p.Name);
     return View(new ApplicationListViewModel(applications));
 }