Skip to content

Commit

Permalink
Refactor DataverseAPITests class to implement IDisposable interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rpothin committed Apr 3, 2024
1 parent 7155f65 commit ef6eb6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Dataverse.API.Testing
/// <summary>
/// Represents a class containing tests for the Dataverse API.
/// </summary>
public class DataverseAPITests
public class DataverseAPITests: IDisposable
{
private ServiceClient _serviceClient;
private Guid _petId;
Expand Down Expand Up @@ -203,7 +203,7 @@ public void FeedPet_ReachingInitialLifePoints()
/// <remarks>
/// The method disposes the service client and deletes the pet entity.
/// </remarks>
protected virtual void Dispose()
public void Dispose()
{
// Dispose managed resources.
if (_petId != Guid.Empty)
Expand Down

0 comments on commit ef6eb6e

Please sign in to comment.