示例#1
0
        public void Delete_NonExistantId_0()
        {
            //Assemble
            ProgramTable programTable = new ProgramTable();
            int          expected     = 0;

            //Act
            programTable.delete(0);
            int actual = programTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void Delete_CreatedDeleteAndCount1Record_0()
        {
            //Assemble
            ProgramModel programModel = new ProgramModel();

            programModel.programVarietyId = programVarietyId;

            int          expected     = 0;
            ProgramTable programTable = new ProgramTable();
            int          programID    = programTable.create(programModel);

            //Act
            programTable.delete(programID);
            int actual = programTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void Delete_CreatedDeleteAndCount1Record_0()
        {
            //Assemble
            ProgramModel programModel = new ProgramModel();

            programModel.programTypeId    = programTypeId;
            programModel.programCostId    = programCostId;
            programModel.dogSpacesMaximum = 12;
            programModel.noOfClasses      = 7;
            int          expected     = 0;
            ProgramTable programTable = new ProgramTable();
            int          programID    = programTable.create(programModel);

            //Act
            programTable.delete(programID);
            int actual = programTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }