Get underlying entity object without trackable
Int32Overflow opened this issue · 2 comments
Int32Overflow commented
How can I get underlying object without trackable proxy interface?
toumir commented
[Fact]
public void GetCurrent_Should_Return_Original()
{
var order = Helper.GetOrder();
var trackable = order.AsTrackable();
trackable.Id = 124;
trackable.CustomerNumber = "Test1";
var current = trackable.CastToIChangeTrackable().GetCurrent();
current.ShouldBeEquivalentTo(trackable);
(current is IChangeTrackable).Should().BeFalse();
}
Int32Overflow commented
Thank you