Initial commit

This commit is contained in:
github-classroom[bot] 2025-02-25 16:59:47 +00:00 committed by GitHub
commit 67196c7395
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 4693 additions and 0 deletions

View file

@ -0,0 +1,19 @@
namespace PetsAndFleas;
/// <summary>
/// Provides the current time
/// </summary>
public sealed class DateTimeProvider
{
private DateTime? _overriddenDateTime;
/// <summary>
/// Gets the current time.
/// Can be set to a specific value which will then be returned in the future.
/// </summary>
public DateTime Now
{
get => _overriddenDateTime ?? DateTime.Now;
set => _overriddenDateTime = value;
}
}