Fix ambiguous calls when compiling under mono

pull/4/head
Mark McDowall 10 years ago
parent 7d0ba9dd2b
commit c7f56c1091

@ -22,7 +22,7 @@ namespace NzbDrone.Api.Profiles.Delay
DeleteResource = DeleteProfile;
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.UsenetDelay).GreaterThanOrEqualTo(0);
SharedValidator.RuleFor(d => d.TorrentDelay).GreaterThanOrEqualTo(0);

@ -47,7 +47,7 @@ namespace NzbDrone.Integration.Test
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -60,7 +60,7 @@ namespace NzbDrone.Integration.Test
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -73,7 +73,7 @@ namespace NzbDrone.Integration.Test
config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -86,7 +86,7 @@ namespace NzbDrone.Integration.Test
config.AnimeEpisodeFormat = "{Series Title} - {season} - {Episode Title}";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -98,7 +98,7 @@ namespace NzbDrone.Integration.Test
config.DailyEpisodeFormat = "";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -110,7 +110,7 @@ namespace NzbDrone.Integration.Test
config.DailyEpisodeFormat = "";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
[Test]
@ -121,7 +121,7 @@ namespace NzbDrone.Integration.Test
config.SeriesFolderFormat = "This and That";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeEmpty();
errors.Should<dynamic>().NotBeEmpty();
}
}
}

@ -50,7 +50,7 @@ namespace NzbDrone.Integration.Test
};
var postResponse = RootFolders.InvalidPost(rootFolder);
postResponse.Should().NotBeEmpty();
postResponse.Should<dynamic>().NotBeEmpty();
}
}
}

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

Loading…
Cancel
Save