mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
added file logging to services.
This commit is contained in:
parent
ad9a7fa6e4
commit
1d1c62d376
12 changed files with 100 additions and 28 deletions
|
@ -28,7 +28,7 @@ namespace NzbDrone.Common.Test
|
|||
const string badTitle = "Bad Title";
|
||||
|
||||
ReportingService.ReportParseError(badTitle);
|
||||
MockedRestProvider.Verify(p => p.PostData(It.Is<string>(c => c.ToLower().StartsWith("http://service.nzbdrone.com/")), It.Is<ParseErrorReport>(c => c.Title == badTitle)), Times.Once());
|
||||
MockedRestProvider.Verify(p => p.PostData(It.Is<string>(c => c.ToLower().StartsWith("http://services.nzbdrone.com/")), It.Is<ParseErrorReport>(c => c.Title == badTitle)), Times.Once());
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -64,5 +64,14 @@ namespace NzbDrone.Common.Test
|
|||
MockedRestProvider.Verify(p => p.PostData(It.IsAny<string>(), It.Is<ParseErrorReport>(c => c.Title == "title 2")), Times.Once());
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void report_parse_error()
|
||||
{
|
||||
ReportingService.RestProvider = new RestProvider(new EnviromentProvider());
|
||||
ReportingService.ReportParseError("Test error");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue