public void AddEntityToQueueTest()
        {
            OrganizationRequest orgReq = null;
            Guid respId = Guid.NewGuid();
            MRetrieveMultipleResponse rtvResp = new MRetrieveMultipleResponse();
            EntityCollection          entcol  = new EntityCollection();

            entcol.Entities.Add(new Entity());
            rtvResp.EntityCollectionGet = () => { return(entcol); };
            BCrmServiceClient.AddResponse(typeof(RetrieveMultipleRequest), rtvResp);
            BCrmServiceClient.MockCrmCommandExecute();
            MCrmServiceClient.AllInstances.GetDataByKeyFromResultsSetDictionaryOfStringObjectString <Guid>((objsvcact, dct, str) => { return(respId); });
            bool result = crmaction.AddEntityToQueue(respId, "account", "que", respId);

            Assert.IsTrue(result);
            orgReq = BCrmServiceClient.GetRequest(typeof(AddToQueueRequest));
            Assert.IsNotNull(((AddToQueueRequest)orgReq).DestinationQueueId);
            Assert.IsNotNull(((AddToQueueRequest)orgReq).Target);
        }