MVC planning poker–delete round – part 8

Stefan Petrini make a final test,DeleteRound ( with subcases for Moderator and for non-Moderator deleting a table)

bool DeleteNotModeratorSuccess = true;
            try
            {
                td.Table.DeleteRound(td.Table.Id + "NotModerator".GetHashCode(),"Round2");//Attempting to delete a round without being a Moderator
            }
            catch (PPSecurityExceptionModerator)
            {
                DeleteNotModeratorSuccess = false;
            }
            Assert.IsFalse(DeleteNotModeratorSuccess);

For now the application has 20 tests – all without data persistance ( all is in memory)
It is time to add a saving to database in order to persist data.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *