mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Fix System Time Fixture
This commit is contained in:
parent
e75ee6e842
commit
d7edbb0cf0
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
@ -17,12 +17,12 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
Mocker.SetConstant<ISonarrCloudRequestBuilder>(new SonarrCloudRequestBuilder());
|
Mocker.SetConstant<ILidarrCloudRequestBuilder>(new LidarrCloudRequestBuilder());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GivenServerTime(DateTime dateTime)
|
private void GivenServerTime(DateTime dateTime)
|
||||||
{
|
{
|
||||||
var json = new ServiceTimeResponse {DateTimeUtc = dateTime}.ToJson();
|
var json = new ServiceTimeResponse { DateTimeUtc = dateTime }.ToJson();
|
||||||
|
|
||||||
Mocker.GetMock<IHttpClient>()
|
Mocker.GetMock<IHttpClient>()
|
||||||
.Setup(s => s.Execute(It.IsAny<HttpRequest>()))
|
.Setup(s => s.Execute(It.IsAny<HttpRequest>()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue