public void DeletePatient_Test() { string contractNumber = "InHealth001"; double version = 1.0; string token = "54089e71d6a48518403ba173"; string id = "54087eb2d6a48509407d6967"; string userId = "5325c821072ef705080d3488"; IRestClient client = new JsonServiceClient(); JsonServiceClient.HttpWebRequestFilter = x => x.Headers.Add(string.Format("Token: {0}", token)); PostDeletePatientResponse response = client.Post <PostDeletePatientResponse>( string.Format(@"http://localhost:888/Nightingale/{0}/{1}/Patient/{2}/Delete", version, contractNumber, id), new PostDeletePatientRequest { ContractNumber = contractNumber, Id = id, Token = token, UserId = userId, Version = version } as object); Assert.IsNotNull(response); }
public void DeletePatient_Tests() { // Arrange double version = 1.0; string contractNumber = "InHealth001"; string token = "1234"; INGManager ngm = new NGManager { EndpointUtils = new StubPlanElementEndpointUtils(), PlanElementUtils = new PlanElementUtils() }; PostDeletePatientRequest request = new PostDeletePatientRequest { ContractNumber = contractNumber, Token = token, Version = version, Id = "5325db68d6a4850adcbba92e", UserId = "5325c821072ef705080d3488" }; // Act PostDeletePatientResponse response = ngm.DeletePatient(request); //Assert Assert.IsNotNull(response); }
public void DeletePatient_Test() { INGManager ngm = new NGManager { EndpointUtils = new StubPlanElementEndpointUtils(), PlanElementUtils = new PlanElementUtils() }; PostDeletePatientRequest request = new PostDeletePatientRequest { ContractNumber = "InHealth001", Id = "5325db70d6a4850adcbba946", UserId = "5325c821072ef705080d3488", Token = ObjectId.GenerateNewId().ToString(), Version = 1.0 }; PostDeletePatientResponse response = ngm.DeletePatient(request); Assert.IsNotNull(response); }