cleaned up scene mapping code.

This commit is contained in:
kay.one 2013-03-31 19:43:58 -07:00
commit 48880e4964
25 changed files with 222 additions and 319 deletions

View file

@ -12,12 +12,12 @@ namespace NzbDrone.Core.Test.Framework
return builder.With(c => c.Id = 0).Build();
}
public static List<T> BuildList<T>(this IOperable<T> builder) where T : ModelBase, new()
public static List<T> BuildList<T>(this IListBuilder<T> builder) where T : ModelBase, new()
{
return builder.Build().ToList();
}
public static List<T> BuildListOfNew<T>(this IOperable<T> builder) where T : ModelBase, new()
public static List<T> BuildListOfNew<T>(this IListBuilder<T> builder) where T : ModelBase, new()
{
return BuildList<T>(builder.All().With(c => c.Id = 0));
}