public void PrescriptionInsertIntoDatabaseTest()
        {
            var po           = new PrescriptionOperations();
            var prescription = new Prescription()
            {
                PrescriptionId  = 1,
                DrugName        = "Crocin",
                DrugType        = "Tablet",
                Quantity        = 30,
                IntakeTimeFrame = "before Breakfast",
                NoOfDays        = 7,
                Disease         = "Fever"
            };

            //checking automation tests
            Assert.AreEqual(true, po.PrescriptionInsertIntoDatabase(prescription));
        }
Exemple #2
0
        public bool Put([FromBody] Prescription prescription)
        {
            PrescriptionOperations prescriptionOperations = new PrescriptionOperations();

            return(prescriptionOperations.PrescriptionInsertIntoDatabase(prescription));
        }