private void DeletePluginTypes(EntityCollection pluginTypes)
        {
            foreach (var pluginType in pluginTypes.Entities)
            {
                DeletePluginSteps(pluginType.Id);

                Log("Deleting PluginTypes - " + pluginType.LogicalName);
                _svcClient.DeleteEntity("plugintype", pluginType.Id);
            }
        }
        public void DeleteEntityTest()
        {
            OrganizationRequest orgReq = null;

            BCrmServiceClient.MockCrmCommandExecute();
            Guid   toDeleteId   = Guid.NewGuid();
            string entityDelete = "account";
            bool   result       = crmaction.DeleteEntity(entityDelete, toDeleteId);

            Assert.IsTrue(result);
            orgReq = BCrmServiceClient.GetRequest(typeof(DeleteRequest));
            Assert.AreEqual(entityDelete, (((EntityReference)((DeleteRequest)orgReq).Target).LogicalName));
        }