Example #1
0
        public void TestsInformationNullTest()
        {
            // Arrange
            TestsTableData testsTableData = new TestsTableData();
            // Act
            var result = testsTableData.TestsInformation();

            // Assert
            Assert.IsNotNull(result);
        }
Example #2
0
        public ActionResult AddMedicinesAndTests(AddMedicinesAndTestViewModel model)
        {
            if (Session["userId"] == null)
            {
                return(Redirect("~"));
            }
            MedicineTableData            medicineData         = new MedicineTableData();
            TestsTableData               testData             = new TestsTableData();
            AddMedicinesAndTestViewModel medicineAndTestNames = new AddMedicinesAndTestViewModel();

            medicineAndTestNames.MedicinesList = medicineData.MedicinesInformation();
            medicineAndTestNames.TestsList     = testData.TestsInformation();
            medicineAndTestNames.AppointmentId = model.AppointmentId;
            medicineAndTestNames.Remark        = model.Remark;
            var DoctorViewObj = new DoctorProfileView((int)Session["userId"]);

            return(View(medicineAndTestNames));
        }