コード例 #1
0
 public void WhenICreateABadRequestForSiteWithDetailsAnd(string SiteArea, string Name, string OppId)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("Sites", "api-version");
     PostRequest.CreateSite(SiteArea, Name, OppId);
 }
コード例 #2
0
 public void WhenICreateABadRequestForContactWithDetailsAnd(string Firstname, string Lastname, string Email)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("Contact", "api-version");
     PostRequest.CreateContact(Firstname, Lastname, Email);
 }
コード例 #3
0
 public void WhenIAddANewSiteWithInvalidTokenWithDetailsAnd(string SiteArea, string Name, string OppId)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("InvalidToken");
     PostRequest.CreateSite(SiteArea, Name, OppId);
 }
コード例 #4
0
 public void WhenIAddANewContactWithInvalidTokenWithDetailsAnd(string Firstname, string Lastname, string Email)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("InvalidToken");
     PostRequest.CreateContact(Firstname, Lastname, Email);
 }
コード例 #5
0
 public void WhenIUpdateAnExistingWithDetailsAnd(string Firstname, string Lastname, string Email)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("Contact");
     PostRequest.CreateContact(Firstname, Lastname, Email);
 }
コード例 #6
0
 public void WhenICreateABadRequestForPartnerDetailsWithDetailsAnd(string name, string accType, string accNo, string orgName)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("PartnerDetails", "api-version");
     PostRequest.CreatePartner(name, accType, accNo, orgName);
 }
コード例 #7
0
 public void WhenIAddNewPartnerDetailsWithInvalidTokenWithDetailsAnd(string name, string accType, string accNo, string orgName)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("InvalidToken");
     PostRequest.CreatePartner(name, accType, accNo, orgName);
 }
コード例 #8
0
 public void WhenIUpdateExistingWithDetailsAnd(string name, string accType, string accNo, string orgName)
 {
     CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint);
     CommonMethods.AddHeaders();
     CommonMethods.AddParameters("PartnerDetails");
     PostRequest.CreatePartner(name, accType, accNo, orgName);
 }