public void TestCleanUp()
 {
     _mockObj             = null;
     neighbourRef         = null;
     patientVitalsStorage = null;
     patientVitals        = null;
 }
 public void Init()
 {
     patientVitals = new PatientVitals()
     {
         PatientId = "", Spo2 = 98, PulseRate = 67, Temperature = 98
     };
     _mockObj             = new Moq.Mock <IDataAccessComponent>();
     neighbourRef         = _mockObj.Object;
     patientVitalsStorage = new QueuePatientVitalsStorage(neighbourRef);
     _mockObj.Setup(f => f.WritePatientVitalsData(null)).Throws <ArgumentNullException>();
     _mockObj.Setup(f => f.WritePatientVitalsData(patientVitals)).Throws <ArgumentNullException>();
 }
        public void StorePatientVitals([FromBody] PatientVitals patientVitals)
        {
            IPatientVitalsStorage patientVitalsStorage = new QueuePatientVitalsStorage(dataAccess);

            patientVitalsStorage.StorePatientVitalsData(patientVitals);
        }