Skip to content

Commit

Permalink
Add pet deletion after test completion
Browse files Browse the repository at this point in the history
  • Loading branch information
rpothin committed Apr 3, 2024
1 parent 7f7bb61 commit 73a3be4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public void CreatePet_SetOnlyName()

// Assert that the life points and the happiness points are set to 100000 or 99990
Assert.True(PetHelper.ArePetLifeAndHappinessPointsCorrectlyInitialized(_serviceClient, petId));

// Delete the pet
PetHelper.DeletePet(_serviceClient, petId);
}

/// <summary>
Expand Down Expand Up @@ -213,8 +216,8 @@ public void Dispose()
// Dispose managed resources.
if (_petId != Guid.Empty)
{
PetHelper.DeletePet(_serviceClient, _petId);
_petId = Guid.Empty;
//PetHelper.DeletePet(_serviceClient, _petId);
//_petId = Guid.Empty;
}

if(_serviceClient != null)
Expand Down

0 comments on commit 73a3be4

Please sign in to comment.