public void GetTestMethod()
        {
            PatientRecordsController   controllerObject = new PatientRecordsController(new PatientRepo());
            IQueryable <PatientRecord> patientData      = controllerObject.GetPatientRecords();

            Assert.LessOrEqual(0, patientData.Count <PatientRecord>());
        }
        public void Delete(int?id)
        {
            // Arrange
            PatientRecordsController controller = new PatientRecordsController();

            // Act
            ViewResult result = controller.Delete(id) as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
        public void Create()
        {
            // Arrange
            PatientRecordsController controller = new PatientRecordsController();

            // Act
            ViewResult result = controller.Create() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
        public async Task PostTestMethod()
        {
            PatientRecordsController controllerObject = new PatientRecordsController(new PatientRepo());
            PatientDataModel         patientData      = new PatientDataModel()
            {
                ForeName = "Test ForeName", SurName = "Test SurName", Gender = "Male", DateofBirth = DateTime.Now, TelePhoneNumbers = new TelepohneNumber()
                {
                    HomeNumber = "9999999999"
                }
            };
            var h = await controllerObject.PostPatientRecord(patientData) as OkNegotiatedContentResult <System.String>;;

            Assert.AreEqual(h.Content.ToLower(), "data posted successfully");
        }