public void Task_Patient_deleteData_Selective_NotPresent()
        {
            //Arrange
            List <PatientEntity> db1 = InitialSeed.patientSeed();
            //Act
            List <PatientEntity> db2 = DAL.deleteData(db1, 2);

            //Assert
            Assert.NotEmpty(db2);
        }
Exemple #2
0
        public void Task_Doctor_deleteData_Selective_NotPresent()
        {
            //Arrange
            List <DoctorEntity> db1 = InitialSeed.doctorSeed();
            //Act
            List <DoctorEntity> db2 = DAL.deleteData(db1, 2);

            //Assert
            Assert.NotEmpty(db2);
        }
        public void Task_Patient_deleteData_All()
        {
            //Arrange
            List <PatientEntity> db1 = InitialSeed.patientSeed();

            //Act
            List <PatientEntity> db2 = DAL.deleteData(db1);

            //Assert
            Assert.Empty(db2);
        }
        public void Task_Patient_showData_Selective_NotPresent()
        {
            //Arrange
            List <PatientEntity> db = InitialSeed.patientSeed();

            //Act
            PatientEntity db1 = DAL.showData(db, 2);

            //Assert
            Assert.NotEqual(db1, db[0]);
        }
        public void Task_Patient_showData_All()
        {
            //Arrange
            List <PatientEntity> db = InitialSeed.patientSeed();

            //Act
            List <PatientEntity> db1 = DAL.showData(db);

            //Assert
            Assert.Equal(db1, db);
        }
Exemple #6
0
        //Test for scenario when all data is deleted
        public void Task_Doctor_deleteData_All()
        {
            //Arrange
            List <DoctorEntity> db1 = InitialSeed.doctorSeed1();

            //Act
            List <DoctorEntity> db2 = DAL.deleteData(db1);

            //Assert
            Assert.Empty(db2);
        }
Exemple #7
0
        public void Task_Doctor_showData_Selective_NotPresent()
        {
            //Arrange
            List <DoctorEntity> db = InitialSeed.doctorSeed();

            //Act
            DoctorEntity db1 = DAL.showData(db, 2);

            //Assert
            Assert.NotEqual(db1, db[0]);
        }
Exemple #8
0
        public void Task_Doctor_showData_All()
        {
            //Arrange
            List <DoctorEntity> db = InitialSeed.doctorSeed();

            //Act
            List <DoctorEntity> db1 = DAL.showData(db);

            //Assert
            Assert.Equal(db1, db);
        }
        //Test for data insertion
        public void Task_Patient_insertData()
        {
            //Arrange
            List <PatientEntity> db  = InitialSeed.patientSeed();
            List <PatientEntity> db1 = InitialSeed.patientSeed1();
            PatientEntity        de  = InitialSeed.patientSeed2();

            //Act
            List <PatientEntity> db2 = DAL.insertData(db, de);

            //Assert
            Assert.NotEqual(db1, db2);
        }
Exemple #10
0
        public void Task_Doctor_insertData()
        {
            //Arrange
            List <DoctorEntity> db  = InitialSeed.doctorSeed();
            List <DoctorEntity> db1 = InitialSeed.doctorSeed1();
            DoctorEntity        de  = InitialSeed.doctorSeed2();

            //Act
            List <DoctorEntity> db2 = DAL.insertData(db, de);

            //Assert
            Assert.NotEqual(db1, db2);
        }