示例#1
0
        public void Change_tracking_strategy_can_be_changed()
        {
            var model = new Model();

            model.SetChangeTrackingStrategy(ChangeTrackingStrategy.ChangingAndChangedNotifications);
            Assert.Equal(ChangeTrackingStrategy.ChangingAndChangedNotifications, model.GetChangeTrackingStrategy());

            model.SetChangeTrackingStrategy(ChangeTrackingStrategy.ChangedNotifications);
            Assert.Equal(ChangeTrackingStrategy.ChangedNotifications, model.GetChangeTrackingStrategy());
        }