Join Anton Delsink for an in-depth discussion in this video Implement Content.Like and .Share, part of Object Oriented Programming with C#.
- [Instructor] Now that we have…the initial version of our feed,…let's go back to our use cases…all the way at the top of the file,…so we are able to have a User create posts.…User can follow a User, and a User can view their feed…by requesting all the posts by Users they follow.…So let's make it a little bit more interesting…by adding Likes and Shares.…And so this would be very similar to what we've done before.…But two additional lists to keep track of,…which will then make the feed itself…somewhat more complicated.…So go to the bottom of the file.…
I'll copy and paste the whole of test method three.…Line 51 through 77, Control + C,…Control + V,…and I'll name it Test_004.…So we'll keep the same five users.…We'll the graph user one,…following users two, three, four and five.…We'll keep the two Posts,…but now let's add a Like on one of those Posts.…So after the two Posts are created…and after the two Posts are published,…let's ask content…to Like a Post.…
User one will Like post1.…And so we select the Like method there, Control + Dot,…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.