示例#1
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);
        }
示例#2
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]);
        }
示例#3
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);
        }
示例#4
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);
        }