public void ThenICanViewAListOfThesePatients()
 {
     var context = new PatientHistoryDataContext();
       var patientRepo = new PatientRepository(context);
       _searchResults = patientRepo.GetCurrentCheckedInPatients();
       CollectionAssert.IsNotEmpty(_searchResults);
 }
 public void WhenIPressSearch()
 {
     Database.SetInitializer(new PatientHistoryDBSeedingInitializer());
       var context = new PatientHistoryDataContext();
       var patientRepo=new PatientRepository(context);
       _searchResults = patientRepo.Find(_patientFirstName,_clientLastName);
 }
 public void ThenThePatientInformationForSelectedPatientShouldBeRetrieved()
 {
     Database.SetInitializer(new PatientHistoryDBSeedingInitializer());
        var patientRepo = new PatientRepository(new PatientHistoryDataContext());
       _patient = patientRepo.Find(_selectedItem.PatientId);
      Assert.IsNotNull(_patient);
 }
 public void GivenThereArePatientsWhoAreCurrentlyCheckedInButNotCheckedOut()
 {
     var context = new PatientHistoryDataContext();
       var patientRepo = new PatientRepository(context);
       Assert.AreNotEqual(0, patientRepo.CurrentCheckedInPatientCount());
 }