コード例 #1
0
        public void GivenThereArePatientsWhoAreCurrentlyCheckedInButNotCheckedOut()
        {
            var context     = new PatientHistoryDataContext();
            var patientRepo = new PatientRepository(context);

            Assert.AreNotEqual(0, patientRepo.CurrentCheckedInPatientCount());
        }
コード例 #2
0
        public void ThenICanViewAListOfThesePatients()
        {
            var context     = new PatientHistoryDataContext();
            var patientRepo = new PatientRepository(context);

            _searchResults = patientRepo.GetCurrentCheckedInPatients();
            CollectionAssert.IsNotEmpty(_searchResults);
        }
コード例 #3
0
        public void WhenIPressSearch()
        {
            Database.SetInitializer(new PatientHistoryDBSeedingInitializer());
            var context     = new PatientHistoryDataContext();
            var patientRepo = new PatientRepository(context);

            _searchResults = patientRepo.Find(_patientFirstName, _clientLastName);
        }