Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
 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);
 }
 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);
 }
 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);
 }