public void CloseOpportunityTest()
        {
            OrganizationRequest orgReq = null;
            Guid respId = Guid.NewGuid();
            Guid oprtId = Guid.NewGuid();
            Guid actId  = Guid.NewGuid();

            BCrmServiceClient.MockCrmCommandExecute();
            Dictionary <string, CrmDataTypeWrapper> newFields = new Dictionary <string, CrmDataTypeWrapper>();

            newFields.Add("opportunityid", new CrmDataTypeWrapper(oprtId, CrmFieldType.UniqueIdentifier));
            newFields.Add("activityid", new CrmDataTypeWrapper(actId, CrmFieldType.UniqueIdentifier));
            Guid guid = crmaction.CloseOpportunity(respId, newFields);

            Assert.IsNotNull(guid);
            orgReq = BCrmServiceClient.GetRequest(typeof(WinOpportunityRequest));
            Assert.IsNotNull(((WinOpportunityRequest)orgReq).OpportunityClose);
        }