Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void Cleanup()
 {
     _patientProviderBld = null;
     _IPatient           = null;
 }