public IActionResult Index(DlsSubApplication dlsSubApplication)
        {
            var model = new ResourcesViewModel(
                dlsSubApplication,
                SupportPage.Resources,
                configuration.GetCurrentSystemBaseUrl(),
                resourcesService.GetAllResources()
                );

            return(View("Index", model));
        }
        public void GetAllResources_maps_downloads_to_resource_categories_correctly()
        {
            // Given
            var resources = Builder <Resource> .CreateListOfSize(10)
                            .TheFirst(3).With(d => d.Category = "Category 1")
                            .TheNext(5).With(d => d.Category  = "Category 2")
                            .TheRest().With(d => d.Category   = "Category 3")
                            .Build();

            A.CallTo(() => resourceDataService.GetAllResources()).Returns(resources);

            // When
            var result = resourcesService.GetAllResources().ToList();

            // Then
            using (new AssertionScope())
            {
                result.Count.Should().Be(3);
                result[0].Resources.Count().Should().Be(3);
                result[1].Resources.Count().Should().Be(5);
                result[2].Resources.Count().Should().Be(2);
            }
        }