public void GetDashboardInformationForCentre_returns_expected_model_with_correct_ticket_count(
            bool isCentreManager,
            int expectedTicketCount
            )
        {
            // Given
            const int delegateCount        = 100;
            const int adminCount           = 10;
            const int courseCount          = 50;
            const int ticketCountForAdmin  = 5;
            const int ticketCountForCentre = 10;
            const int centreRank           = 3;
            var       adminUser            = UserTestHelper.GetDefaultAdminUser(AdminId, isCentreManager: isCentreManager);

            GivenServicesReturnProvidedValues(
                adminUser,
                delegateCount,
                courseCount,
                adminCount,
                centreRank,
                ticketCountForAdmin,
                ticketCountForCentre
                );

            // When
            var result = dashboardInformationService.GetDashboardInformationForCentre(CentreId, AdminId);

            // Then
            var expectedModel = new CentreDashboardInformation(
                CentreTestHelper.GetDefaultCentre(CentreId),
                adminUser,
                delegateCount,
                courseCount,
                adminCount,
                expectedTicketCount,
                centreRank
                );

            result.Should().BeEquivalentTo(expectedModel);
        }
 public CentreDashboardViewModel(
     CentreDashboardInformation dashboardInformation,
     string userIpAddress,
     int unacknowledgedNotificationsCount
     )
 {
     CentreDetails = new DashboardCentreDetailsViewModel(
         dashboardInformation.Centre,
         userIpAddress,
         dashboardInformation.CentreRank
         );
     FirstName = string.IsNullOrWhiteSpace(dashboardInformation.FirstName)
         ? "User"
         : dashboardInformation.FirstName;
     CourseCategory              = dashboardInformation.CategoryName ?? "all";
     NumberOfDelegates           = dashboardInformation.DelegateCount;
     NumberOfCourses             = dashboardInformation.CourseCount;
     NumberOfAdmins              = dashboardInformation.AdminCount;
     NumberOfSupportTickets      = dashboardInformation.SupportTicketCount;
     ViewNotificationsButtonText = "View " + unacknowledgedNotificationsCount + " notification" +
                                   DisplayStringHelper.GetPluralitySuffix(unacknowledgedNotificationsCount);
 }