public void Initialize() { _IPatient = new Mock <IPatient>(); _patientProviderBld = new PatientProviderBLD(_IPatient.Object); _IPatient.Setup(x => x.GetAllPatients()).Returns(new List <Patient>()); _IPatient.Setup(x => x.GetPatient(It.IsAny <int>())).Returns(new Patient { Patient_ID = 1 }); _IPatient.Setup(x => x.SavePatient(new Patient())).Returns(false); }
public void Cleanup() { _patientProviderBld = null; _IPatient = null; }