public ViewResult Details(DetailsViewModel model)
        {
            model.Institution = this.institutionRepository.Find(model.Id);
            model.UserProfiles = this.UserProfileRepository.Search(model.ToUserProfileFilter());
            model.BaseScoreCardStats = this.baseScoreCardRepository.CalculateStats(model.Institution);
            model.ValuationScoreCardStats = this.valuationScoreCardRepository.CalculateStats(model.Institution);

            return this.View(model);
        }
        public void ConstructorSetsSortDirectionToDescending()
        {
            // Arrange
            var indexViewModel = new DetailsViewModel();

            // Act

            // Assert
            Assert.Equal(SortDirection.Descending, indexViewModel.Sort);
        }
        public void ConstructorSetsSortByToNumberOfJournalScoreCards()
        {
            // Arrange
            var indexViewModel = new DetailsViewModel();

            // Act

            // Assert
            Assert.Equal(UserProfileSortMode.NumberOfBaseJournalScoreCards, indexViewModel.SortBy);
        }