Skip to content

Commit

Permalink
Merge pull request #10 from JaloliddinDeveloper/users/JaloliddinDevel…
Browse files Browse the repository at this point in the history
…oper/broker-datetime

BROKERS: DateTimeBroker
  • Loading branch information
JaloliddinDeveloper authored May 29, 2024
2 parents e29c5ea + bdc7c41 commit 9c42209
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions UsefulTime.Api/Brokers/DateTimes/DateTimeBroker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//=================================================
//Copyright (c) Coalition of Good-Hearted Engineers
//Free To Use To Find Comfort and Pease
//=================================================
namespace UsefulTime.Api.Brokers.DateTimes
{
public class DateTimeBroker:IDateTimeBroker
{
public DateTimeOffset GetCurrentDateTimeOffset() =>
DateTimeOffset.UtcNow;
}
}
11 changes: 11 additions & 0 deletions UsefulTime.Api/Brokers/DateTimes/IDateTimeBroker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//=================================================
//Copyright (c) Coalition of Good-Hearted Engineers
//Free To Use To Find Comfort and Pease
//=================================================
namespace UsefulTime.Api.Brokers.DateTimes
{
public interface IDateTimeBroker
{
DateTimeOffset GetCurrentDateTimeOffset();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Moq;
using UsefulTime.Api.Models.VideoMetadatas;
using UsefulTime.Api.Models.VideoMetadatas.Exceptions;
using Xunit.Abstractions;

namespace UsefulTime.Unit.Tests.Services.Foundations.VideoMetadatas
{
Expand Down

0 comments on commit 9c42209

Please sign in to comment.