コード例 #1
0
        public PdsControllerTests()
        {
            var patientList = new List <Patient> {
                new Patient {
                    Id = "ValidPatient1"
                }, new Patient {
                    Id = "ValidPatient2"
                }
            };

            var pdsSearch = new Mock <IPdsSearch>();

            pdsSearch.Setup(x => x.Find(It.Is <FhirRequest>(y => y.RequestingAsid == null))).Returns(System.Threading.Tasks.Task.FromResult(FhirBundle.GetBundle(patientList)));

            _pdsSearch = pdsSearch.Object;
        }
コード例 #2
0
 public PdsController(IPdsSearch pdsSearch)
 {
     _pdsSearch = pdsSearch;
 }
コード例 #3
0
 public void Dispose()
 {
     _pdsSearch = null;
 }