chore: code cleanup on solution

pull/47/head
Robert Dailey 3 years ago
parent 6eea15e4c4
commit 53b11e04c9

@ -32,7 +32,7 @@ namespace TrashLib.Tests.Radarr.CustomFormat
private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId) private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId)
{ {
return new(cfName, trashId, new JObject()) return new ProcessedCustomFormatData(cfName, trashId, new JObject())
{ {
CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId} CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId}
}; };

@ -16,7 +16,7 @@ namespace TrashLib.Tests.Radarr.CustomFormat.Processors.PersistenceSteps
{ {
private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId) private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId)
{ {
return new(cfName, trashId, new JObject()) return new ProcessedCustomFormatData(cfName, trashId, new JObject())
{ {
CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId} CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId}
}; };

@ -87,7 +87,7 @@ namespace TrashLib.Tests.Radarr
{ {
new() new()
{ {
Names = new List<string>{"required value"}, Names = new List<string> {"required value"},
QualityProfiles = new List<QualityProfileConfig> QualityProfiles = new List<QualityProfileConfig>
{ {
new() {Name = "required value"} new() {Name = "required value"}

@ -113,7 +113,7 @@ namespace TrashLib.Sonarr.ReleaseProfile
private static Regex BuildRegex(string regex) private static Regex BuildRegex(string regex)
{ {
return new(regex, RegexOptions.Compiled | RegexOptions.IgnoreCase); return new Regex(regex, RegexOptions.Compiled | RegexOptions.IgnoreCase);
} }
private Url BuildUrl(ReleaseProfileType profileName) private Url BuildUrl(ReleaseProfileType profileName)

Loading…
Cancel
Save