Exemplo n.º 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>();
 }
Exemplo n.º 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;
 }
Exemplo n.º 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())
 {
 }
Exemplo n.º 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);
        }