public void ExecuteBatchTest()
        {
            ExecuteMultipleRequest orgReq = null;
            Guid respId = Guid.NewGuid();

            BCrmServiceClient.MockCrmCommandExecute();
            RequestBatch rqBatch = new RequestBatch();

            rqBatch.BatchId = respId;
            List <BatchItemOrganizationRequest> batchItems = new List <BatchItemOrganizationRequest>();
            BatchItemOrganizationRequest        itmOrgRqs  = new BatchItemOrganizationRequest();

            itmOrgRqs.Request = new OrganizationRequest();
            batchItems.Add(itmOrgRqs);
            rqBatch.BatchItems = batchItems;
            MBatchManager.AllInstances.GetRequestBatchByIdGuid = (objbatchmgr, guid) => { return(rqBatch); };
            ExecuteMultipleResponse rsp = crmaction.ExecuteBatch(respId);

            Assert.AreEqual(rsp, BCrmServiceClient.GetResponse(typeof(ExecuteMultipleRequest)));
            orgReq = (ExecuteMultipleRequest)BCrmServiceClient.GetRequest(typeof(ExecuteMultipleRequest));
            Assert.IsNotNull(((ExecuteMultipleRequest)orgReq).Requests);
        }