public void Get_PatientProgram()
            {
                MongoPatientProgramRepository cRepo   = new MongoPatientProgramRepository("InHealth001");
                ProgramRepositoryFactory      factory = new ProgramRepositoryFactory();
                GetPatientProgramsDataRequest request = new GetPatientProgramsDataRequest
                {
                    ContractNumber = "InHealth001",
                    Context        = "NG",
                    UserId         = "NGUser"
                };

                IProgramRepository repo = factory.GetRepository(request, RepositoryType.PatientProgram);

                Assert.AreEqual(cRepo.GetType(), repo.GetType());
            }
Example #2
0
        public void Update_Test()
        {
            PutProgramActionProcessingRequest request = new PutProgramActionProcessingRequest
            {
                ProgramId = "5330920da38116ac180009d2",
                Program   = new ProgramDetail {
                    Id = "5330920da38116ac180009d2", AssignTo = null
                }
            };

            MongoPatientProgramRepository repo = new MongoPatientProgramRepository("InHealth001")
            {
                UserId = "123456789012345678901234"
            };

            repo.Update(request);
        }