Naming config fixed, with integration tests

This commit is contained in:
Mark McDowall 2013-08-27 17:16:24 -07:00
commit dd37713a10
7 changed files with 52 additions and 11 deletions

View file

@ -21,7 +21,6 @@ namespace NzbDrone.Api
PutValidator.RuleFor(r => r.Id).ValidId();
}
protected int GetNewId<TModel>(Func<TModel, TModel> function, TResource resource) where TModel : ModelBase, new()
{
var model = resource.InjectTo<TModel>();
@ -35,7 +34,6 @@ namespace NzbDrone.Api
return modelList.InjectTo<List<TResource>>();
}
protected PagingResource<TResource> ApplyToPage<TModel>(Func<PagingSpec<TModel>, PagingSpec<TModel>> function, PagingSpec<TModel> pagingSpec) where TModel : ModelBase, new()
{
pagingSpec = function(pagingSpec);