mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Replaced deprecated NBuilder calls.
This commit is contained in:
parent
956092dbd4
commit
f52620db70
14 changed files with 114 additions and 113 deletions
|
@ -44,7 +44,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
|
||||
var episodes = Builder<Episode>.CreateListOfSize(10).Build();
|
||||
|
||||
var historyItems = Builder<History>.CreateListOfSize(10).TheFirst(5).With(h => h.SeriesId = seriesOne.SeriesId).WhereTheLast(5).With(h => h.SeriesId = seriesTwo.SeriesId).Build();
|
||||
var historyItems = Builder<History>.CreateListOfSize(10).TheFirst(5).With(h => h.SeriesId = seriesOne.SeriesId).TheLast(5).With(h => h.SeriesId = seriesTwo.SeriesId).Build();
|
||||
|
||||
var mocker = new AutoMoqer();
|
||||
var db = MockLib.GetEmptyDatabase();
|
||||
|
@ -95,7 +95,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
//Setup
|
||||
var historyItem = Builder<History>.CreateListOfSize(20)
|
||||
.TheFirst(10).With(c => c.Date = DateTime.Now)
|
||||
.AndTheNext(10).With(c => c.Date = DateTime.Now.AddDays(-31))
|
||||
.TheNext(10).With(c => c.Date = DateTime.Now.AddDays(-31))
|
||||
.Build();
|
||||
|
||||
var mocker = new AutoMoqer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue