public void IsPracticumRaisesPropertyChanged()
        {
            var viewModel = new CourseViewModel(new Course());
            string property = null;
            const bool expected = true;

            viewModel.PropertyChanged += (sender, args) =>
            {
                property = args.PropertyName;
            };

            viewModel.IsPracticum = expected;

            Assert.Equal("IsPracticum", property);
            Assert.True(viewModel.IsPracticum);
        }
        public void CourseIdRaisesPropertyChanged()
        {
            var viewModel = new CourseViewModel(new Course());
            string property = null;
            const string expected = "1234";

            viewModel.PropertyChanged += (sender, args) =>
            {
                property = args.PropertyName;
            };

            viewModel.CourseId = expected;

            Assert.Equal("CourseId", property);
            Assert.Equal(expected, viewModel.CourseId);
        }
 public void AddCourse()
 {
     Courses.Add(new CourseViewModel(new Course()));
     NotifyOfPropertyChange(() => Courses);
     CurrentItem = Courses.Last();
 }