Пример #1
0
 /// <summary>
 /// Constructor to create the instance of presenter.
 /// </summary>
 /// <param name="nodeView">Node view.</param>
 /// <param name="patientObjectCollection">Collection</param>
 protected PatientNodePresenter(IPatientNodeView nodeView, PatientObjectCollection patientObjectCollection)
 {
     if (nodeView == null)
     {
         ExceptionManager.Throw(new ArgumentNullException("nodeView"));
     }
     _patientNodeView         = nodeView;
     _patientObjectCollection = patientObjectCollection;
     _contexts = new List <PatientContext>();
 }
Пример #2
0
 /// <summary>
 /// Constructor to create the instance of presenter.
 /// </summary>
 /// <param name="nodeView">Node view.</param>
 /// <param name="patientObjectCollection">Collection</param>
 protected PatientNodePresenter(IPatientNodeView nodeView, PatientObjectCollection patientObjectCollection)
 {
     if (nodeView == null)
     {
         ExceptionManager.Throw(new ArgumentNullException("nodeView"));
     }
     _patientNodeView = nodeView;
     _patientObjectCollection = patientObjectCollection;
     _contexts = new List<PatientContext>();
 }
 private static PatientNodePresenter GetPresenter(IPatientNodeView mockPatientNodeView)
 {
     var patientNodePresenter = new PatientNodePresenter(mockPatientNodeView);
     return patientNodePresenter;
 }
Пример #4
0
 /// <summary>
 /// Constructor to create the instance of presenter.
 /// </summary>
 /// <param name="nodeView">Node view.</param>
 public PatientNodePresenter(IPatientNodeView nodeView) : this(nodeView, new PatientObjectCollection())
 {
 }
Пример #5
0
 /// <summary>
 /// Constructor to create the instance of presenter.
 /// </summary>
 /// <param name="nodeView">Node view.</param>
 public PatientNodePresenter(IPatientNodeView nodeView) : this(nodeView, new PatientObjectCollection())
 {
 }
        private static PatientNodePresenter GetPresenter(IPatientNodeView mockPatientNodeView)
        {
            var patientNodePresenter = new PatientNodePresenter(mockPatientNodeView);

            return(patientNodePresenter);
        }