public void read_ClinicalInterest() { //setup var handler = CreateHandler(); var request = new ReadClinicalInterestRequest(); request.Id = 2; //act var response = HandleRequest<ReadClinicalInterestResponse>(handler, request); //assert Assert.AreEqual(response.ClinicalInterest.Id, 2); Assert.AreEqual(response.ClinicalInterest.Name, "Brain"); Assert.AreEqual(response.ClinicalInterest.IsEnabled, true); }
/// <summary> /// Queries the DB using the existing ListProvidersHandler /// </summary> private ReadClinicalInterestResponse QueryData(ConvertServiceRequest request) { var detailRequest = new ReadClinicalInterestRequest() { Id = _clinicalInterestsId }; return ProcessRequest<ReadClinicalInterestResponse>(detailRequest); }