Upgraded to NBuilder 3.

This commit is contained in:
Keivan Beigi 2011-10-18 14:46:06 -07:00
commit 88b8c053fc
23 changed files with 343 additions and 352 deletions

View file

@ -45,9 +45,9 @@ namespace NzbDrone.Core.Test
public void SeasonSearch_partial_season_success()
{
var episodes = Builder<Episode>.CreateListOfSize(5)
.WhereAll()
.Have(e => e.SeriesId = 1)
.Have(e => e.SeasonNumber = 1)
.All()
.With(e => e.SeriesId = 1)
.With(e => e.SeasonNumber = 1)
.Build();
var mocker = new AutoMoqer(MockBehavior.Strict);
@ -78,10 +78,10 @@ namespace NzbDrone.Core.Test
public void SeasonSearch_partial_season_failure()
{
var episodes = Builder<Episode>.CreateListOfSize(5)
.WhereAll()
.Have(e => e.SeriesId = 1)
.Have(e => e.SeasonNumber = 1)
.Have(e => e.Ignored = false)
.All()
.With(e => e.SeriesId = 1)
.With(e => e.SeasonNumber = 1)
.With(e => e.Ignored = false)
.Build();
var mocker = new AutoMoqer(MockBehavior.Strict);