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); }
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); }
public void WhenIAddANewSiteWithInvalidTokenWithDetailsAnd(string SiteArea, string Name, string OppId) { CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint); CommonMethods.AddHeaders(); CommonMethods.AddParameters("InvalidToken"); PostRequest.CreateSite(SiteArea, Name, OppId); }
public void WhenIAddANewContactWithInvalidTokenWithDetailsAnd(string Firstname, string Lastname, string Email) { CommonMethods.CreateRequest("POST", StaticObjectRepo.Endpoint); CommonMethods.AddHeaders(); CommonMethods.AddParameters("InvalidToken"); PostRequest.CreateContact(Firstname, Lastname, Email); }
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); }