public void OnPreDelete(Entities.AccountReference target, Model.INamed preimage) { if (Setting.IsUnitTest) { if (target.Value.Id != TESTID) { throw new Exception("Id was not as expected"); } if (target.Value.LogicalName != Entities.Account.EntityLogicalName) { throw new Exception("logical name was not as expected"); } if (preimage.Name != "solid test") { throw new Exception("name is not solid test as expected in test."); } } }
public void OnPreDelete(Entities.AccountReference accountRef) { }
public void OnPreDelete(Entities.AccountReference target, Entities.Account.IMergedImageForDeleteTest mergedimage) { TEST_CONTENT = $"{mergedimage.AccountNumber}:{mergedimage.Name}"; }
public void OnPreCreate(Entities.AccountReference account) { }