Skip to content

Feat/#211 #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 10, 2018
Merged

Feat/#211 #220

merged 5 commits into from
Jan 10, 2018

Conversation

shuebner
Copy link

@shuebner shuebner commented Jan 3, 2018

Closes #211

FEATURE

  • write tests that address the requirements outlined in the issue
  • fulfill the feature requirements

@shuebner
Copy link
Author

shuebner commented Jan 3, 2018

Alright. I will try to fix those test failures.

@shuebner
Copy link
Author

shuebner commented Jan 4, 2018

I added some unit tests and also took the liberty of simplifying the paging acceptance tests by reducing the amount of logic in the assert sections.

.ToListAsync())
.OrderBy(t => t.Id)
.ToList();
return await entities.PageForward(pageSize, pageNumber).ToListAsync();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you calling the ToListAsync() extension method over your own this.ToListAsync(/*...*/) ?

Copy link
Author

@shuebner shuebner Jan 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No particular reason. I thought, the extension methods are an implementation detail anyway. We can use the repo's own method if you like that better.

Copy link
Contributor

@jaredcnance jaredcnance Jan 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair, I suppose the query realization methods exposed here are really only required for the service layer's use. I'm fine with this.

@jaredcnance jaredcnance merged commit bea8c8a into json-api-dotnet:master Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants