mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 08:33:21 +00:00
added test for HistoryRepository.Grabbed()
This commit is contained in:
parent
d5cbd5dc33
commit
b055fc5ade
1 changed files with 14 additions and 0 deletions
|
@ -41,5 +41,19 @@ public void should_read_write_dictionary()
|
||||||
|
|
||||||
StoredModel.Data.Should().HaveCount(2);
|
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…
Reference in a new issue