-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Heard Island and McDonald Islands - Add HolidayProvider
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/Nager.Date/HolidayProviders/HeardIslandAndMcDonaldIslandsHolidayProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Nager.Date.Models; | ||
using System.Collections.Generic; | ||
|
||
namespace Nager.Date.HolidayProviders | ||
{ | ||
/// <summary> | ||
/// Heard Island and McDonald Islands HolidayProvider | ||
/// </summary> | ||
internal sealed class HeardIslandAndMcDonaldIslandsHolidayProvider : AbstractHolidayProvider | ||
{ | ||
/// <summary> | ||
/// Heard Island and McDonald Islands HolidayProvider | ||
/// </summary> | ||
public HeardIslandAndMcDonaldIslandsHolidayProvider() : base(CountryCode.HM) | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(int year) | ||
{ | ||
/* | ||
* Heard Island and McDonald Islands has no population therefore no official holidays. | ||
*/ | ||
|
||
var holidaySpecifications = new List<HolidaySpecification>(); | ||
return holidaySpecifications; | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override IEnumerable<string> GetSources() | ||
{ | ||
return | ||
[ | ||
"https://en.wikipedia.org/wiki/Heard_Island_and_McDonald_Islands" | ||
]; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters