1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Cleanup tabs

This commit is contained in:
Mark McDowall 2015-06-21 22:56:00 -07:00
parent c7f56c1091
commit a9ada8fcf1
7 changed files with 19 additions and 19 deletions

View File

@ -56,7 +56,7 @@ public void RemoveInstance()
}
catch(NotImplementedException)
{
// This happens on mono
// This happens on mono
}
}

View File

@ -22,7 +22,7 @@ public DelayProfileModule(IDelayProfileService delayProfileService, DelayProfile
DeleteResource = DeleteProfile;
SharedValidator.RuleFor(d => d.Tags).NotEmpty().When(d => d.Id != 1);
SharedValidator.RuleFor(d => d.Tags).EmptyCollection<DelayProfileResource, int>().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.UsenetDelay).GreaterThanOrEqualTo(0);
SharedValidator.RuleFor(d => d.TorrentDelay).GreaterThanOrEqualTo(0);

View File

@ -2,9 +2,9 @@
"result": "success",
"data": [
"73141",
"79886",
],
"73141",
"79886",
],
"message": ""
}

View File

@ -147,12 +147,12 @@ private RestClient GetMyPlexClient(string username, string password)
private RestRequest GetMyPlexRequest(string resource, Method method)
{
var request = new RestRequest(resource, method);
request.AddHeader("X-Plex-Platform", "Windows");
request.AddHeader("X-Plex-Platform-Version", "7");
request.AddHeader("X-Plex-Provides", "player");
request.AddHeader("X-Plex-Client-Identifier", "AB6CCCC7-5CF5-4523-826A-B969E0FFD8A0");
request.AddHeader("X-Plex-Device-Name", "Sonarr");
request.AddHeader("X-Plex-Product", "Sonarr");
request.AddHeader("X-Plex-Platform", "Windows");
request.AddHeader("X-Plex-Platform-Version", "7");
request.AddHeader("X-Plex-Provides", "player");
request.AddHeader("X-Plex-Client-Identifier", "AB6CCCC7-5CF5-4523-826A-B969E0FFD8A0");
request.AddHeader("X-Plex-Device-Name", "Sonarr");
request.AddHeader("X-Plex-Product", "Sonarr");
request.AddHeader("X-Plex-Version", BuildInfo.Version.ToString());
return request;

View File

@ -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}";
var errors = NamingConfig.InvalidPut(config);
errors.Should<dynamic>().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[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}";
var errors = NamingConfig.InvalidPut(config);
errors.Should<dynamic>().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[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}";
var errors = NamingConfig.InvalidPut(config);
errors.Should<dynamic>().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -98,7 +98,7 @@ public void should_not_require_format_when_rename_episodes_is_false()
config.DailyEpisodeFormat = "";
var errors = NamingConfig.InvalidPut(config);
errors.Should<dynamic>().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -110,7 +110,7 @@ public void should_require_format_when_rename_episodes_is_true()
config.DailyEpisodeFormat = "";
var errors = NamingConfig.InvalidPut(config);
errors.Should<dynamic>().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -121,7 +121,7 @@ public void should_get_bad_request_if_series_folder_format_does_not_contain_seri
config.SeriesFolderFormat = "This and That";
var errors = NamingConfig.InvalidPut(config);
errors.Should<dynamic>().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
}
}

View File

@ -50,7 +50,7 @@ public void invalid_path_should_return_bad_request()
};
var postResponse = RootFolders.InvalidPost(rootFolder);
postResponse.Should<dynamic>().NotBeEmpty();
postResponse.Should<dynamic>().NotBeEmpty();
}
}
}

View File

@ -23,7 +23,7 @@ public void series_lookup_on_tvdb()
public void add_series_without_required_fields_should_return_badrequest()
{
var errors = Series.InvalidPost(new SeriesResource());
errors.Should<dynamic>().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]