public void WhenRequestingTheHyperlinksTheCurrentUserCanAccess(string moduleName) { dashboardService = new NavigationService(authorizationService, eTicketRepository, featureRepository); actualHyperlinks = dashboardService.ResolveNavigationHyperlinks(ApplicationModule.Parse(moduleName)); }
private static string ToMultilineText(NavigationHyperlinks hyperlinks) { var builder = new StringBuilder(); AppendSection(builder, "ApplicationSection", hyperlinks.ApplicationSection); AppendSection(builder, "UtilitiesSection", hyperlinks.UtilitiesSection); AppendSection(builder, "ReportsSection", hyperlinks.ReportsSection); return builder.ToString().Trim(Environment.NewLine.ToCharArray()); }