public void GetCareManagers_Test() { GetAllCareManagersDataRequest request = new GetAllCareManagersDataRequest(); request.ContractNumber = "InHealth001"; request.UserId = "DD_TestHarness"; request.Version = 1; GetAllCareManagersDataResponse response = manager.GetCareManagers(request); Assert.IsNotNull(response); }
public GetAllCareManagersDataResponse GetCareManagers(GetAllCareManagersDataRequest request) { GetAllCareManagersDataResponse response = new GetAllCareManagersDataResponse(); try { IContactRepository repo = Factory.GetRepository(request, RepositoryType.Contact); response.Contacts = repo.FindCareManagers() as List <ContactData>; response.Version = request.Version; } catch (Exception ex) { throw ex; } return(response); }
public GetAllCareManagersDataResponse Get(GetAllCareManagersDataRequest request) { GetAllCareManagersDataResponse response = new GetAllCareManagersDataResponse(); response.Version = request.Version; try { if (string.IsNullOrEmpty(request.UserId)) { throw new UnauthorizedAccessException("ContactDD:Get()::Unauthorized Access"); } response = Manager.GetCareManagers(request); } catch (Exception ex) { CommonFormat.FormatExceptionResponse(response, base.Response, ex); string aseProcessID = ConfigurationManager.AppSettings.Get("ASEProcessID") ?? "0"; Helpers.LogException(int.Parse(aseProcessID), ex); } return(response); }