Dotnet, Development, C Sharp Programming, Csharp, Microsoft.
DemoService { private readonly IDateTimeOffsetProvider _dateTimeOffsetProvider; public DemoService(IDateTimeOffsetProvider dateTimeOffsetProvider) { _dateTimeOffsetProvider = dateTimeOffsetProvider; } public string GetTimeOfDay() { var currentTime = _dateTimeOffsetProvider.UtcNow; var message =