mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 15:52:42 +00:00
Fixed: Import List Tests
This commit is contained in:
parent
37d1ed4a48
commit
6c20832c7f
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ public void SetUp()
|
|||
|
||||
Mocker.GetMock<IImportListFactory>()
|
||||
.Setup(v => v.Get(It.IsAny<int>()))
|
||||
.Returns(new ImportListDefinition());
|
||||
.Returns(new ImportListDefinition{ ShouldMonitor = true });
|
||||
|
||||
Mocker.GetMock<IFetchAndParseImportList>()
|
||||
.Setup(v => v.Fetch())
|
||||
|
|
|
@ -62,9 +62,9 @@ public void should_be_able_to_monitor_artist_without_changing_albums()
|
|||
[Test]
|
||||
public void should_be_able_to_monitor_albums_when_passed_in_artist()
|
||||
{
|
||||
_artist.Albums.Add(_albums.First());
|
||||
var albumsToMonitor = new List<string>{_albums.First().ForeignAlbumId};
|
||||
|
||||
Subject.SetAlbumMonitoredStatus(_artist, new MonitoringOptions { Monitored = true });
|
||||
Subject.SetAlbumMonitoredStatus(_artist, new MonitoringOptions { Monitored = true, AlbumsToMonitor = albumsToMonitor });
|
||||
|
||||
Mocker.GetMock<IArtistService>()
|
||||
.Verify(v => v.UpdateArtist(It.IsAny<Artist>()), Times.Once());
|
||||
|
|
Loading…
Reference in a new issue