コード例 #1
0
        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.");
                }
            }
        }
コード例 #2
0
 public void OnPreDelete(Entities.AccountReference accountRef)
 {
 }
コード例 #3
0
 public void OnPreDelete(Entities.AccountReference target, Entities.Account.IMergedImageForDeleteTest mergedimage)
 {
     TEST_CONTENT = $"{mergedimage.AccountNumber}:{mergedimage.Name}";
 }
コード例 #4
0
 public void OnPreCreate(Entities.AccountReference account)
 {
 }