Exemplo n.º 1
0
        public void Delete_NonExistantId_0()
        {
            //Assemble
            WaitingListTable waitingListTable = new WaitingListTable();
            int expected = 0;

            //Act
            waitingListTable.delete(0);
            int actual = waitingListTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void Delete_CreatedDeleteAndCount1Record_0()
        {
            //Assemble
            WaitingListModel waitingListModel = new WaitingListModel();

            waitingListModel.clientId      = clientId;
            waitingListModel.dogId         = dogId;
            waitingListModel.programTypeId = programTypeId;
            waitingListModel.joinDate      = new DateTime(2003, 01, 06);
            waitingListModel.inviteIssued  = false;
            int expected = 0;
            WaitingListTable waitingListTable = new WaitingListTable();
            int waitingListID = waitingListTable.create(waitingListModel);

            //Act
            waitingListTable.delete(waitingListID);
            int actual = waitingListTable.count();

            //Assert
            Assert.AreEqual(expected, actual);
        }