Skip to content

Commit

Permalink
South Africa - Add Springboks Victory 2023 (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager authored Nov 10, 2023
1 parent 98a9363 commit 8f2f379
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Nager.Date/PublicHolidays/SouthAfricaProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,21 @@ public IEnumerable<PublicHoliday> GetHolidays(int year)
items.Add(new PublicHoliday(christmasDay, "Christmas Day", "Christmas Day", countryCode, 1910));
items.Add(new PublicHoliday(sanktStephensDay, "Day of Goodwill", "St. Stephen's Day", countryCode, 1910));

items.AddIfNotNull(this.SpringboksVictory(year, countryCode));

return items.OrderBy(o => o.Date);
}

private PublicHoliday SpringboksVictory(int year, CountryCode countryCode)
{
if (year == 2023)
{
return new PublicHoliday(year, 12, 15, "Springboks Victory", "Springboks Victory", countryCode);
}

return null;
}

///<inheritdoc/>
public IEnumerable<string> GetSources()
{
Expand Down

0 comments on commit 8f2f379

Please sign in to comment.