21 _personService = personService;
30 public int MaleStartsCount => _personService.GetAllPersonStarts(onlyValidStarts:
true).Count(s => s.PersonObj?.Gender ==
Genders.Male);
40 public int FemaleStartsCount => _personService.GetAllPersonStarts(onlyValidStarts:
true).Count(s => s.PersonObj?.Gender ==
Genders.Female);
51 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderStartsMaleCount) { textPlaceholder.Add(placeholder,
MaleStartsCount.ToString()); }
52 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderStartsMalePercentage) { textPlaceholder.Add(placeholder,
MaleStartsPercentage.ToString(
"N1")); }
53 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderStartsFemaleCount) { textPlaceholder.Add(placeholder,
FemaleStartsCount.ToString()); }
54 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderStartsFemalePercentage) { textPlaceholder.Add(placeholder,
FemaleStartsPercentage.ToString(
"N1")); }
55 return textPlaceholder;
61 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_STARTS_MALE_COUNT,
62 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_STARTS_MALE_PERCENTAGE,
63 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_STARTS_FEMALE_COUNT,
64 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_STARTS_FEMALE_PERCENTAGE
double MaleStartsPercentage
Percentage of starts that are male.
List< string > SupportedDocumentPlaceholderKeys
List of all document placeholder keys that are supported by this analytics module....
bool AnalyticsAvailable
Flag indicating if the analytics module has data.
int MaleStartsCount
Number of starts that are male.
DocXPlaceholderHelper.TextPlaceholders CollectDocumentPlaceholderContents()
Collect the values for all document placeholders that are supported by this IAnalyticsModule....
int FemaleStartsCount
Number of starts that are female.
double FemaleStartsPercentage
Percentage of starts that are female.
AnalyticsModuleGenderStarts(IPersonService personService)
Constructor for the AnalyticsModuleGenderStarts
Class to hold text placeholders and their values.
Interface for an analytics module.
Interface for a service used to get and store a list of Person objects.
Genders
Available genders for a person.