mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-29 11:23:02 +02:00
added test for HistoryRepository.Grabbed()
This commit is contained in:
parent
ce49e29f1a
commit
37b19cb577
@ -41,5 +41,19 @@ namespace NzbDrone.Core.Test.HistoryTests
|
||||
|
||||
StoredModel.Data.Should().HaveCount(2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void grabbed_should_return_grabbed_items()
|
||||
{
|
||||
var history = Builder<History.History>
|
||||
.CreateListOfSize(5)
|
||||
.Random(3)
|
||||
.With(c => c.EventType = HistoryEventType.Grabbed)
|
||||
.BuildListOfNew();
|
||||
|
||||
Subject.InsertMany(history);
|
||||
|
||||
Subject.Grabbed().Should().HaveCount(3);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user