public void Count_AllRecordsDeleted_0() { //Assemble int expected = 0; DogTable dogTable = new DogTable(); //Act int actual = dogTable.count(); //Assert Assert.AreEqual(expected, actual); }
public void Delete_NonExistantId_0() { //Assemble DogTable dogTable = new DogTable(); int expected = 0; //Act dogTable.delete(0); int actual = dogTable.count(); //Assert Assert.AreEqual(expected, actual); }
public void Count_Created1Record_1() { //Assemble DogModel dogModel = new DogModel(); dogModel.name = "Ted"; dogModel.clientID = clientId; dogModel.age = 8; dogModel.breed = "Shi Tzu"; dogModel.experienceOrQualification = false; int expected = 1; DogTable dogTable = new DogTable(); //Act int dogID = dogTable.create(dogModel); int actual = dogTable.count(); //Assert Assert.AreEqual(expected, actual); }