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

When_StatusChanged_Raised_Property_Should_Be_Changed() private method

        public void When_StatusChanged_Raised_Property_Should_Be_Changed()
        {
            var order = Helper.GetOrder();
            var trackable = order.AsTrackable();
            var intf = trackable.CastToIChangeTrackable();
            int newValue = 0;
            intf.StatusChanged += (o, e) => newValue = order.Id;

            trackable.Id = 1234;

            newValue.Should().Be(1234);
        }
IChangeTrackableTests