Ejemplo n.º 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.");
                }
            }
        }
Ejemplo n.º 2
0
 public void OnPreDelete(Entities.AccountReference accountRef)
 {
 }
Ejemplo n.º 3
0
 public void OnPreDelete(Entities.AccountReference target, Entities.Account.IMergedImageForDeleteTest mergedimage)
 {
     TEST_CONTENT = $"{mergedimage.AccountNumber}:{mergedimage.Name}";
 }
 public void OnPreCreate(Entities.AccountReference account)
 {
 }