forked from Windos/BurntToast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(WindosGH-125) Make Header ID optional
Previously the Id parameter to New-BTHeader was mandatory however as it can be a generated unique string it doesn't have to be. This commit modifies the Id parameter so it is no longer mandatory and uses a GUID style string as the autogenerated Id if none is passed. GUIDs are used instead of, say, the title because they are guaranteed to be unique whereas using the title or date/time could cause notification Id collisions. This commit also adds a test to ensure that the function can be called without the -Id parameter and that it is actually generated, not left as null or an empty string.
- Loading branch information
1 parent
52115dc
commit 06f9119
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
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
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