/// <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>(); }
/// <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; }
/// <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); }