public void Delete_NonExistantId_0() { //Assemble ProgramTypeTable programTypeTable = new ProgramTypeTable(); int expected = 0; //Act programTypeTable.delete(0); int actual = programTypeTable.count(); //Assert Assert.AreEqual(expected, actual); }
public void Delete_CreatedDeleteAndCount1Record_0() { //Assemble ProgramTypeModel programTypeModel = new ProgramTypeModel(); programTypeModel.description = "Advanced"; int expected = 0; ProgramTypeTable programTypeTable = new ProgramTypeTable(); int programTypeID = programTypeTable.create(programTypeModel); //Act programTypeTable.delete(programTypeID); int actual = programTypeTable.count(); //Assert Assert.AreEqual(expected, actual); }