diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs index 5ee1730178cb7..2b6e85e099021 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs @@ -49,7 +49,7 @@ public async Task FleetCRUDTest() ArmOperation createFleetLRO = await fleetCollection.CreateOrUpdateAsync(WaitUntil.Completed, fleetName, fleetData); ContainerServiceFleetResource fleetResource = createFleetLRO.Value; Console.WriteLine($"Succeeded on id: {fleetResource.Data.Id}"); - Console.WriteLine($"Created Fleet was: {fleetResource.Data.ToString}"); + Console.WriteLine($"Created Fleet was: {fleetResource.Data}"); // Test GetFleet // Test GetAllAsync - Get all fleets in RG, which should just be 1 @@ -68,7 +68,7 @@ public async Task FleetCRUDTest() fleetResource.Data.Tags.Add("newtag1", "newtagvalue"); ArmOperation updateFleetLRO = await fleetCollection.CreateOrUpdateAsync(WaitUntil.Completed, fleetResource.Data.Name, fleetResource.Data); Console.WriteLine($"Succeeded on id: {updateFleetLRO.Value.Data.Id}"); - Console.WriteLine($"Updated Fleet was: {updateFleetLRO.Value.Data.ToString}"); + Console.WriteLine($"Updated Fleet was: {updateFleetLRO.Value.Data}"); Debug.Assert(updateFleetLRO.Value.Data.Tags.ContainsKey("newtag1"), "new tag was not found, update failed"); // Create a managed cluster to be able to become a Fleet Member @@ -84,7 +84,7 @@ public async Task FleetCRUDTest() ArmOperation createMemberLRO = await memberCollection.CreateOrUpdateAsync(WaitUntil.Completed, fleetMemberName, memberData); ContainerServiceFleetMemberResource memberResource = createMemberLRO.Value; Console.WriteLine($"Succeeded on id: {createMemberLRO.Value.Data.Id}"); - Console.WriteLine($"Created FleetMember was: {memberResource.Data.ToString}"); + Console.WriteLine($"Created FleetMember was: {memberResource.Data}"); // Test GetFleetMember // Test GetAllAsync