public void Delete_NonExistantId_0() { //Assemble StaffTable staffTable = new StaffTable(); int expected = 0; //Act staffTable.delete(0); int actual = staffTable.count(); //Assert Assert.AreEqual(expected, actual); }
public void Delete_CreatedDeleteAndCount1Record_0() { //Assemble StaffModel staffModel = new StaffModel(); staffModel.name = "Bob"; int expected = 0; StaffTable staffTable = new StaffTable(); int staffID = staffTable.create(staffModel); //Act staffTable.delete(staffID); int actual = staffTable.count(); //Assert Assert.AreEqual(expected, actual); }