mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-22 22:10:35 +00:00
Fix ambiguous calls when compiling under mono
This commit is contained in:
parent
7d0ba9dd2b
commit
c7f56c1091
4 changed files with 10 additions and 10 deletions
|
@ -22,7 +22,7 @@ public DelayProfileModule(IDelayProfileService delayProfileService, DelayProfile
|
||||||
DeleteResource = DeleteProfile;
|
DeleteResource = DeleteProfile;
|
||||||
|
|
||||||
SharedValidator.RuleFor(d => d.Tags).NotEmpty().When(d => d.Id != 1);
|
SharedValidator.RuleFor(d => d.Tags).NotEmpty().When(d => d.Id != 1);
|
||||||
SharedValidator.RuleFor(d => d.Tags).EmptyCollection().When(d => d.Id == 1);
|
SharedValidator.RuleFor(d => d.Tags).EmptyCollection<DelayProfileResource, int>().When(d => d.Id == 1);
|
||||||
SharedValidator.RuleFor(d => d.Tags).SetValidator(tagInUseValidator);
|
SharedValidator.RuleFor(d => d.Tags).SetValidator(tagInUseValidator);
|
||||||
SharedValidator.RuleFor(d => d.UsenetDelay).GreaterThanOrEqualTo(0);
|
SharedValidator.RuleFor(d => d.UsenetDelay).GreaterThanOrEqualTo(0);
|
||||||
SharedValidator.RuleFor(d => d.TorrentDelay).GreaterThanOrEqualTo(0);
|
SharedValidator.RuleFor(d => d.TorrentDelay).GreaterThanOrEqualTo(0);
|
||||||
|
|
|
@ -47,7 +47,7 @@ public void should_get_bad_request_if_standard_format_is_empty()
|
||||||
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
|
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
|
||||||
|
|
||||||
var errors = NamingConfig.InvalidPut(config);
|
var errors = NamingConfig.InvalidPut(config);
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -60,7 +60,7 @@ public void should_get_bad_request_if_standard_format_doesnt_contain_season_and_
|
||||||
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
|
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
|
||||||
|
|
||||||
var errors = NamingConfig.InvalidPut(config);
|
var errors = NamingConfig.InvalidPut(config);
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -73,7 +73,7 @@ public void should_get_bad_request_if_daily_format_doesnt_contain_season_and_epi
|
||||||
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
|
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
|
||||||
|
|
||||||
var errors = NamingConfig.InvalidPut(config);
|
var errors = NamingConfig.InvalidPut(config);
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -86,7 +86,7 @@ public void should_get_bad_request_if_anime_format_doesnt_contain_season_and_epi
|
||||||
config.AnimeEpisodeFormat = "{Series Title} - {season} - {Episode Title}";
|
config.AnimeEpisodeFormat = "{Series Title} - {season} - {Episode Title}";
|
||||||
|
|
||||||
var errors = NamingConfig.InvalidPut(config);
|
var errors = NamingConfig.InvalidPut(config);
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -98,7 +98,7 @@ public void should_not_require_format_when_rename_episodes_is_false()
|
||||||
config.DailyEpisodeFormat = "";
|
config.DailyEpisodeFormat = "";
|
||||||
|
|
||||||
var errors = NamingConfig.InvalidPut(config);
|
var errors = NamingConfig.InvalidPut(config);
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -110,7 +110,7 @@ public void should_require_format_when_rename_episodes_is_true()
|
||||||
config.DailyEpisodeFormat = "";
|
config.DailyEpisodeFormat = "";
|
||||||
|
|
||||||
var errors = NamingConfig.InvalidPut(config);
|
var errors = NamingConfig.InvalidPut(config);
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -121,7 +121,7 @@ public void should_get_bad_request_if_series_folder_format_does_not_contain_seri
|
||||||
config.SeriesFolderFormat = "This and That";
|
config.SeriesFolderFormat = "This and That";
|
||||||
|
|
||||||
var errors = NamingConfig.InvalidPut(config);
|
var errors = NamingConfig.InvalidPut(config);
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -50,7 +50,7 @@ public void invalid_path_should_return_bad_request()
|
||||||
};
|
};
|
||||||
|
|
||||||
var postResponse = RootFolders.InvalidPost(rootFolder);
|
var postResponse = RootFolders.InvalidPost(rootFolder);
|
||||||
postResponse.Should().NotBeEmpty();
|
postResponse.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -23,7 +23,7 @@ public void series_lookup_on_tvdb()
|
||||||
public void add_series_without_required_fields_should_return_badrequest()
|
public void add_series_without_required_fields_should_return_badrequest()
|
||||||
{
|
{
|
||||||
var errors = Series.InvalidPost(new SeriesResource());
|
var errors = Series.InvalidPost(new SeriesResource());
|
||||||
errors.Should().NotBeEmpty();
|
errors.Should<dynamic>().NotBeEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
Loading…
Reference in a new issue