public void AddMemberMessagesAAQToBidder() { AddMemberMessagesAAQToBidderCall api = new AddMemberMessagesAAQToBidderCall(apiContext); AddMemberMessagesAAQToBidderRequestContainerTypeCollection msgs = new AddMemberMessagesAAQToBidderRequestContainerTypeCollection(); api.AddMemberMessagesAAQToBidderRequestContainerList = msgs; AddMemberMessagesAAQToBidderRequestContainerType msg = new AddMemberMessagesAAQToBidderRequestContainerType(); msgs.Add(msg); msg.CorrelationID = "TestCorrelationID"; msg.ItemID = "1111111111"; MemberMessageType memberMsg = new MemberMessageType(); msg.MemberMessage = memberMsg; memberMsg.Subject = "SDK Sanity Test ASQ"; memberMsg.Body = "SDK sanity test body"; memberMsg.DisplayToPublic = false; memberMsg.DisplayToPublicSpecified = true; memberMsg.EmailCopyToSender = false; memberMsg.EmailCopyToSenderSpecified = true; memberMsg.HideSendersEmailAddress = true; memberMsg.HideSendersEmailAddressSpecified = true; memberMsg.MessageType = MessageTypeCodeType.ContactEbayMember; memberMsg.QuestionType = QuestionTypeCodeType.General; memberMsg.RecipientID = new StringCollection(); memberMsg.RecipientID.Add(TestData.ApiUserID); // Make API call. ApiException gotException = null; // Negative test. try { api.Execute(); } catch (ApiException ex) { gotException = ex; } Assert.IsNotNull(gotException); }
public void AddMemberMessagesAAQToBidder() { AddMemberMessagesAAQToBidderCall api = new AddMemberMessagesAAQToBidderCall(apiContext); AddMemberMessagesAAQToBidderRequestContainerTypeCollection msgs = new AddMemberMessagesAAQToBidderRequestContainerTypeCollection(); api.AddMemberMessagesAAQToBidderRequestContainerList = msgs; AddMemberMessagesAAQToBidderRequestContainerType msg = new AddMemberMessagesAAQToBidderRequestContainerType(); msgs.Add(msg); msg.CorrelationID = "TestCorrelationID"; msg.ItemID = "1111111111"; MemberMessageType memberMsg = new MemberMessageType(); msg.MemberMessage = memberMsg; memberMsg.Subject = "SDK Sanity Test ASQ"; memberMsg.Body = "SDK sanity test body"; memberMsg.DisplayToPublic = false; memberMsg.DisplayToPublicSpecified = true; memberMsg.EmailCopyToSender = false; memberMsg.EmailCopyToSenderSpecified = true; memberMsg.HideSendersEmailAddress = true; memberMsg.HideSendersEmailAddressSpecified = true; memberMsg.MessageType = MessageTypeCodeType.ContactEbayMember; memberMsg.QuestionType = QuestionTypeCodeType.General; memberMsg.RecipientID = new StringCollection(); memberMsg.RecipientID.Add(TestData.ApiUserID); // Make API call. ApiException gotException = null; // Negative test. try { api.Execute(); } catch (ApiException ex) { gotException = ex; } Assert.IsNotNull(gotException); }