Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public CareTeamCommand(PostDeletePatientRequest req,IContactEndpointUtil contactEndpointUtil, string contactId)
 {
     if (req == null)
         throw new ArgumentNullException("request");
     if (string.IsNullOrEmpty(contactId))
         throw new ArgumentNullException("conatctId");
     if (contactEndpointUtil == null)
         throw new ArgumentNullException("contactEndpointUtil");
     _request = req;
     _contactId = contactId;
     _contactEndpointUtil = contactEndpointUtil;
 }
Exemplo n.º 3
0
            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);
            }
        public DereferencePatientInContactCommand(string contactId, PostDeletePatientRequest request, IContactEndpointUtil contactEndpointUtil)
        {
            if (contactId == null)
            {
                throw new ArgumentNullException("contactId");
            }

            if (request == null)
            {
                throw new ArgumentNullException("request");
            }

            if (contactEndpointUtil == null)
            {
                throw new ArgumentNullException("contactEndpointUtil");
            }

            _contactId           = contactId;
            _request             = request;
            _contactEndpointUtil = contactEndpointUtil;
        }
Exemplo n.º 5
0
 public PatientToDosCommand(PostDeletePatientRequest req, IRestClient restClient)
 {
     request = req as PostDeletePatientRequest;
     client  = restClient;
 }
Exemplo n.º 6
0
 public PatientObservationsCommand(PostDeletePatientRequest req, IRestClient restClient)
 {
     request = req as PostDeletePatientRequest;
     client  = restClient;
 }
Exemplo n.º 7
0
 public CareMembersCommand(PostDeletePatientRequest req, IRestClient restClient)
 {
     request = req as PostDeletePatientRequest;
     client  = restClient;
 }
Exemplo n.º 8
0
 public CohortPatientViewCommand(PostDeletePatientRequest req, IRestClient restClient)
 {
     request = req;
     client  = restClient;
 }
Exemplo n.º 9
0
 public PatientUsersCommand(PostDeletePatientRequest req, IRestClient restClient)
 {
     request = req;
     client  = restClient;
 }
Exemplo n.º 10
0
 public ContactCommand(PostDeletePatientRequest req, IRestClient restClient)
 {
     request = req as PostDeletePatientRequest;
     client  = restClient;
 }
Exemplo n.º 11
0
 public PostDeletePatientResponse DeletePatient(PostDeletePatientRequest request)
 {
     throw new NotImplementedException();
 }