ChangeTracking.Tests.IChangeTrackableTests.AcceptChanges_Should_Status_Be_Unchanged C# (CSharp) Méthode

AcceptChanges_Should_Status_Be_Unchanged() private méthode

private AcceptChanges_Should_Status_Be_Unchanged ( ) : void
Résultat void
        public void AcceptChanges_Should_Status_Be_Unchanged()
        {
            var order = Helper.GetOrder();

            var trackable = order.AsTrackable();
            trackable.Id = 963;
            trackable.CustomerNumber = "Testing";
            var intf = trackable.CastToIChangeTrackable();

            var oldChangeStatus = intf.ChangeTrackingStatus;
            intf.AcceptChanges();

            oldChangeStatus.Should().Be(ChangeStatus.Changed);
            intf.ChangeTrackingStatus.Should().Be(ChangeStatus.Unchanged);
        }
IChangeTrackableTests