Fix RandomFill Method. It fails because random for followers works bad. Sometimes one person follow another twice, that was the problem. Test still fail because thay are adapted to simple Fill method, so propose test mode option
Change some List collection to Set. It should speed up perfomance for Contain method when checking for likes, also with SortedSet it would sort users by nickname in next windows: Follow, Search
Make Get method of repository return not IEnumerrable, but IQueryable
Also I make some window to have static size
Fixes # (issues)
73 , #147
Opens # (issues)
131
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] My code builds clean without any errors or warnings
Description
Fix RandomFill Method. It fails because random for followers works bad. Sometimes one person follow another twice, that was the problem. Test still fail because thay are adapted to simple Fill method, so propose test mode option
Change some List collection to Set. It should speed up perfomance for Contain method when checking for likes, also with SortedSet it would sort users by nickname in next windows: Follow, Search
Make Get method of repository return not IEnumerrable, but IQueryable
Also I make some window to have static size
Fixes # (issues)
73 , #147
Opens # (issues)
131
Type of change
Checklist: