public void CloseQuoteTest() { OrganizationRequest orgReq = null; Guid respId = Guid.NewGuid(); Guid quotId = Guid.NewGuid(); Guid actId = Guid.NewGuid(); BCrmServiceClient.MockCrmCommandExecute(); Dictionary <string, CrmDataTypeWrapper> newFields = new Dictionary <string, CrmDataTypeWrapper>(); newFields.Add("quoteid", new CrmDataTypeWrapper(quotId, CrmFieldType.UniqueIdentifier)); newFields.Add("activityid", new CrmDataTypeWrapper(actId, CrmFieldType.UniqueIdentifier)); Guid guid = crmaction.CloseQuote(respId, newFields); Assert.IsNotNull(guid); orgReq = BCrmServiceClient.GetRequest(typeof(CloseQuoteRequest)); Assert.IsNotNull(((CloseQuoteRequest)orgReq).QuoteClose); }