public void Get_Pateints_In_Cohort_Test() { string cohortID = "528ed977072ef70e10099685"; IRestClient client = new JsonServiceClient(); GetCohortPatientsResponse response = client.Get <GetCohortPatientsResponse>( "http://localhost:888/Nightingale/1.0/InHealth001/cohortpatients/528ed977072ef70e10099685?Skip=0&Take=50&SearchFilter=s&Token=52e4a8afd6a4850534c80421" ); //GetCohortPatientsResponse response = client.Get<GetCohortPatientsResponse>( // string.Format("{0}/{1}/{2}/cohortpatients/{3}/{4}", "http://localhost:888/Nightingale", 1, "InHealth001", cohortID, "?Skip=0&Take=1000&Token=52e4a8afd6a4850534c80421") // ); }
public void GetCohortPatients_Test() { // Arrange double version = 1.0; string contractNumber = "InHealth001"; string token = "1234"; NGManager ngManager = new NGManager(); GetCohortPatientsRequest request = new GetCohortPatientsRequest { ContractNumber = contractNumber, Token = token, Version = version, CohortID = "530f9cff072ef715f4b411cf", SearchFilter = "", Skip = "0", Take = "100", UserId = "EC0849A4-D0A1-44BF-A482-7A97103E96CD" }; // Act GetCohortPatientsResponse response = ngManager.GetCohortPatients(request); //Assert Assert.IsTrue(response.Patients.Count > 0); }