public void Count_AllRecordsDeleted_0() { //Assemble int expected = 0; ProgramTypeTable programTypeTable = new ProgramTypeTable(); //Act int actual = programTypeTable.count(); //Assert Assert.AreEqual(expected, actual); }
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 Count_Created1Record_1() { //Assemble ProgramTypeModel programTypeModel = new ProgramTypeModel(); programTypeModel.description = "Advanced"; int expected = 1; ProgramTypeTable programTypeTable = new ProgramTypeTable(); //Act int programTypeID = programTypeTable.create(programTypeModel); int actual = programTypeTable.count(); //Assert Assert.AreEqual(expected, actual); }