コード例 #1
0
        public void Valid_KidDataAccess_Delete_deleteKid()
        {
            // Arrange
            var deleteId = _integrationDelete;
            var deleteKid = new KidDataAccess();

            // Act
            var result = deleteKid.Delete(deleteId);

            // Assert
            Assert.AreEqual(true, result, "We should have Deleted the Record");

        }
コード例 #2
0
        public void InValidKidID_KidDataAccess_Delete_deleteKid()
        {
            // Arrange
            var deleteId = 999;
            var deleteKid = new KidDataAccess();

            // Act
            var result = deleteKid.Delete(deleteId);

            // Assert
        }
コード例 #3
0
        public void EmptyRecord_KidDataAccess_Delete_ThrowError()
        {
            // Arrange
            var deleteID = 0;
            var addKid = new KidDataAccess();

            // Act
            // Assert
            Assert.Throws<ArgumentException>(() => addKid.Delete(deleteID));

        }