private async void InitializeData() { var pluralsightDataStore = new MockPluralsightDataStore(); CourseList = await pluralsightDataStore.GetCoursesAsync(); // note the syntax using commas // The Note class does not even have a ctor, this must be // the way to use c# accessors to init and object }
async void InitializeData() { var pluralsightDataStore = new MockPluralsightDataStore(); CourseList = await pluralsightDataStore.GetCoursesAsync(); Note = new Note { Course = CourseList[0] }; }
private async void InitializeData() { var pluralsightDataStore = new MockPluralsightDataStore(); CourseList = await pluralsightDataStore.GetCoursesAsync(); Note = new Note { Heading = "Test note", Text = "Text for a test note", Course = CourseList[0] }; }