public void Delete_NonExistantId_0() { //Assemble ProgramVarietyTable programCostTable = new ProgramVarietyTable(); int expected = 0; //Act programCostTable.delete(0); int actual = programCostTable.count(); //Assert Assert.AreEqual(expected, actual); }
public void Delete_CreatedDeleteAndCount1Record_0() { //Assemble ProgramVarietyModel programVarietyModel = new ProgramVarietyModel(); programVarietyModel.depositAmount = 49.0; programVarietyModel.sessionCost = 50.0; programVarietyModel.fullPaymentPercentageDiscount = 51.0; programVarietyModel.name = "Regular"; programVarietyModel.noOfClasses = 10; programVarietyModel.dogSpacesMaximum = 9; int expected = 0; ProgramVarietyTable programCostTable = new ProgramVarietyTable(); int programCostID = programCostTable.create(programVarietyModel); //Act programCostTable.delete(programCostID); int actual = programCostTable.count(); //Assert Assert.AreEqual(expected, actual); }