public void Test_Authentication_GetAccessToken() { PatientRewardsHubApi api = new PatientRewardsHubApi("http://api.patientrewardshub.com"); var res = api.Authentications.CreateAuthentication("", "", ""); // username, password, application Assert.IsTrue(res.AccessToken == ""); //AccessToken is the old APIKey }
public void Test_GetPatient() { PatientRewardsHubApi api = new PatientRewardsHubApi("http://api.v200.branch.patientrewardshub.com/", "apikeyabapikeyab"); var res = api.Patients.GetPatientById(4); Assert.IsTrue(res.Patient.Firstname == "Mickey"); }