mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Replaced deprecated NBuilder calls.
This commit is contained in:
@@ -49,8 +49,8 @@ namespace NzbDrone.Core.Test.JobTests
|
||||
public void job_with_no_target_should_scan_all_series()
|
||||
{
|
||||
var series = Builder<Series>.CreateListOfSize(2)
|
||||
.TheFirst(1).Has(s => s.SeriesId = 12)
|
||||
.AndTheNext(1).Has(s => s.SeriesId = 15)
|
||||
.TheFirst(1).With(s => s.SeriesId = 12)
|
||||
.TheNext(1).With(s => s.SeriesId = 15)
|
||||
.Build();
|
||||
|
||||
var mocker = new AutoMoqer(MockBehavior.Strict);
|
||||
@@ -77,8 +77,8 @@ namespace NzbDrone.Core.Test.JobTests
|
||||
public void failed_scan_should_not_terminated_job()
|
||||
{
|
||||
var series = Builder<Series>.CreateListOfSize(2)
|
||||
.TheFirst(1).Has(s => s.SeriesId = 12)
|
||||
.AndTheNext(1).Has(s => s.SeriesId = 15)
|
||||
.TheFirst(1).With(s => s.SeriesId = 12)
|
||||
.TheNext(1).With(s => s.SeriesId = 15)
|
||||
.Build();
|
||||
|
||||
var mocker = new AutoMoqer(MockBehavior.Strict);
|
||||
@@ -106,8 +106,8 @@ namespace NzbDrone.Core.Test.JobTests
|
||||
public void job_with_no_target_should_scan_series_with_episodes()
|
||||
{
|
||||
var series = Builder<Series>.CreateListOfSize(2)
|
||||
.TheFirst(1).Has(s => s.SeriesId = 12)
|
||||
.AndTheNext(1).Has(s => s.SeriesId = 15)
|
||||
.TheFirst(1).With(s => s.SeriesId = 12)
|
||||
.TheNext(1).With(s => s.SeriesId = 15)
|
||||
.Build();
|
||||
|
||||
var mocker = new AutoMoqer(MockBehavior.Strict);
|
||||
|
Reference in New Issue
Block a user