A user can now write /follows after they are either in their own user timeline, or a different author's timeline. It will then output a list using JSON, which outputs all the authors the user itself follows or the author itself follows (depending on the scenario). The endpoint is added in Program.cs
New methods
A new method in CheepService & AuthorRepository is added, which returns the authorsFollowed List of the author.
3 new integration tests
CheckGetFollowsWhenEmpty(): Checks if the list returned at the endpoint loads when there are no authors followed
CheckGetFollowsWhenFollowing(): Follows a test author, and checks if the test author is at the endpoint
CheckGetFollowsAfterUnfollowing(): Follows and then unfollows the same test author, and checks that the list does not contain the test author anymore
Things added for the pull request
New endpoint
A user can now write /follows after they are either in their own user timeline, or a different author's timeline. It will then output a list using JSON, which outputs all the authors the user itself follows or the author itself follows (depending on the scenario). The endpoint is added in Program.cs
New methods
A new method in CheepService & AuthorRepository is added, which returns the authorsFollowed List of the author.
3 new integration tests