public void Delete_NonExistantId_0() { //Assemble ClientTable clientTable = new ClientTable(); int expected = 0; //Act clientTable.delete(0); int actual = clientTable.count(); //Assert Assert.AreEqual(expected, actual); }
public void Delete_CreatedDeleteAndCount1Record_0() { //Assemble ClientModel clientModel = new ClientModel(); clientModel.name = "Bob"; clientModel.phone = "07561 101169"; clientModel.email = "*****@*****.**"; int expected = 0; ClientTable clientTable = new ClientTable(); int clientID = clientTable.create(clientModel); //Act clientTable.delete(clientID); int actual = clientTable.count(); //Assert Assert.AreEqual(expected, actual); }