mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
Fix Blocklist Tests
This commit is contained in:
parent
12e360ab4f
commit
bb573594d9
1 changed files with 3 additions and 2 deletions
|
@ -81,8 +81,9 @@ public void should_delete_blocklists_by_movieId()
|
|||
|
||||
Subject.DeleteForMovies(new List<int> { _movie1.Id });
|
||||
|
||||
var removedMovieBlocklists = Subject.BlocklistedByMovie(_movie1.Id);
|
||||
var nonRemovedMovieBlocklists = Subject.BlocklistedByMovie(_movie2.Id);
|
||||
var blocklist = Subject.All();
|
||||
var removedMovieBlocklists = blocklist.Where(b => b.MovieId == _movie1.Id);
|
||||
var nonRemovedMovieBlocklists = blocklist.Where(b => b.MovieId == _movie2.Id);
|
||||
|
||||
removedMovieBlocklists.Should().HaveCount(0);
|
||||
nonRemovedMovieBlocklists.Should().HaveCount(1);
|
||||
|
|
Loading…
Reference in a new issue