mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-27 22:57:09 -04:00
Reformat and apply Stylecop rules
This commit is contained in:
@@ -7,20 +7,22 @@ namespace NzbDrone.Core.Test.Framework
|
||||
{
|
||||
public static class NBuilderExtensions
|
||||
{
|
||||
public static T BuildNew<T>(this ISingleObjectBuilder<T> builder) where T : ModelBase, new()
|
||||
public static T BuildNew<T>(this ISingleObjectBuilder<T> builder)
|
||||
where T : ModelBase, new()
|
||||
{
|
||||
return builder.With(c => c.Id = 0).Build();
|
||||
}
|
||||
|
||||
public static List<T> BuildList<T>(this IListBuilder<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 IListBuilder<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));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user