ChangeTracking.Tests.IChangeTrackableTests.AsTrackable_When_Not_CollectionProperty_Children_Trackable_AcceptChanges_Should_Work C# (CSharp) Method

AsTrackable_When_Not_CollectionProperty_Children_Trackable_AcceptChanges_Should_Work() private method

        public void AsTrackable_When_Not_CollectionProperty_Children_Trackable_AcceptChanges_Should_Work()
        {
            var order = Helper.GetOrder();
            var trackable = order.AsTrackable(makeCollectionPropertiesTrackable: false);

            trackable.Id = 999;
            trackable.OrderDetails[0].OrderDetailId = 999;
            trackable.CastToIChangeTrackable().AcceptChanges();
            var intf = trackable.CastToIChangeTrackable();

            intf.GetOriginalValue(o => o.Id).Should().Be(999);
        }
IChangeTrackableTests